-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
executable file
·97 lines (89 loc) · 3.23 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Flappy Bird 32px by 32px</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="wrapper">
<div id="content">
<canvas id="gameCanvas" width="32" height="32" />-->
</div>
<div id="sidebar">
<header>
<h1>Configurations</h1>
</header>
<form action="#">
<div class="field-group">
<label class="label">High Score:</label>
<div class="field">
<span id="score" class="number">0</span>
</div>
</div>
<div class="field-group">
<label class="label">Rules Learnt:</label>
<div class="field">
<span id="rules" class="number">0</span>
</div>
</div>
<div class="field-group">
<label class="label">Trials:</label>
<div class="field">
<span id="trials" class="number">0</span>
</div>
</div>
<div class="field-group">
<label for="game-speed" class="label">Game speed:</label>
<div class="field">
<input name="tel1" id="tel1" type="range" value="40" onchange="gameSpeedChange(this.value)">
</div>
</div>
<!--///////////////// SELECT MENU ///////////////////-->
<div class="field-group">
<div class="label">Environment:</div>
<div class="field">
<select id="env" onchange="environmentChange(this.value)">
<option value="Static">Static</option>
<option value="Random">Random</option>
</select>
</div>
</div>
<div class="field-group">
<div class="label">Display Target:</div>
<div class="field">
<div>
<input id="showTargetYes" name="radio" type="radio" value="Yes" onchange="toggleDisplayTarget(this.value)">
<label for="showTargetYes">Yes</label>
</div>
<div>
<input id="showTargetNo" name="radio" type="radio" value="No" checked onchange="toggleDisplayTarget(this.value)">
<label for="showTargetNo">No</label>
</div>
</div>
</div>
<div class="field-group">
<div class="label">Actions:</div>
<div class="field">
<input type="button" value="Save model to local storage" onclick="saveModel()">
</div>
</div>
<div class="field-group">
<div class="label"></div>
<div class="field">
<input type="button" value="Load model from local storage" onclick="loadModel()">
</div>
</div>
<div class="field-group">
<div class="label"></div>
<div class="field">
<input type="button" value="Load pre-trained model" onclick="loadPreModel()">
</div>
</div>
</form>
</div>
<script src="js/index.js"></script>
<script src="js/brain.js"></script>
<script src="js/config.js"></script>
</body>
</html>