-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (38 loc) · 1.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reaction speed game</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="container">
<p id="scoreList"></p>
<div id="board">
<div id="boardContent">
<h1 id="header">Test your reaction time</h1>
<h2 id="averageScore"></h2>
<ol id="directions">
<li>Click start</li>
<li>The goal is the click when the board is green, but you can click between any two colors.</li>
<li>When the green area loads, a "ding" sound should play. This was implemented to replicate a game's sound cues. You can compare purely sound reaction speed versus purely visual reaction speed, if you want.</li>
<li>When you click the green area, it will add that reaction time to a list that is shown above the reaction click area.</li>
<li>After clicking the green area five times, you should see your reaction time average over the past five tries. After clicking reset again, your average is reset.</li>
</ol>
<p id="evaluation"></p>
<div id="buttonContainer">
<button id="startButton">Start</button>
<button id="resetButton">Reset</button>
</div>
</div>
</div>
<div id="my_dataviz"></div>
</div>
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
<script src="./index.js"></script>
</div>
</body>
</html>