mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-07 05:42:42 +08:00
更新 index.html
This commit is contained in:
21
index.html
21
index.html
@@ -100,27 +100,6 @@
|
||||
|
||||
<!-- 初始化脚本 -->
|
||||
<script>
|
||||
// 防止双击缩放
|
||||
document.addEventListener('touchstart', function (event) {
|
||||
if (event.touches.length > 1) {
|
||||
event.preventDefault()
|
||||
}
|
||||
})
|
||||
|
||||
let lastTouchEnd = 0
|
||||
document.addEventListener('touchend', function (event) {
|
||||
const now = (new Date()).getTime()
|
||||
if (now - lastTouchEnd <= 300) {
|
||||
event.preventDefault()
|
||||
}
|
||||
lastTouchEnd = now
|
||||
}, false)
|
||||
|
||||
// 防止长按弹出菜单
|
||||
document.addEventListener('contextmenu', function (event) {
|
||||
event.preventDefault()
|
||||
})
|
||||
|
||||
// 主题色彩初始化
|
||||
const loaderColor = localStorage.getItem('materio-initial-loader-bg') || '#FFFFFF'
|
||||
if (loaderColor) document.documentElement.style.setProperty('--initial-loader-bg', loaderColor)
|
||||
|
||||
Reference in New Issue
Block a user