-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
133 lines (127 loc) · 5.9 KB
/
game.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Lamb Quiz</title>
<link rel="stylesheet" href="app.css">
<link rel="stylesheet" href="game.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-145050363-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-145050363-2');
</script>
</head>
<body>
<div class="container">
<div id="loader"></div>
<div id="segment-index" class="flex-column flex-center hidden">
<h1>Choose a segment!</h1>
<ul id="all-btns"> </ul>
<ul id="segment-buttons" class="window-column">
</ul>
</div>
<div id="game" class="hidden">
<div id="hud">
<div id="hud-item">
<p class="hud-prefix"></p>
<h1 id="questionCounter" class="hud-main-text"></h1>
</div>
<div id="hud-item">
<p class="hud-prefix"></p>
<h1 id="score" class="hud-main-text"></h1>
</div>
</div>
<div>
<h4 id="contentName"></h4>
<a id="episodeurl" href="url" target="_blank" ><h3 id="episodeName"></h3></a>
<h2 id="question"></h2>
<div id="choice-box">
<div class="choice-container">
<p class="choice-prefix">1</p>
<p class="choice-text" data-number="1"></p>
</div>
<div class="choice-container">
<p class="choice-prefix">2</p>
<p class="choice-text" data-number="2"></p>
</div>
<div class="choice-container">
<p class="choice-prefix">3</p>
<p class="choice-text" data-number="3"></p>
</div>
<div class="choice-container">
<p class="choice-prefix">4</p>
<p class="choice-text" data-number="4"></p>
</div>
</div>
<form id="answer-form" class="hidden">
<input
type="text"
name="answer"
id="answer"
placeholder="answer"
/>
<button
type="submit"
class="btn"
id="saveAnswerButton"
disabled
>
Submit
</button>
<div id="correct-answer-box" class="hidden" >
<span>Correct Answer:</span>
<span id="red-answer"></span>
</div>
</form>
<button id="improvement-btn" class= "hidden">This question needs improvement</button>
<button
class="hidden"
id="exit-improvement"
>X</button>
<form id="improvement-form" class="hidden">
<input
type="text"
name="improvement"
id="improvement-input"
placeholder="How could this question be improved?"
/>
<div id="personal-info">
<input
type="text"
name="username"
id="username-input"
placeholder="Name"
/>
<input
type="text"
name="email"
id="email-input"
placeholder="Email"
/>
</div>
<button
type="submit"
class=""
id="save-improvement-button"
onclick="saveImprovement(event)"
disabled
>
Submit
</button>
</form>
<h4 id="improvement-thnx" class="hidden">Thank you for improving our application!:)</h4>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="game.js"></script>
</body>
</html>