forked from gosub-io/gosub-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (34 loc) · 910 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script type="module">
import init, {renderer, RendererOptions} from "../pkg/gosub_engine.js";
await init()
let opts = new RendererOptions("canvas", "canvas-wrapper", "https://news.ycombinator.com/", true);
renderer(opts)
</script>
<style>
:root {
background-color: #1a1b1b;
}
#canvas {
width: 90vw;
height: 90vh;
background-color: #000;
margin-top: 2rem;
border-radius: 1rem;
border: cyan solid 2px;
}
#canvas-wrapper {
margin: 0 auto;
width: fit-content;
height: fit-content;
}
</style>
</head>
<body>
<div id="canvas-wrapper"></div>
</body>
</html>