-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (45 loc) · 1.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<title>The Roundabout</title>
</head>
<body>
<div class="loading loading-lg"></div>
<script src="https://unpkg.com/mithril/mithril.js"></script>
<script src="roundabout.min.js"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', (event) => {
m.route(event.currentTarget.body, "/schedule", {
"/teams": {
render: function () {
return m(App, {dataUrl: window.location.pathname + "data.json"}, m(Teams));
}
},
"/3s": {
render: function () {
return m(App, {dataUrl: window.location.pathname + "data.json"}, m(Threes));
}
},
"/2s": {
render: function () {
return m(App, {dataUrl: window.location.pathname + "data.json"}, m(Twos));
}
},
"/1s": {
render: function () {
return m(App, {dataUrl: window.location.pathname + "data.json"}, m(Ones));
}
},
"/schedule": {
render: function () {
return m(App, {dataUrl: window.location.pathname + "data.json"}, m(Schedule));
}
}
});
});
</script>
</body>
</html>