forked from Project-Islem-Mohamed/Quiz-Game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Quiz_game33.html
79 lines (59 loc) · 2.82 KB
/
Quiz_game33.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
77
78
79
<!-- Music 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 Music knowledge</h1>
<!--Building a form for the Quiz Questions-->
<form id="quiz33" name="quiz3">
<p>"I'm Slim Shady, yes, I'm the real Shady
All you other Slim Shadys, are just imitating " , are lyrics from a hit song by which hip hop superstar?</p>
<input type="radio" id="mc" name="QU11" value="Eminem">Eminem<br>
<input type="radio" id="mc" name="QU11" value="Dr. Dre">Dr.Dre<br>
<input type="radio" id="mc" name="QU11" value="2 Pac">2 Pac<br>
<!--Building a div box related to another divs with same id so i can show the wright answer when the user answer is wrong -->
<div id="after_click">
<p id="msg16"></p>
</div>
<p> Which musician has his real name as Peter Gene Hernandez?</p>
<input type="radio" id="mc" name="QU22" value="Red One">Red One<br>
<input type="radio" id="mc" name="QU22" value=" Bruno Mars"> Bruno Mars<br>
<input type="radio" id="mc" name="QU22" value="Drake">Drake<br>
<input type="radio" id="mc" name="QU22" value="Snoop Dog">Snoop Dog<br>
<!--Building a div box related to another divs with same id so i can show the wright answer when the user answer is wrong -->
<div id="after_click">
<p id="msg17"></p>
</div>
<p> Which female musician’s shaved head photo sold for $500,000 back in 2007?</p>
<input type="radio" id="mc" name="QU33" value="Nicki Minaj">Nicki Minaj<br>
<input type="radio" id="mc" name="QU33" value="Celine Dion">Celine Dion<br>
<input type="radio" id="mc" name="QU33" value="Britney Spears">Britney Spears<br>
<!--Building a div box related to another divs with same id so i can show the wright answer when the user answer is wrong -->
<div id="after_click">
<p id="msg18"></p>
</div>
</br>
<input id="button" type="button" value="Done!!" onclick="check_33();">
</form>
<!--Building a div box for messages to show score and congrat the efforts -->
<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>
<!--Building another div with same id(after_click) so i can control all messages to appear just after user click on done button -->
<div id="after_click">
<p id="m"></p>
</div>
<!--Building a button that appear after click just when the answers are right -->
<input type="submit" value=" Go to the next level " id="buttonlevel2" class="hidden" onclick="location.href='Quiz_game_page_index.html';">
</body>
</html>