-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
210 lines (180 loc) · 7.36 KB
/
index.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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!DOCTYPE html>
<html lang="en">
<head>
<title>Lysandra - Match Game</title>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="apple-touch-icon" href="assets/images/logo.svg">
<link rel="mask-icon" href="assets/images/logo.svg" color="#990000">
<link rel="icon" type="image/png" href="assets/images/logo.svg">
<meta name="description" content="Lysandra - Match Game">
<meta name="full-screen" content="yes" />
<meta name="theme-color" content="#3F51B5">
<meta name="screen-orientation" content="portrait" />
<link type="text/css" rel="stylesheet" media="screen and (max-width: 1199px)" href="assets/css/style.css">
<link type="text/css" rel="stylesheet" media="screen and (min-width: 1200px)" href="assets/css/big.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="assets/css/freeze-ui.min.css" type="text/css" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css2?family=Baloo+Chettan+2:wght@700&family=Roboto&display=swap"
rel="stylesheet">
<link rel="manifest" href="manifest.json">
</head>
<body class="">
<div id="settingsPanel" class="panel" style="height:100%;display:none">
<!-- Start Game Panel -->
<header>
<h3 class="base-font">
<div class="container">
<div style="margin-right:10%"></div>
<div>Settings</div>
<div style="margin-left:10%"></div>
</div>
</h3>
</header>
<div class="container">
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
<div id="scorePanel" class="background panel" style="height:100%;display:none">
<!-- Start Game Panel -->
<header>
<h3 class="base-font">
<div class="container">
<div style="margin-right:10%"></div>
<div>Leaderboard</div>
<div style="margin-left:10%"></div>
</div>
</h3>
</header>
<div class="container">
<div class="base-font">Name</div>
<div class="base-font"></div>
<div class="base-font" >Score</div>
</div>
<div class="bottom-container" style="padding-top:10%"></div>
<div id="scoreTable">
<div class="container">
<div></div>
<div></div>
<div></div>
</div>
</div>
<div class="bottom-container" style="padding-top:10%;border-top: 1px;border-top-style: solid;">
<div class="container flex">
<div>
<a href="#" onClick="Game.showPanel('gamePanel')">
<img class="menuButton" src="assets/images/back.svg">
</a>
</div>
<div>
</div>
<div>
<a href="#" onClick="Game.resetLeaderboard()">
<img class="menuButton" src="assets/images/delete.svg">
</a>
</div>
</div>
</div>
</div>
<div id="gamePanel" class="panel background" style="display:block;border-bottom: 1px;border-top-style: solid;">
<!-- Start Game Panel -->
<header>
<h3 class="base-font">
<div class="container">
<div id="score" style="margin-right:10%">Match 0</div>
<div id="miss">Miss 0</div>
<div id="timer" style="margin-left:10%">Time 0</div>
</div>
</h3>
</header>
<div style="display:block;border-bottom: 1px;border-top-style: solid;"></div>
<iframe src="assets/audio/silence.mp3" type="audio/mp3" allow="autoplay" id="audio"
style="display:none"></iframe>
<div id="snackbar"></div>
<!--
<span id="bgMusic">
<audio id="player" autoplay loop>
<source src="assets/audio/bensound-epic.mp3" type="audio/mp3">
</audio>
</span>
-->
<div style="height:20%">
<img id='anim1' src='assets/images/logo.svg' height="100%"/>
</div>
<div id="gameMain" class="">
<div class="container">
<div class="matchItem"></div>
<div class="matchItem"></div>
<div class="matchItem"></div>
<div class="matchItem"></div>
</div>
<div class="container">
<div class="matchItem"></div>
<div class="matchItem"></div>
<div class="matchItem"></div>
<div class="matchItem"></div>
</div>
<div class="container">
<div class="matchItem"></div>
<div class="matchItem"></div>
<div class="matchItem"></div>
<div class="matchItem"></div>
</div>
<div class="container">
<div class="matchItem"></div>
<div class="matchItem"></div>
<div class="matchItem"></div>
<div class="matchItem"></div>
</div>
</div>
<div style="display:block;border-bottom: 1px;border-top-style: solid;margin-bottom:5px"></div>
</div> <!-- End Game Panel -->
<footer class="footer panel">
<div class="bottom-container">
<div class="container flex" style="margin-top:5%">
<div>
<a href="#" onClick="Game.start()">
<img class="menuButton" src="assets/images/restart.svg">
</a>
</div>
<div>
<a href="#" onClick="Game.toggleMusic()">
<img class="menuButton" id="musicButton" src="assets/images/music-on.svg">
</a>
</div>
<div>
<a href="#" onClick="Game.leaderboard()">
<img class="menuButton" src="assets/images/trophy.svg">
</a>
</div>
<div>
<a href="#" onClick="window.location='https://github.com/johnfacey/lysandra'">
<img class="menuButton" src="assets/images/info.svg">
</a>
</div>
</div>
</div>
</footer>
</body>
<script src="assets/js/freeze-ui.min.js"></script>
<script src="assets/js/[email protected]"></script>
<script src="assets/js/game.js"></script>
<script src="assets/js/main.js"></script>
<script>
if (location.protocol != "file:") {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('service-worker.js').then(function (registration) {
// Registration was successful
console.log('ServiceWorker registration successful with scope: ', registration.scope);
registration.update();
sw = registration;
//askPermission();
});
}
}
</script>
</html>