更新 index.html

This commit is contained in:
jxxghp
2025-07-05 06:43:38 +08:00
committed by GitHub
parent e2b789cfbc
commit 129ccf9e39

View File

@@ -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)