-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (57 loc) · 1.57 KB
/
index.html
File metadata and controls
59 lines (57 loc) · 1.57 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta
name="viewport"
content="width=1440, height=1024, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"
/>
<title>KITALK</title>
<script>
(function () {
var preventDefault = function (e) {
e.preventDefault();
};
document.addEventListener("gesturestart", preventDefault, {
passive: false,
});
document.addEventListener("gesturechange", preventDefault, {
passive: false,
});
document.addEventListener("gestureend", preventDefault, {
passive: false,
});
document.addEventListener(
"touchmove",
function (e) {
if (
(e.touches && e.touches.length > 1) ||
(typeof e.scale === "number" && e.scale !== 1)
) {
e.preventDefault();
}
},
{ passive: false }
);
// Prevent double-tap zoom
var lastTouchEnd = 0;
document.addEventListener(
"touchend",
function (e) {
var now = Date.now();
if (now - lastTouchEnd <= 300) {
e.preventDefault();
}
lastTouchEnd = now;
},
{ passive: false }
);
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>