-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (102 loc) · 2.58 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit&display=swap" rel="stylesheet">
<title>Snake Game</title>
<meta name="viewport"
content="user-scalable=0">
</head>
<body>
<div id="status">Loading...</div>
<canvas id="snakeboard"></canvas>
<div id="sidebar"></div>
<div id="score"></div>
<div id="scrollable"><br>42</div>
<!--<style>
#html, body {
width: 100%;
height: 100%;
margin: 0px;
border: 0;
}
#snakeboard {
position: absolute;
top: 50%;
left: 99%;
transform: translate(-100%, -50%);
}
#sidebar {
text-align: left;
font-size: 25px;
margin-left: 15px;
margin-top: 15px;
}
#status {
font-size: 50px;
width: 30%;
height: 10%;
margin: left;
text-align: center;
}
#retry {
text-align: center;
}
#score {
position: absolute;
font-size: 25px;
visibility: hidden;
left: 50%;
bottom: 1%;
width: 92%;
margin-left: 4%;
text-align: left;
transform: translate(-50%, -50%);
}
#scrollable {
position: absolute;
font-size: 50px;
visibility: hidden;
left: 50%;
bottom: -100px;
transform: translate(-50%, -50%);
}
.button {
position: absolute;
border: none;
color: white;
padding: 10px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: -6px 16px;
transition-duration: 0.4s;
cursor: pointer;
}
.retry {
background-color: white;
color: black;
border: 2px solid #4CAF50;
}
.retry:hover {
background-color: #4CAF50;
color: white;
}
</style>-->
</body>
<!-- Libs -->
<script src="https://www.gstatic.com/firebasejs/8.4.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.4.1/firebase-database.js"></script>
<!-- Originally from https://github.com/Automattic/Color.js -->
<script src="color.js"></script>
<script>
var retryClicked = false;
function onRetryClick() {
retryClicked = true;
}
</script>
<script src="script.min.js"></script>
</html>