forked from Project-Islem-Mohamed/Quiz-Game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Quiz_game11.html
75 lines (52 loc) · 1.92 KB
/
Quiz_game11.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Quiz Game</title>
<!--connecting css file with html-->
<link href="Quiz_game.css" rel="stylesheet">
<!--connecting js file with html-->
<script src="Quiz_game.js"></script>
</head>
<body>
<h1> Test your Geographic knowledge</h1>
<!--Building a form for the Quiz Questions-->
<form id="quiz11" name="quiz">
<p>What is the only country that borders the United Kingdom ? </p>
<input type="radio" id="mc" name="Q11" value="Vienne">Vienne<br>
<input type="radio" id="mc" name="Q11" value="Ireland">Ireland<br>
<input type="radio" id="mc" name="Q11" value="Canada">Canada<br>
<div id="after_click">
<p id="msg10"></p>
</div>
<p>What was the original capital of the U.S.?</p>
<input type="radio" id="mc" name="Q22" value="New York City"> New York City<br>
<input type="radio" id="mc" name="Q22" value="New Mexico">New Mexico<br>
<input type="radio" id="mc" name="Q22" value="Washington dc">washington dc<br>
<div id="after_click">
<p id="msg11"></p>
</div>
<p>What country is home to Mount Everest?</p>
<input type="radio" id="mc" name="Q33" value="Nepal"> Nepal<br>
<input type="radio" id="mc" name="Q33" value="Greece">Greece<br>
<input type="radio" id="mc" name="Q33" value="India">India<br>
<div id="after_click">
<p id="msg12"></p>
</div>
</br>
<input id="button" type="button" value="Done!!" onclick="checkG0();">
</form>
<!--Building a div box for messages-->
<div id="after_click">
<p id="msg"></p>
<p id="correct_answers"></p>
</div>
<!--Building a button to get u back to zero point (restart) -->
<button id="button" onclick="myFunction()">Restart</button> <br>
<br>
<div id="after_click">
<p id="m"></p>
</div>
<input type="submit" value=" Go to the next level " id="buttonlevel2" class="hidden" onclick="location.href='Quiz_game_page_index.html';">
</body>
</html>