-
Notifications
You must be signed in to change notification settings - Fork 0
/
trainer.html
105 lines (99 loc) · 4.61 KB
/
trainer.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
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Drone trainer</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='styles.css'>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<div class="back-button-wrapper">
<button class="icon-button" id="back-button" onclick="location.assign('/index.html')"><span
class="material-icons">arrow_back</span></button>
</div>
<div class="wrapper">
<div class="canvas-wrapper">
<canvas id="main-canvas"></canvas>
<div class="absolute-ui">
<div class="content" id="menu">
<!-- <div class="show-option-wrapper">
<label for="show-option">Show</label>
<select id="show-option">
<option value="best">best</option>
<option value="all">all</option>
<option value="highlighted">highlighted</option>
</select>
</div> -->
<!-- <button class="icon-button"><span class="material-icons">play_arrow</span></button> -->
<button class="menu-button" id="state-button">Show best</button>
<button class="menu-button" id="stop-button">Play</button>
<button class="menu-button" id="mouse-button">Mouse</button>
<!-- <button class="menu-button">Export</button>
<button class="menu-button">Load</button> -->
</div>
<button class="icon-button" id="toggle-menu-button"><span
class="material-icons">expand_more</span></button>
</div>
</div>
<div class="ui">
<div class="general">
<span class="title">Options</span>
<hr class="solid">
<div class="element-wrapper">
<span>Speed</span>
<div class="slider-wrapper">
<input id="time-slider" type="range" min="1" max="10" value="1" step="1">
<label id="time-label">1</label>
</div>
</div>
<div class="element-wrapper">
<span>Drone count</span>
<div class="slider-wrapper">
<input id="count-slider" type="range" min="1" max="1000" value="300" step="1">
<label id="count-label">200</label>
</div>
</div>
<div class="element-wrapper" style="display:none">
<span>Speed reward</span>
<div class="slider-wrapper">
<input id="reward-slider" type="range" min="1" max="10" value="1" step="1">
<label id="reward-label">1</label>
</div>
</div>
<hr class="solid">
<span class="title">Info</span>
<hr class="solid">
<div class="info-wrapper">
<span>Generation:</span>
<span id="generation-span">1</span>
</div>
<div class="info-wrapper">
<span>Best score:</span>
<span id="best-score-span">-</span>
</div>
<div class="info-button-wrapper">
<button class="info-button" id="save-button">Save</button>
<!-- <button class="info-button" id="load-button">Load</button> -->
<label class="info-button" for="load-input">
<input id="load-input" type="file" multiple>
Load
</label>
</div>
</div>
<!-- <div class="drone_info_wrapper">
<canvas id="info_canvas" width="200" height="250"></canvas>
</div> -->
<div class="canvas-wrapper">
<canvas id="chart-canvas">
</div>
<!-- <div class="chart_canvas_wrapper"> -->
</div>
<!-- </div> -->
</div>
<!-- <script type="module" src='./dist/main.js'></script>
<script type="module" src='./dist/drone.js'></script> -->
<script src="./dist/trainer.js"></script>
</body>
</html>