-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathindex.html
41 lines (39 loc) · 1.16 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mand-Mobile</title>
<style>
*{margin:0;padding:0;-webkit-touch-callout:none;list-style:none;}
html{touch-action: manipulation;background:#fff;min-width:320px;overflow-x:hidden;}
body{overflow-x:hidden;}
html,body{height:100%;}
</style>
<script>
(function(window, document) {
function resize () {
var ww = window.innerWidth
if (ww > window.screen.width) {
window.requestAnimationFrame(resize)
} else {
if (ww > 750) {
ww = 750
}
document.documentElement.style.fontSize = `${100 / 7.5}vw`
}
}
resize()
window.addEventListener('resize', resize)
})(window, document);
</script>
</head>
<body>
<div id="app"></div>
<script>
document.addEventListener("touchstart", function() {}, false)
</script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>