-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
90 lines (80 loc) · 2.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!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="#0D0E12">
<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%;
}
* {
-webkit-user-drag: none;
-khtml-user-drag: none;
-moz-user-drag: none;
-o-user-drag: none;
user-drag: none;
}
.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;
}
@keyframes contentShow {
from {
opacity: 0;
transform: scale(0.96);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes contentHide {
from {
opacity: 1;
transform: scale(1);
}
to {
opacity: 0;
transform: scale(0.96);
}
}
</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-#0D0E12 text-white select-none overscroll-none h-screen">
<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>