-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (57 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
49
50
51
52
53
54
55
56
57
58
<!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">
<link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<title>Snake Game!</title>
</head>
<style>
canvas {
border: 1px solid #353535;
margin: 0 auto;
position: absolute;
top:50px;
left: 0;
right: 0;
bottom: 0;
}
body {
background-color: #f4f4f4;
font-family: Quicksand;
color: #353535
}
i {
position: absolute;
top: 20px;
left: 30px;
padding: 20px;
font-size: 36px !important;
}
#back {
text-decoration: none;
color: inherit;
font-weight: bold;
cursor: pointer;
}
#mobile-hider {
width: 80%;
height: 100%;
text-align:center;
padding: 10em 10%;
line-height: 2em;
}
</style>
<body>
<!-- <i id="back" class="material-icons" onClick="goBack()">arrow_back</i> -->
<script src="./index.js"></script>
<script>
function goBack() {
window.history.back()
}
</script>
</body>
</html>