-
Notifications
You must be signed in to change notification settings - Fork 2
/
quiz.html
37 lines (32 loc) · 1.06 KB
/
quiz.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="quiz.css">
</head>
<body>
<video autoplay muted loop id="myVideo">
<source src="Sans_titre.mp4" type="video/mp4">
Your browser does not support HTML5 video.
</video>
<div class="content">
<h1 id="title">Rules</h1>
<p>The game consists in choosing a specific topic, each topic is divided into three levels, the first level is easy 😄, the second is medium 😳 and the third is difficult 🤯 ,To move from level to another, you have to answer most of the questions.</p>
<button class="bt" id="myBtn" onclick="myFunction()">Pause</button>
<button class="bt" id="myBtn1" onclick="location.href='Quiz_game_page_index.html';">Start</button>
</div>
<script>
var video = document.getElementById("myVideo");
var btn = document.getElementById("myBtn");
function myFunction() {
if (video.paused) {
video.play();
btn.innerHTML = "Pause";
} else {
video.pause();
btn.innerHTML = "Play";
}
}
</script>
</body>
</html>