-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
57 lines (50 loc) · 1.58 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
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- https://stackoverflow.com/a/27127145 -->
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, viewport-fit=cover">
<meta name="theme-color" content="#000000">
<title>StayReal</title>
<style>
html {
/* Prevents weird behaviors on iOS */
-webkit-touch-callout: none;
}
/* https://stackoverflow.com/a/60516252 */
:root {
touch-action: pan-x pan-y;
height: 100%;
}
.tts-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;
}
</style>
<script>
// Prevents right-click context menu on desktop
// and long-press context menu on mobile.
window.oncontextmenu = (event) => {
event.preventDefault();
event.stopPropagation();
return false;
};
const handler = (event) => event.preventDefault();
document.addEventListener('gesturestart', handler);
document.addEventListener('gesturechange', handler);
document.addEventListener('gestureend', handler);
</script>
</head>
<body class="font-sans bg-black text-white select-none overscroll-none">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script src="/src/index.tsx" type="module"></script>
</body>
</html>