-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
100 lines (100 loc) · 3.98 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
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mario Smart IA</title>
</head>
<body class="open">
<div class="input__container">
<h4>Select a game</h4>
<input type="file" name="inputFile" id="inputFile" />
</div>
<div class="stats__layout">
<div class="stats__container">
<h2>Stats</h2>
<div class="stats">
<h3>Node path</h3>
<div class="stats__nodes__container">
<div class="stats__nodes__quantity"></div>
<div class="stats__nodes"></div>
</div>
<h3>Expanded nodes</h3>
<div class="stats__expanded__container">
<div class="stats__expanded__quantity"></div>
<div class="stats__expanded"></div>
</div>
<h3>Tree Depth</h3>
<div class="stats__tree__depth"></div>
<h3>Solution cost</h3>
<div class="stats__cost"></div>
<h3>Algorithm execution time</h3>
<div class="stats__time"></div>
</div>
</div>
</div>
<div id="app">
<h1 class="app__title">Mario Smart IA</h1>
<div class="matrix"></div>
</div>
<pre class="info"></pre>
<nav class="sidebar">
<div class="sidebar-inner">
<header class="sidebar-header">
<h2 class="sidebar-title">Settings</h2>
<button type="button" class="sidebar-burger toggle__sidebar">
<img src="/settings.png" class="sidebar-logo" />
</button>
</header>
<nav class="sidebar-menu">
<div class="animation__settings">
<form class="animation__form">
<div class="settings__fields">
<div class="settings__field">
<label for="interval">Animation Interval</label>
<p>milliseconds</p>
<input type="number" name="interval" id="interval" min="200" value="300" />
</div>
<div class="settings__field">
<label for="algorithmType">Algorithm type</label>
<p>Which search algorithm type to use</p>
<select name="algorithmType" id="algorithmType">
<option value="UNINFORMED">Uninformed</option>
<option value="INFORMED">Informed</option>
</select>
</div>
<div class="settings__field uninformed__algorithms display-flex">
<label for="uninformedAlgorithm">Algorithm</label>
<p>Which uninformed search algorithm to use</p>
<select name="uninformedAlgorithm" id="uninformedAlgorithm">
<option value="BREADTH_FIRST_SEARCH">Breadth First Search</option>
<option value="DEPTH_FIRST_SEARCH">Depth First Search</option>
<option value="COST">Cost</option>
</select>
</div>
<div class="settings__field informed__algorithms">
<label for="informedAlgorithm">Algorithm</label>
<p>Which informed search algorithm to use</p>
<select name="informedAlgorithm" id="informedAlgorithm">
<option value="GREEDY">Greedy</option>
<option value="A*">A*</option>
</select>
</div>
</div>
<button class="init__game" type="submit">Start</button>
</form>
</div>
</nav>
<div class="sidebar-reload">
<h3 class="sidebar-title">Reset Game</h3>
<button type="button" class="sidebar-reload-button">
<img src="/reload.png" class="sidebar-reload-logo" />
</button>
</div>
</div>
</nav>
<script type="text/javascript"></script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>