-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (46 loc) · 1.26 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
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta name="theme-color" content="#fff">
<title>Arcade</title>
<style>
canvas {
display: block;
margin: 0px auto;
background: #ccc;
/*transform: perspective(400px) rotate3d(1,0,0,30deg)*/
}
body {
padding: 0;
margin: 0;
}
* {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
}
</style>
</head>
<body>
<script src="js/init.js"></script>
<div style="text-align: center;">
<div id="info"></div>
<div id="debug"></div>
<!--<div onclick="window.pause = true;">Pause targets</div>-->
<!--<div onclick="window.pause = false;">Continue targets</div>-->
</div>
<script>
//try disable zoom
var lastTouchEnd = 0;
window.addEventListener('touchend', function (event) {
var now = (new Date()).getTime();
if (now - lastTouchEnd <= 300) {
event.preventDefault();
}
lastTouchEnd = now;
}, false);
</script>
</body>
</html>