-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
150 lines (130 loc) · 2.77 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Simple Maze Game</title>
<style>
body {
margin: 0;
overflow: hidden;
font-size: 16px;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
#win-box {
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
width: 100%;
height: 100%;
z-index: 20;
user-select: none;
}
#win-message {
font-size: 48px;
font-weight: 900;
color: crimson;
margin-bottom: 16px;
}
button,
.button {
width: 180px;
display: flex;
justify-content: center;
align-items: center;
background-color: Thistle;
color: BlueViolet;
font-size: 16px;
border: none;
outline: none;
padding: 6px 12px;
margin-top: 20px;
border-radius: 6px;
cursor: pointer;
box-shadow: 0 6px 10px rgba(216, 191, 216, 0.5);
transition: all 0.2s ease;
}
button:hover {
background-color: Plum;
color: DarkMagenta;
}
button:active {
background-color: Lavender;
color: MediumPurple;
}
#next,
#close-menu {
display: none;
}
#controller {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: transparent;
overflow: hidden;
user-select: none;
padding: 0;
z-index: 10;
}
#status {
position: fixed;
top: 16px;
right: 16px;
display: flex;
gap: 4px;
z-index: 15;
user-select: none;
}
#status button,
#status .button {
width: auto;
font-size: 0.6rem;
background-color: rgba(216, 191, 216, 0.8);
color: maroon;
padding: 4px 8px;
margin: 0;
}
.not-pointer {
cursor: default !important;
}
</style>
</head>
<body>
<div id="controller"></div>
<div id="win-box">
<div id="win-message">
YOU WON!
</div>
<button id="next">
Next Level
</button>
<button id="close-menu">
Close Menu
</button>
<button id="reply">
Reply Curren Level
</button>
<button id="reset">
Reset To Level 1
</button>
</div>
<div id="status">
<button id="open-menu">Menu</button>
<div class="button not-pointer">
Level:
<span id="level"></span>
</div>
</div>
<script type="module" src="/main.js"></script>
</body>
</html>