forked from Project-Islem-Mohamed/Quiz-Game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Quiz_game22.html
76 lines (55 loc) · 2.18 KB
/
Quiz_game22.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
76
<!-- Sport HTML Page 2-->
<!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 sports knowledge</h1>
<!--Building a form for the Quiz Questions-->
<form id="quiz22" name="quiz2">
<p>For which team did Michael Jordan spend most of his career playing ? </p>
<input type="radio" id="mc" name="k11" value="Boston Celtics">Boston Celtics<br>
<input type="radio" id="mc" name="k11" value="Lakers">Lakers<br>
<input type="radio" id="mc" name="k11" value="Chicago Bulls">Chicago Bulls<br>
<input type="radio" id="mc" name="k11" value="Golden State Warriors">Golden State Warriors<br>
<div id="after_click">
<p id="msg13"></p>
</div>
<p>How many players are there on a baseball team ? </p>
<input type="radio" id="mc" name="k22" value="7players">7 players<br>
<input type="radio" id="mc" name="k22" value="8players">8 players<br>
<input type="radio" id="mc" name="k22" value="9players">9 players<br>
<input type="radio" id="mc" name="k22" value="11players">11 players<br>
<div id="after_click">
<p id="msg14"></p>
</div>
<p>What is Muhammad Ali’s real name ?</p>
<input type="radio" id="mc" name="k33" value="Cassius Clay">Cassius Clay<br>
<input type="radio" id="mc" name="k33" value="Manny pacquiao">Manny pacquiao<br>
<input type="radio" id="mc" name="k33" value="tyson fury">tyson fury<br>
<div id="after_click">
<p id="msg15"></p>
</div>
</br>
<input id="button" type="button" value="Done!!" onclick="check_22();">
</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>
<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>