mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-04 23:18:44 +08:00
更新 index.html
This commit is contained in:
-21
@@ -100,27 +100,6 @@
|
|||||||
|
|
||||||
<!-- 初始化脚本 -->
|
<!-- 初始化脚本 -->
|
||||||
<script>
|
<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'
|
const loaderColor = localStorage.getItem('materio-initial-loader-bg') || '#FFFFFF'
|
||||||
if (loaderColor) document.documentElement.style.setProperty('--initial-loader-bg', loaderColor)
|
if (loaderColor) document.documentElement.style.setProperty('--initial-loader-bg', loaderColor)
|
||||||
|
|||||||
Reference in New Issue
Block a user