-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (58 loc) · 1.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trivia Game</title>
<link rel="stylesheet" href="style.css">
<script src="https://js.devcycle.com/devcycle.min.js" type="text/javascript"></script>
</head>
<body>
<header>
<nav class="navbar">
<div class="navbar-brand">Trivia Game</div>
<ul class="navbar-nav">
<li class="nav-item"><a href="#" id="homeLink">Home</a></li>
<li class="nav-item"><a href="#" id="mechanicsLink">Mechanics</a></li>
<li class="nav-item"><a href="#" id="accessibilityLink">Accessibility</a></li>
</ul>
</nav>
</header>
<main>
<div id="startScreen">
<button id="startGame" class="btn">Start Game</button>
</div>
<div id="game" style="display: none;">
<div class="game-info">
<p id="score">Score: 0</p>
<p id="level">Level: 1</p>
<p id="xp">XP: 0</p>
</div>
<div class="question-container">
<h2>Question</h2>
<p id="question"></p>
<div id="answers" class="answers"></div>
<p id="timer"></p>
</div>
<div id="powerUps" class="power-ups">
<button id="fiftyFifty" class="btn">50/50</button>
<button id="hint" class="btn">Hint</button>
<button id="skip" class="btn">Skip Question</button>
</div>
</div>
<div id="mechanics" style="display: none;">
<h2>Game Mechanics</h2>
<button id="fetchMechanics" class="btn">Load Mechanics</button>
<pre id="output"></pre>
</div>
<div id="accessibility" style="display: none;">
<h2>Accessibility Features</h2>
<pre id="accessibilityOutput"></pre>
</div>
</main>
<script src="scripts/questionBank.js"></script>
<script src="scripts/devcycle.js"></script>
<script src="scripts/questions.js"></script>
<script src="scripts/timer.js"></script>
</body>
</html>