-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (45 loc) · 1.22 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
<!DOCTYPE html>
<html>
<head>
<title>WebView SPA Template - Karrot</title>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, user-scalable=no, viewport-fit=cover"
/>
<script>
function isIOS() {
return /iphone|ipad|ipod/i.test(
window.navigator.userAgent.toLowerCase(),
);
}
</script>
<script>
(() => {
var c = isIOS();
var e = document.documentElement;
e.dataset.seedScaleLetterSpacing = c ? "ios" : "android";
e.dataset.seed = "";
var pd = window.matchMedia("(prefers-color-scheme: dark)"),
a = () => {
e.dataset.seedScaleColor = pd.matches ? "dark" : "light";
};
"addEventListener" in pd
? pd.addEventListener("change", a)
: "addListener" in pd && pd.addListener(a),
a();
})();
</script>
<script>
(() => {
var c = isIOS();
var e = document.documentElement;
e.dataset.stackflowBasicUiTheme = c ? "cupertino" : "android";
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="./src/index.tsx"></script>
</body>
</html>