-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (48 loc) · 1.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js"
integrity="sha512-f8mwTB+Bs8a5c46DEm7HQLcJuHMBaH/UFlcgyetMqqkvTcYg4g5VXsYR71b3qC82lZytjNYvBj2pf0VekA9/FQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
defer
></script>
<script src="index.js" defer></script>
<link
href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css"
rel="stylesheet"
/>
<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>Asteroids - Chris Courses</title>
</head>
<body>
<style>
body {
margin: 0;
padding: 0;
box-sizing: border-box;
background: black;
}
</style>
<div class="fixed text-white text-sm ml-2 mt-1 select-none"
><span>Score: </span><span id="scoreEL">0</span></div
>
<div id="modalEL" class="fixed inset-0 flex items-center justify-center">
<div class="bg-white max-w-md w-full p-6 text-center">
<h1 id="bigScoreEl" class="text-4xl font-bold leading-none select-none"
>0</h1
>
<p class="text-sm text-gray-700 mb-4 select-none">Points</p>
<button
id="startGameBtn"
class="bg-blue-500 text-white text-lg font-bold w-full py-3 rounded-full"
>Start Game</button
>
</div>
</div>
<canvas></canvas>
</body>
</html>