-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
59 lines (55 loc) · 1.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>
primitive-geometry by Damien Seguin (https://github.com/dmnsgn)
</title>
<style>
:root {
--color-dark: #404040;
--color-light: #f2f2f2;
--color-accent: #fd5e62;
}
body {
margin: 0;
overscroll-behavior: none;
font-family: sans-serif;
color: var(--color-light);
background-color: var(--color-dark);
}
main {
overflow: hidden;
position: absolute;
width: 100%;
height: 100%;
}
h1 {
position: absolute;
top: 0;
left: 20px;
}
</style>
</head>
<body>
<main>
<h1>primitive-geometry</h1>
</main>
<script async src="web_modules/es-module-shims.js" type="module"></script>
<script src="web_modules/import-map.json" type="importmap-shim"></script>
<script type="module-shim">
(async () => {
const params = new URLSearchParams(window.location.search);
const id = params.get("id");
try {
await importShim(`./examples/${id || "index"}.js`);
} catch (error) {
console.error(error);
await importShim(`./examples/index.js`);
}
})();
</script>
</body>
</html>