-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSnakePage.html
More file actions
120 lines (106 loc) · 2.56 KB
/
SnakePage.html
File metadata and controls
120 lines (106 loc) · 2.56 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html>
<!-- this is the code that will allow icon to be visible in the title bar of the brower -->
<link rel="icon" type="image/ico" href="WebsiteLogo2.png" />
<!-- you can also say this: <link rel="icon" type="image/png" href="location/image.png" /> -->
<style>
div.advertisement {
text-align: right;
font-family: 'Consolas';
font-size: 20px;
color: grey;
position: sticky;
top: 0;
padding-top: 10px;
padding-bottom: 10px;
}
body {
background-color: #E5E4E2;
}
h2 {
background-color: #2B1B17;
}
div.top {
text-align: center;
font-family: 'Consolas';
font-size: 40px;
}
div.updateHeader {
text-align: center;
font-family: 'Consolas';
font-size: 30px;
}
div.update {
text-align: left;
font-family: 'Consolas';
font-size: 20px;
}
div.updateDate {
font-weight: bold;
color: #cc9900;
}
div.buttons {
text-align: center;
/* position: -webkit-sticky; */
position: sticky;
top: 0;
padding-top: 10px;
padding-bottom: 20px;
}
div.links {
text-align: center;
padding: 20px;
}
button {
background-color: #bbb;
padding: .2em;
margin-left: 1em;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 10px;
color: #fff;
font-family: 'Consolas';
/*Oswald is a great font*/
font-size: 20px;
text-decoration: none;
border: none;
}
button:hover {
background-color: rgb(172, 122, 15);
}
a {
color: #2c87f0;
}
a:visited {
color: #636;
}
a:hover,
a:active,
a:focus {
color: #636;
}
</style>
<div class="top">
<h1 id="title">Snake Collection</h1>
</div>
<div class="buttons">
<button id="1pNormal">1 player</button>
<button id="3pNormal">3 players</button>
<button id="4pOnline">Online (Coming soon)</button>
</div>
<script>
let Normal1 = document.getElementById("1pNormal");
let Normal3 = document.getElementById("3pNormal");
let Online = document.getElementById("4pOnline");
//Button event listeners
Normal1.addEventListener("click", () => {
console.log("1 clicked.");
});
Normal3.addEventListener("click", () => {
console.log("3 clicked.");
});
Online.addEventListener("click", () => {
console.log("O clicked.");
});
</script>
</html>