-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
33 lines (30 loc) · 1.2 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
<!DOCTYPE HTML>
<html lang="en" style="height: 100%">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
<link rel='icon' type='image/png' href='./icon.png'>
<link rel='stylesheet' href='./src/pitch.css'>
<script type="text/javascript" src="./croquet/croquet.min.js"></script>
<script type="module">
import {makeMain, Library} from "./croquet/croquet-virtual-dom.js";
import {widgets} from "./croquet/widgets.js";
import {boards, minibrowser, text} from "./src/p.js";
import apiKey from "./apiKey.js";
let library = new Library();
library.addLibrary("boards", boards);
library.addLibrary("widgets", widgets);
library.addLibrary("minibrowser", minibrowser);
library.addLibrary("text", text);
window._production = ".";
window.onload = makeMain("boards.p", {
autoSleep: false,
tps: 2,
apiKey,
appId: "io.croquet.vdom.greenlight",
eventRateLimit: 60}, library, null, `./greenlight.svg`, true);
</script>
</head>
<body style="margin: 0px; touch-action: manipulation">
<div id="croquet-root" style="width: 100%; height: 100%"></div>
</body></html>