-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
121 lines (110 loc) · 4.93 KB
/
index.html
File metadata and controls
121 lines (110 loc) · 4.93 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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Spot the difference!</title>
<link href="https://fonts.googleapis.com/css?family=Anonymous+Pro" rel="stylesheet">
<!-- <link href="https://fonts.googleapis.com/css?family=Questrial" rel="stylesheet"> -->
<link href="https://fonts.googleapis.com/css?family=Chango" rel="stylesheet">
<!-- <link href="https://fonts.googleapis.com/css?family=Chela+One" rel="stylesheet"> -->
<link rel="stylesheet" href="css/bootstrap.min.css" charset="utf-8">
<link rel="stylesheet" href="css/font-awesome-4.6.3/css/font-awesome.min.css" charset="utf-8">
<link rel="stylesheet" href="css/animate.css" charset="utf-8">
<link rel="stylesheet" href="css/style.css" charset="utf-8">
<script src="js/external/jquery-3.1.0.min.js"></script>
<script src="js/external/bootstrap.min.js"></script>
<script src="js/answers.js"></script>
<script src="js/main.js"></script>
</head>
<!-- THIS GAME NEEDS TABLET SCREEN SIZE AND ABOVE TO BE FUN -->
<!-- BOOTSTRAP OPTIMISED FOR 'SM' DEVICES AND ABOVE ONLY! -->
<body>
<!-- ============ FANCY UI ACTION AREA ============ -->
<!-- Current score | game logo | highscore + Time assist icons -->
<div id="dashboard" class="container-fluid text-center restrict-height">
<div class="row">
<div class="col-sm-3 game-font text-left">
<h3 class="game-font">
Your score
</h3>
<div id="score-ui" class="score-ui dark">
00000
</div>
</div>
<div id="logo" class="col-sm-6">
<a href="https://github.com/nickangtc/spot-the-difference">
<img src="img/logo.png" alt="I'm open source! View code on github" style="width:100%;" />
</a>
</div>
<div class="col-sm-3 text-right">
<h3 class="game-font">
Highscore
</h3>
<div id="highscore" class="game-font score-ui">
36550
</div>
<div id="assist-time">
<img class="icon" src="img/icon-time.png" alt="time icon" />
<img class="icon" src="img/icon-time.png" alt="time icon" />
<img class="icon" src="img/icon-time.png" alt="time icon" />
</div>
</div>
</div>
<!-- Time countdown bar | Clue assist icons -->
<div class="row">
<div class="col-sm-10">
<div class="progress">
<div id="time-bar" class="progress-bar progress-bar-success progress-bar-striped active" style="width: 100%;" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="col-sm-2 text-right">
<span id="assist-clue">
<img class="icon" src="img/icon-find.png" alt="clue icon" />
<img class="icon" src="img/icon-find.png" alt="clue icon" />
<img class="icon" src="img/icon-find.png" alt="clue icon" />
</span>
</div>
</div>
</div><!-- /.container-fluid#dashboard -->
<!-- ============ GAMEPLAY AREA ============ -->
<div id="images-area" class="container-fluid text-center restrict-height">
<!-- Area divided into | left-pane | right-pane | -->
<div id="game-stage" class="row">
<!-- Left Picture Pane -->
<!-- Do not add to 'left-pane' any class name containing 'img' -->
<!-- // it will screw up 'doImg' function in main.js -->
<div id="left-pane" class="col-sm-6 tight-fit img1a">
<canvas id="canvas-left" width="675" height="527"></canvas>
</div>
<!-- Right Picture Pane -->
<div id="right-pane" class="col-sm-6 tight-fit img1b pull-right">
<canvas id="canvas-right" width="675" height="527"></canvas>
</div>
<div id="countdown-timer" class="animated infinite pulse game-font"></div>
</div>
</div>
<!-- Bootstrap Modal for youtube pop up -->
<div class="modal fade" id="videoPopUp" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content game-font">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Nice job.</h4>
</div>
<div class="modal-body">
<iframe width="560" height="315" src="" frameborder="0" allowfullscreen></iframe>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<audio id="right-fx" src="fx/correct-sound.mp3" type="audio/mpeg"></audio>
<audio id="wrong-fx" src="fx/wrong-sound.mp3" type="audio/mpeg"></audio>
<audio id="time-fx" src="fx/FF7-boost.mp3" type="audio/mpeg"></audio>
<audio id="clue-fx" src="fx/FF7-clue.mp3" type="audio/mpeg"></audio>
<audio id="ticking" src="fx/ticking-sound.mp3" type="audio/mpeg"></audio>
<audio id="gameover" src="fx/FF7-gameover.mp3" type="audio/mpeg"></audio>
</body>
</html>