1 Star 0 Fork 0

gemgao / vue-h5-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.html 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
Evan Fong 提交于 2023-01-04 16:40 . feat: 修改兼容配置
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"
/>
<meta name="format-detection" content="telephone=no, email=no, date=no, address=no" />
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<script>
window.onload = function () {
document.addEventListener('touchstart', function (event) {
if (event.touches.length > 1) {
event.preventDefault();
}
});
var lastTouchEnd = 0;
document.addEventListener(
'touchend',
function (event) {
var now = new Date().getTime();
if (now - lastTouchEnd <= 300) {
event.preventDefault();
}
lastTouchEnd = now;
},
false,
);
document.addEventListener('gesturestart', function (event) {
event.preventDefault();
});
};
</script>
</body>
</html>
1
https://gitee.com/gemgao/vue-h5-template.git
git@gitee.com:gemgao/vue-h5-template.git
gemgao
vue-h5-template
vue-h5-template
vue-h5-template

搜索帮助