-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChildGame.html
More file actions
37 lines (34 loc) · 1.79 KB
/
ChildGame.html
File metadata and controls
37 lines (34 loc) · 1.79 KB
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 lang="en">
<head>
<meta charset="UTF-8">
<title>Question-based Game</title>
<link rel="stylesheet" href="css/ChildGameCSS.css">
<script src="JavascriptFiles/Library/jquery-1.12.0.js"></script>
<script src="JavascriptFiles/ChildGame-Questions.js"></script>
</head>
<body onresize="warning()">
<!--Play/pause background music-->
<audio id="music2" src="music/BGM3.mp3" autoplay="autoplay" loop="loop">Your browser not support audio.</audio>
<a href="javascript:playPause();"><img src="pic/On.png" position="absolute" width="30" height="30" id="music_btn2" border="0"></a>
<div id="questionAndAnswerDivs">
<div id="AnswerAnimationsDiv"><!--This div is used to show the animated images as answers for the question-based game -->
<div class='a' draggable="true" ondragstart="drag(event)"><img id="aImg" src=""></div>
<div class='b' draggable="true" ondragstart="drag(event)"><img id="bImg" src=""></div>
<div class='c' draggable="true" ondragstart="drag(event)"><img id="cImg" src=""></div>
<div class='d' draggable="true" ondragstart="drag(event)"><img id="dImg" src=""></div>
</div>
<div id="QuestionDiv"><!--This div is used for showing questions-->
<!--<Canvas id="questionCanvas"></Canvas>-->
<h2>[ Drag the right answer, and drop it to the basket! ]</h2>
<h1 id="question"></h1>
</div>
</div>
<div id="resultDiv"><!--This div is used to show the scores and the basket -->
<div id="scores"><h3>Your Score:</h3></br></div>
<div id="basket" ondrop="drop(event)" ondragover="allowDrop(event)"><img src="pic/basket.png" height="100%" width="100%"></div>
</div>
<a href = "home.html" class = "backbutton">FINISH GAME!</a>
</body>
</html>