-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
34 lines (33 loc) · 1.78 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
<!DOCTYPE html>
<html>
<head>
<title>Where@DHS</title>
<link rel="icon" href="pics/favicon.png">
<link rel='stylesheet' href='styles.css'>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://www.gstatic.com/firebasejs/5.8.2/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.8.2/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.8.2/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.8.2/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.8.3/firebase.js"></script>
<script src='app.js'></script>
</head>
<body background='pics/dhs.jpg'>
<h1>Where@DHS</h1>
<p class='indexp'>Welcome to our quiz game, Where@DHS, which tests you on your knowledge of our school campus.</p>
<p class='indexp' id='greeting'></p>
<button class='indexbutton' onclick='signout();' id='signoutbutton'>Sign out</button>
<button class='indexbutton' onclick='signin();' id='signinbutton' disabled>Loading...</button>
<button class='indexbutton' onclick="window.location.href = 'game.html';" id='start'>START</button>
<img onmouseover="document.getElementById('rules').style.display='block';" onmouseout="document.getElementById('rules').style.display='none';" id='qn' src='pics/qn.png'>
<div class='indexp' id='rules'>
<u>Rules:</u>
<br>1. There will be 10 questions in each round.
<br>2. For each question, a picture of a place in DHS will be shown.
<br>3. Click on the correct answer to obtain 1 point.
<br>4. For every wrong answer, 1 point will be deducted.
<br>5. If there is no answer in 10 seconds, no points will be obtained or deducted.
<br>6. Time bonus: Remaining time of 4s-7s gets 1 bonus point, 8s-10s gets 2 bonus points.
</div>
</body>
</html>