-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmemoryGame.html
More file actions
48 lines (45 loc) · 1.91 KB
/
memoryGame.html
File metadata and controls
48 lines (45 loc) · 1.91 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
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Memory Game</title>
<link rel="stylesheet" href="css/memoryGameCSS.css">
<script src="JavascriptFiles/Library/jquery-1.12.0.js"></script>
<script src="JavascriptFiles/memoryGameJavascript.js"></script>
</head>
<body onresize="warning()">
<!--Play/pause background music-->
<audio id="music2" src="music/BGM2.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 cards as answers for the memory game -->
<div class="flip3D">
<div class="back"><img id="aImg" src=""></div>
<div class="front" id="a" onmouseover="checkAnswer(this)"></div>
</div>
<div class="flip3D">
<div class="back"><img id="bImg" src=""></div>
<div class="front" id="b" onmouseover="checkAnswer(this)"></div>
</div>
<div class="flip3D">
<div class="back"><img id="cImg" src=""></div>
<div class="front" id="c" onmouseover="checkAnswer(this)"></div>
</div>
<div class="flip3D">
<div class="back"><img id="dImg" src=""></div>
<div class="front" id="d" onmouseover="checkAnswer(this)"></div>
</div>
</div>
<div id="QuestionDiv"><!--This div is used for showing questions-->
<!--<Canvas id="questionCanvas"></Canvas>-->
<h2>[ Do you remember the right answer? Let's find it! ]</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>
<a href = "home.html" class = "backbutton">FINISH GAME!</a>
</body>
</html>