-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
58 lines (54 loc) · 1.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/addons/p5.sound.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/fontisto/fontisto.min.css"></i>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8" />
</head>
<body>
<main>
<div id="doors"></div>
<div id="instruction">
<p>Pick a Door!</p>
<div class="choices">
<button id="yes">YES</button>
<button id="no">NO</button>
</div>
<button id="play-again">PLAY AGAIN?</button>
</div>
<div id="stats">
<div id="switches">
<p>Total Switches: <span class="total">0</span></p>
<div class="bar">
<span class="win-rate">0%</span>
</div>
</div>
<div id="stays">
<p>Total Stays: <span class="total">0</span></p>
<div class="bar">
<span class="win-rate">0%</span>
</div>
</div>
</div>
<div id="controls">
<h3>Options</h3>
<label>
# of doors:
<select id="nb-doors" autocomplete="off">
<option value="3" selected>3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="10">10</option>
<option value="25">25</option>
<option value="50">50</option>
</select>
</label>
<button id="autorun" class="play">Auto run</button>
<input type="range" id="speed-slider" min="20" max="1000" value="500" step="1" />
</div>
</main>
<script src="sketch.js"></script>
</body>
</html>