-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (41 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
<!DOCTYPE html>
<html>
<head>
<link rel="preload" href="assets/monogram-extended.ttf" as="font" type="font/ttf" crossorigin>
<!--<link rel="stylesheet" href="style-itchio.css">-->
<link rel="stylesheet" href="style.css">
<title>CC3k+</title>
</head>
<body>
<div class="game-container">
<div class="canvas-wrapper">
<canvas style='z-index: 103;' id="ui-overlay" onclick="ui_click(event)"></canvas>
<canvas style='z-index: 102;' id="ui-canvas"></canvas>
<canvas style='z-index: 101;' id="animation-canvas"></canvas>
<canvas style='z-index: 100;' id="bg-canvas"></canvas>
</div>
<form onsubmit="return false">
<div class="input-container">
<div class="textbox-container">
<input id="game-input" type="text" title="Enter a command" placeholder="Enter a command"
disabled="true" onkeypress="input_keypress()" autocomplete="false" autocapitalize="false"
spellcheck="false" autofocus />
</div>
<button id="game-button" type="submit" onclick="input_submit()" disabled="true">Enter</button>
</div>
</form>
</div>
<script src="index.js"></script>
<script>
var Module = {
onRuntimeInitialized: async function () {
await setup_everything()
document.getElementById('game-input').disabled = false
document.getElementById('game-button').disabled = false
document.getElementById('game-input').focus()
}
};
</script>
<script src="cc3k.js"></script>
</body>
</html>