-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (43 loc) · 1.43 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
<!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>Canvas game</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
* > * {
margin: 0;
padding: 0;
}
body{
margin: 0;
padding: 0;
background: black;
}
#modalEL{
z-index: 10;
background: black;
}
</style>
</head>
<body>
<div class="fixed text-white text-sm ml-2 mt-1 select-none" id="gameScore">
<span>Score: </span><span id="scoreEL">0</span>
</div>
<div class="fixed inset-0 flex items-center justify-center text-center" id="modalEl">
<div class="bg-white max-w-md w-full p-6">
<h1 class="text-4xl font-bold leading-none" id="bigscoreEL">0</h1>
<p class="text-sm text-gray-700 mb-4">Points</p>
<div><button class="bg-blue-500 text-white w-full py-3 rounded-full text-sm" id="startGameBtn">Start Game</button></div>
</div>
</div>
<canvas></canvas>
<!-- GSAP library -->
<!-- console.log(gsap) -->
<!-- To findout all functions -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js" integrity="sha512-H6cPm97FAsgIKmlBA4s774vqoN24V5gSQL4yBTDOY2su2DeXZVhQPxFK4P6GPdnZqM9fg1G3cMv5wD7e6cFLZQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="./main.js"></script>
</body>
</html>