-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
120 lines (104 loc) · 2.87 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
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 lang="en">
<head>
<meta charset="UTF-8">
<title>Car Racing Game</title>
<style>
#container {
position: relative;
height: 100vh;
top: 0%;
}
.button_1,
.button_2,
.button_3,
.button_4 {
position: absolute;
padding: 15px 25px;
font-size: 24px;
text-align: center;
cursor: pointer;
outline: none;
color: red;
background-color: rgb(235, 235, 34);
border: none;
border-radius: 15px;
box-shadow: 0 9px #999;
left: 75%;
min-width: 300px;
}
.button_1 {
top: 250px;
}
.button_2 {
top: 350px;
}
.button_3 {
top: 450px;
}
.button_4 {
top: 550px;
}
.button_1:hover,
.button_2:hover,
.button_3:hover,
.button_4:hover {
background-color: #3e8e41
}
.button_1:active,
.button_2:active,
.button_3:active,
.button_4:active {
background-color: #3e8e41;
box-shadow: 0 5px #666;
transform: translateY(4px);
}
body,
html {
height: 100%;
margin: 0;
}
.pic {
/* The image used */
background-image: url("temp.jpeg");
/* Full height */
height: 100%;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
p {
position: absolute;
top: -140px;
left: 25%;
color: rgb(235, 235, 34);
font-family: 'Courier New', Courier, monospace;
font-size: 140px;
}
</style>
</head>
<body>
<div class="pic" id="container">
<p>ℂ𝔸ℝ ℝ𝔸ℂ𝔼</p>
<button id="single_player" class="button_1">SINGLE PLAYER</button>
<button id="dual_player" class="button_2">DUAL PLAYER</button>
<button id="tutorial" class="button_3">TUTORIAL</button>
<button id="about" class="button_4">ABOUT</button>
</div>
<script type="text/javascript">
document.getElementById("single_player").onclick = function () {
location.href = "Single_player.html";
};
document.getElementById("dual_player").onclick = function () {
location.href = "multi_player.html";
};
document.getElementById("tutorial").onclick = function () {
location.href = "tutorial.html";
};
document.getElementById("about").onclick = function () {
location.href = "about.html";
};
</script>
</body>
</html>