-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
47 lines (37 loc) · 1.08 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="width=device-width,initial-scale=1">
<title>ChemStack Puzzle</title>
<meta name="description" content="ChemStack Puzzle">
<link rel="icon" sizes="any" href="./favicon.ico">
<link rel="icon" type="image/svg+xml" href="./favicon.svg">
<link rel="apple-touch-icon" href="./apple-touch-icon.png">
<meta name="theme-color" content="#98a8da">
<link href="https://fonts.cdnfonts.com/css/bahnschrift" rel="stylesheet">
</head>
<body style="
margin: 0;
background-color: #081f41;
touch-action: manipulation;
">
<script type="module">
import { render, h } from "preact";
import { RecoilRoot } from 'recoil';
import { App } from "./src/App";
const Component =
import.meta.env.DEV
? await (async () => {
const name = document.location.pathname.substring(1);
if (!name) { return App; }
return (await import(/* @vite-ignore */"./src/" + name))[name];
})()
: App;
render(
h(RecoilRoot, {},
h(Component, {})),
document.body);
</script>
</body>
</html>