forked from Project-Islem-Mohamed/Quiz-Game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Quiz_game3.html
78 lines (58 loc) · 2.67 KB
/
Quiz_game3.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
<!-- Music HTML Page-->
<!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="quiz3" name="quiz3">
<p>what's the real name of 50 cent</p>
<input type="radio" id="mc" name="QU1" value="Aubrey Drake Graham">Aubrey Drake Graham<br>
<input type="radio" id="mc" name="QU1" value="Curtis James Jackson">Curtis James Jackson<br>
<input type="radio" id="mc" name="QU1" value="Donald trump">Donald Trump<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="msg1"></p>
</div>
<p> who is the singer of dance monkey</p>
<input type="radio" id="mc" name="QU2" value="Oum kalthoum">Oum kalthoum<br>
<input type="radio" id="mc" name="QU2" value="Madonna">Madonna<br>
<input type="radio" id="mc" name="QU2" value="Tones and I">Tones and I<br>
<input type="radio" id="mc" name="QU2" value="Goerge wassouf">Goerge wassouf<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="msg2"></p>
</div>
<p>Which country is Ya Lili singer Balti from?</p>
<input type="radio" id="mc" name="QU3" value="Tunisia">Tunisia<br>
<input type="radio" id="mc" name="QU3" value="Italy">Italy<br>
<input type="radio" id="mc" name="QU3" value="Algeria">Algeria<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="msg3"></p>
</div>
</br>
<input id="button" type="button" value="Done!!" onclick="check_3();">
</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_game33.html';">
</body>
</html>