forked from CodingWith-Adam/space-invaders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
106 lines (97 loc) · 3.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>we are invading space</title>
<link rel="shortcut icon" href="#"/>
<style>
@media only screen and (max-width: 799px) {
.main-content {
display: none;
}
.small-screen {
display: block;
}
}
@media only screen and (min-width: 800px) {
.small-screen {
display: none;
}
}
.message {
color: white;
font-family: "Oakes Grotesk", sans-serif;
text-align: center;
max-width: 900px;
padding: 20px;
}
.message #instruction {
font-size: 1.5em;
}
.message h1 {
font-size: 3.5em;
}
.message p {
font-size: 2em;
}
.message a {
color: white;
}
.message a:hover {
color: white;
}
body {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 0;
margin: 0;
height: 100vh;
background: url("images/space.png");
}
</style>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://weare2.matomo.cloud/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='//cdn.matomo.cloud/weare2.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
</head>
<body>
<div class="small-screen">
<div class="message">
<p>The game is currently not playable on small device screens.</p>
</div>
</div>
<div class="main-content">
<div class="message">
<p id="instruction">Use the left and right key to move, and the up key to shoot.</p>
<div id="win" style="display: none">
<h1>You won!</h1>
<p>Do you want to keep winning by building innovative software-products? Have a look on <a
href="https://www.we-are.be">our website</a> to see how we can help you!</p>
<a href=".">play again</a>
</div>
<div id="lose" style="display: none">
<h1>You lost!</h1>
<p>Do you want to know how not to lose using innovative software-products? Have a look on <a
href="https://www.we-are.be">our website</a> to see how we can help you!</p>
<a href=".">play again</a>
</div>
</div>
<canvas id="game"></canvas>
<script type="module" src="index.js"></script>
</div>
</body>
</html>