-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
172 lines (149 loc) · 3.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Dec 2018</title>
<meta name="description" content="Fly through space, collect presents floating in the vaccum, avoid the Grinch Monsters, and reach planet Earth to deliver presents in time for Christmas.">
<meta name="theme-color" content="#667EE1">
<link rel="manifest" href="manifest.json">
<meta name="mobile-web-app-capable" content="yes">
<style>
body {
height: 100vh;
margin: 0;
padding: 0;
color: white;
background-color: #667EE1;
font-family: 'Times New Roman', Times, serif;
}
body > canvas {
display: none;
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 16px;
}
h1,
.button,
#noscript {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
h1 {
font-size: 2em;
margin: 0 0 .5em;
}
p {
margin: 0 0 .5em;
}
#loading {
position: relative;
padding: 3em;
text-align: center;
z-index: 1;
}
#play-button {
margin: 1em auto;
color: white;
background-color: #FFB916;
border-color: #FFCF60;
}
#play-button:hover {
color: #FFB916;
background-color: white;
}
#install-button {
color: white;
background-color: #667EE1;
border-color: #57BFDC;
}
#install-button:hover {
color: #667EE1;
background-color: white;
}
.button {
font-size: 2em;
font-weight: 600;
cursor: pointer;
border-radius: .5em;
padding: 0.1em .75em;
}
#play-button:disabled,
#install-button:disabled {
cursor: default;
color: #666;
background-color: #ccc;
border-color: #999;
}
#logo {
margin: 0 auto 1em;
}
#install-banner {
display: none;
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 1.5em;
text-align: right;
}
@media (max-width: 768px) {
#loading {
padding: 1em;
}
#logo {
width: 100%;
max-width: 330px;
height: auto;
}
}
@media (max-height: 600px) {
#loading {
padding: 1em;
}
}
#noscript {
font-size: 2em;
font-weight: bold;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
text-align: center;
background-color: #57BFDC;
z-index: 1;
padding: 2em 0;
color: white;
}
#noscript #logo {
width: auto;
height: auto;
}
#noscript p {
margin: 0 0 2.5em;
}
</style>
</head>
<body>
<div id="loading">
<h1>Dec 2018</h1>
<p><button id="play-button" class="button" disabled="disabled">Play</button></p>
<p>Fly through space, collect presents floating in the vaccum, avoid the Grinch Monsters, and reach planet Earth to deliver presents in time for Christmas.</p>
<p id="loading-animation">Game loading, please wait...</p>
</div>
<div id="install-banner">
<button id="install-button" class="button">Install</button>
</div>
<noscript>
<div id="noscript">
<p>Enable Javascript to play this game.</p>
</div>
</noscript>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/phaser.min.js" charset="utf-8"></script>
<script src="build/game.min.js" charset="utf-8"></script>
</body>
</html>