-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
69 lines (67 loc) · 2.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Trivia Quiz</title>
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/game.css" />
<script src="/socket.io/socket.io.js"></script>
<script src="javascript/game.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.10.4/gsap.min.js"></script>
<script src="javascript/animation.js" defer></script>
</head>
<body>
<!--Element for ranking-->
<div id="ranking" class="ranking hidden">
<h2>Ranking</h2>
<ol id="ranking-list"></ol>
<!-- (vittorio) added return to home screen -->
<button id="home-btn" class="home-btn"></button>
</div>
<!--Element for ranking-->
<div class="container">
<h3 id="waitingText" class="waitingText"></h3>
<!-- different from thea -->
<div class="ready-container">
<div id="ready-box">
<button id="ready-btn" class="readyBtn"></button>
<ul id="ready-list"></ul>
<div id="loader"></div>
</div>
</div>
<!-- different from thea -->
<div id="game" class="justify-center flex-column hidden">
<div id="hud">
<div id="hud-item">
<p id="progressText" class="hud-prefix">Question</p>
</div>
<div id="hud-item">
<p class="hud-prefix">Score</p>
<h1 class="hud-main-text" id="score">0</h1>
</div>
</div>
<h2 id="question"></h2>
<div id="timer-container">
<div id="timer"></div>
</div>
<div class="choice-container">
<p class="choice-prefix">A</p>
<p class="choice-text" data-number="1"></p>
</div>
<div class="choice-container">
<p class="choice-prefix">B</p>
<p class="choice-text" data-number="2"></p>
</div>
<div class="choice-container">
<p class="choice-prefix">C</p>
<p class="choice-text" data-number="3"></p>
</div>
<div class="choice-container">
<p class="choice-prefix">D</p>
<p class="choice-text" data-number="4"></p>
</div>
</div>
</div>
</body>
</html>