-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (39 loc) · 1.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Snake eat bugs 🐍🐛</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="./dist/main.min.css">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
</head>
<body>
<!-- audio resources -->
<audio style="display: none;" id="eats" src="https://tangbc.github.io/snake-eat-bugs/resource/sounds/eats.mov"></audio>
<audio style="display: none;" id="turn" src="https://tangbc.github.io/snake-eat-bugs/resource/sounds/turn.mov"></audio>
<audio style="display: none;" id="dead" src="https://tangbc.github.io/snake-eat-bugs/resource/sounds/dead.mov"></audio>
<!-- app layout -->
<div id="app">
<h1 id="game-name" class="animated" style="visibility: hidden;">SNAKE EAT BUGS</h1>
<!-- loading tips -->
<div v-show="loading" class="loading">
<div class="text">Loading modules, please wait</div>
<div class="tail">
<div class="spinner">......</div>
</div>
</div>
<div v-else class="ready" style="display: none;">
<!-- modules -->
<app-header></app-header>
<app-playground></app-playground>
</div>
</div>
<!-- footer -->
<footer>
<p><a href="https://github.com/tangbc/snake-eat-bugs">Developed by tangbc</a></p>
</footer>
<!-- scripts -->
<script type="text/javascript" src="https://tangbc.github.io/sugar/dist/sugar.min.js"></script>
<script type="text/javascript" src="./dist/app.umd.js"></script>
</body>
</html>