-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (48 loc) · 1.72 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
<!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> Clever Snake </title>
<script src="https://cdn.tailwindcss.com"></script>
<script defer src="/_vercel/insights/script.js"></script>
<style>
table,
th,
td {
border: 1px solid #ccc;
border-collapse: collapse;
}
</style>
<script defer src="./script.js"></script>
</head>
<body class="bg-black text-gray-400 fixed top-0 left-0 w-full h-full">
<div class="block md:hidden mt-10 text-center">
<span class="font-semibold block"> Its funnier & better on desktop </span>
</div>
<div class="md:block hidden">
<div class="text-center">
<a href="https://github.com/wassimbj/cleverSnakeGame"
class="p-1 inline-block text-gray-500 text-center hover:text-gray-300">
Github
</a>
</div>
<div class="max-w-lg text-center mx-auto mt-3">
<span id="gameState" class="text-lg block">
<!-- something will go here -->
</span>
<span class="font-semibold text-green-500 block text-center" id="gameLevel"> Level 1 </span>
<table class="mx-auto mt-2">
<tbody id="gameBody">
<!-- it will be filled using js -->
</tbody>
</table>
</div>
<span onclick="resetGame()"
class="bg-white/10 hover:bg-white/20 active:scale-90 text-sm cursor-pointer mx-auto w-20 text-center mt-5 block text-gray-300 px-3 py-2 rounded-lg">
Reset </span>
<span class="block text-center"> or <kbd>Esc</kbd> </span>
</div>
</body>
</html>