-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (52 loc) · 2.66 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
<!doctype html>
<!--
Copyright 2018 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->
<!--
2021 Oakmound Studio, heavily modified from Go Authors'
source.
-->
<html>
<head>
<meta charset="utf-8">
<title>Oak Examples</title>
<link rel="stylesheet" href="index.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
</head>
<body>
<script src="wasm_exec.js"></script>
<script src="index.js"></script>
<div class="box">
<div class="row header">
<h1>WIP: Oak Examples</h1>
</div>
<div class="row2">
<div class="column content" id="loaders">
<button onClick="load('wasm/bezier.wasm')" id="loadButton">Load Bezier</button><br>
<button onClick="load('wasm/collision.wasm')" id="loadButton">Load Collision Demo</button><br>
<button onClick="load('wasm/flappy-bird.wasm')" id="loadButton">Load Flappy Bird</button><br>
<button onClick="load('wasm/keyboard.wasm')" id="loadButton">Load Keyboard Visualizer</button><br>
<button onClick="load('wasm/mouse.wasm')" id="loadButton">Load Mouse Visualizer</button><br>
<button onClick="load('wasm/platformer.wasm')" id="loadButton">Load Platformer</button><br>
<button onClick="load('wasm/radar.wasm')" id="loadButton">Load Radar Demo</button><br>
<button onClick="load('wasm/rooms.wasm')" id="loadButton">Load Rooms Demo</button><br>
<button onClick="load('wasm/slide.wasm')" id="loadButton">Load Slideshow</button><br>
<button onClick="load('wasm/sprite-demo.wasm')" id="loadButton">Load Sprite Demo</button><br>
<button onClick="load('wasm/text-demo-1.wasm')" id="loadButton">Load Text Demo 1</button><br>
<button onClick="load('wasm/text-demo-2.wasm')" id="loadButton">Load Text Demo 2</button><br>
<button onClick="load('wasm/top-down-shooter.wasm')" id="loadButton">Load Top Down Shooter</button><br>
<button onClick="load('wasm/zooming.wasm')" id="loadButton">Load Zooming Demo</button><br>
<h4 id="errorText" hidden>Error</h4>
</div>
<div class="column content" id="runWindow">
<button onClick="run();" id="runButton" hidden>Run</button>
</div>
</div>
</div>
<h3 color=red hidden id="errorText">Error Text</h3>
</body>
</html>