-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (84 loc) · 3.41 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Poppins:400,600,700&display=swap" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="./resources/ninja.ico">
<title>Are you a Ninja?</title>
</head>
<body>
<div class="window">
<h1>Test your Ninja Skills</h1>
<div class="modeSelection slide">
<h2>SELECT A GAME MODE</h2>
<ul>
<li id="ninjaSelection">Ninja Test</li>
<li id="reactionSelection">Reaction Time</li>
</ul>
<button id="selectionProceed" class="bigButton">Continue</button>
</div>
<div class="reactionInstructions slide">
<h2>INSTRUCTIONS</h2>
<p>When you see the screen turn green, click anywhere as fast as you can. <br><br>If you click too soon, it won't count.</p>
<button class="bigButton begin" id="startReaction">Start</button><br>
<button class="backToSelection backButton">Go Back</button>
</div>
<div class="trialsSelection slide">
<h2>HOW MANY TRIALS?</h2>
<ul>
<li id="trials10">10 Trials</li>
<li id="trials20" class="selected">20 trials</li>
<li id="trials30">30 trials</li>
</ul>
<button id="toDifficulty" class="bigButton">Continue</button><br>
<button class="backToSelection backButton">Go Back</button>
</div>
<div class="difficultySelection slide">
<h2>SELECT DIFFICULTY</h2>
<ul>
<li id="easy">Easy</li>
<li id="medium" class="selected">Medium</li>
<li id="hard">NINJA!</li>
</ul>
<button class="bigButton begin" id="startNinja">Start</button><br>
<button class="backToTrials backButton">Go Back</button>
</div>
</div>
<div class="gameScreen">
<h1 id="countdown"></h1>
<div class="reactionGame">
<div id="headerR">
<h2>Your reaction time is:</h2>
<h3 id="reactionTime">N/A</h3>
<ul id="playAgainReaction">
<li id="playAgainR">Play Again</li>
<li id="backToMenuR">Back to Menu</li>
</ul>
</div>
</div>
<div class="ninjaGame">
<div id="headerN">
<h3 id="accHead">Accuracy</h3>
<h3 id="reactHead">Avg. Time</h3>
<h3 id="ninjaHead">Ninja Score</h3>
<h2 id="accScore">N/A</h2>
<h2 id="reactScore">N/A</h2>
<h2 id="ninjaScore">N/A</h2>
<h3 id="playAgainN">Play Again</h3>
<h3 id="backToMenuN">Back to Menu</h3>
</div>
<div id="ninjaScreen">
<div id="target">
</div>
</div>
</div>
</div>
<script type="text/javascript" src="./scripts/menu.js"></script>
<script type="text/javascript" src="./scripts/reaction.js"></script>
<script type="text/javascript" src="./scripts/ninja.js"></script>
</body>
</html>