forked from farmersanonymous/killer-bunnies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (41 loc) · 1.52 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
<head>
<title>Attack of the Killer Bunnies</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<style>
html,
body {
width: 100%;
height: 100%;
margin: auto;
border: 0;
overflow: hidden;
display: block;
background-color: black;
text-align: center;
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
justify-content: center;
align-items: center;
}
</style>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="fonts/fonts.css" type="text/css" charset="utf-8" />
</head>
<body>
<script src="https://preview.babylonjs.com/recast.js"></script>
<canvas id='canvas' touch-action="none"
style='position:absolute; padding-left: 0; padding-right: 0; margin-left: auto; margin-right: auto; display: block; width:100vw; height:56vw; max-height: 100vh; max-width: 177.7777vh; outline: none;' />
<script>
window.addEventListener('DOMContentLoaded', () => {
var req = new XMLHttpRequest();
req.open('GET', 'config.json');
req.send();
req.onload = () => {
var bootstrap = new window.Bootstrap(document.getElementById('canvas'), req.responseText);
bootstrap.run();
}
});
</script>
</body>