-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
66 lines (63 loc) · 2.7 KB
/
game.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
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
<title>Code Plunge</title>
<link rel="stylesheet" href="http://berlin.patrickmaynard.com/css/normalize.css" />
<link rel="stylesheet" href="game.css" />
<script>var exports = {};</script>
<script src="languageProviderPhpUniter.js"></script>
<script src="https://unpkg.com/[email protected]/dist/jquery.js"></script>
<!-- todo: Get this to actually work, along with our local languageProviderPhpWasm, which is in progress -->
<script async type = "text/javascript" src = "https://www.unpkg.com/php-wasm/php-tags.unpkg.mjs"></script>
<!-- this will soon go away in favor of the wasm option above. -->
<script src="https://unpkg.com/[email protected]/dist/uniter.js"></script>
<script src="https://unpkg.com/[email protected]/dist/dexie.js"></script>
<script src="game.js"></script>
</head>
<body>
<main>
<div id="options-container">
<div id="options" class="hidden-options">
<h2>Game paused. Click board again to unpause.</h2>
<br>
<label for="speed" class="speed-label">Speed</label>
<input type="range" id="speed" name="speed"
min="0" max="100">
<br> <br>
<input type="checkbox" name="auto-add-functions" id="auto-add-functions" checked="checked">
<label for="auto-add-functions">Automatically add new functions during level-ups.</label>
<div id="available-functions">
<span>
<input type="checkbox" name="count" id="count" checked="checked">
<label for="count">count()</label>
</span>
<span>
<input type="checkbox" name="is_array" id="is_array">
<label for="is_array">is_array()</label>
</span>
<span>
<input type="checkbox" name="substr" id="substr">
<label for="substr">substr()</label>
</span>
<span>
<input type="checkbox" name="in_array" id="in_array">
<label for="in_array">in_array()</label>
</span>
<span>
<input type="checkbox" name="explode" id="explode">
<label for="explode">explode()</label>
</span>
<span>
<input type="checkbox" name="str_replace" id="str_replace">
<label for="str_replace">str_replace()</label>
</span>
</div>
</div>
</div>
<div id="board"></div>
<div id="instructions">Instructions will appear here.</div>
<input id="code" placeholder="Type here and hit Enter when done."></div>
<div id="score">Score will go here.</div>
</main>
</body>
</html>