-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
58 lines (54 loc) · 2.63 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
<!DOCTYPE html>
<html>
<head>
<title>Quiz | Playing</title>
<link rel="stylesheet" href="assets/stylesheets/styles.css"/>
<link rel="icon" href="assets/images/favicon.ico?v=2.0"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body id="gameBody">
<header>
<a href="index.html" id="title">Quiz</a>
</header>
<main class="transparentBox">
<div id="topBar">
<div class="whiteTransBox">
<p class="blueTxtPale semiBold">Time left</p>
<p id="timer" class="blueTxt big semiBold"></p>
</div>
<div class="whiteTransBox" id="questionInfoBox">
<span class="blueTxt big semiBold">Question <span id="questionNum">1</span>/10</span>
<div id="category" class="blueTxtPale semiBold"></div>
</div>
<div class="whiteTransBox">
<p class="blueTxtPale semiBold">Score</p>
<p id="scoreNum" class="infoData blueTxt big semiBold">0</p>
</div>
</div>
<div class="center-box">
<h2 id="vprasanje">If you don't see the question, wait at least 5s and then refresh this page.</h2>
<div id="odgovor">
<ul id="answerList"></ul>
</div>
<div id="newBox" class="whiteTransBox">
<div id="messageBox" class="big semiBold">
<p id="noTimeLeft" style="display: none;">You ran out of time! Be faster!</p>
<p id="message"></p>
</div>
<button id="mainButton" class="button big semiBold"></button>
</div>
</div>
</div>
</main>
<footer id="game-footer">
<a class="footerIconContainer" href="https://github.com/galgaz/quiz"><img class="footerIcon" src="assets/images/github-mark-white.svg"></img></a> | <span>All of the questions are from <a href="https://opentdb.com/">Open Trivia Database.</a></span>
</footer>
<script src="assets/scripts/global.js"></script>
<script src="assets/scripts/mainButton.js"></script>
<script src="assets/scripts/answerDisplay.js"></script>
<script src="assets/scripts/timer.js"></script>
<script src="assets/scripts/questionHandling.js"></script>
<script> window.onload = getQuestions; </script>
</body>
</html>