-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
278 lines (239 loc) · 6.62 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tower of Hanoi</title>
<link rel="stylesheet" href="style.css">
<style>
.header,
.container,
.tower-box,
.tower-title,
.tower-title .title,
.tower-box .disc {
transition: width 0.5s ease-out, background 0.5s ease-in, color 0.5s ease-in-out;
}
.container {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.header {
height: 50px;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
background-color: #ffffff10;
justify-content: space-between;
}
.menu-btn {
height: 50px;
width: 50px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 5px;
cursor: pointer;
font-size: 25px;
font-weight: bold;
color: white;
border-top-right-radius: 10px;
text-shadow: 0px 0px 5px white;
}
.menu-btn:hover {
filter: drop-shadow(0px 0px 10px white);
}
.menu-btn .bar {
height: 3px;
width: 60%;
background-color: white;
border-radius: 5px;
}
.logo {
height: 30px;
width: auto;
padding: 0px;
margin: 0px;
padding-left: 10px;
font-size: 25px;
color: white;
text-shadow: 0px 0px 10px green;
cursor: pointer;
text-align: center;
align-content: center;
}
@media (max-width: 850px) {
.header,
.container,
.tower-title {
width: 500px;
}
.tower-box,
.tower-title .title {
width: 100px;
}
.logo {
font-size: 18px;
}
}
@media (max-width: 550px) {
.header,
.container,
.tower-title {
width: 400px;
}
.tower-box,
.tower-title .title {
width: 80px;
}
.tower-title .title {
font-size: 20px;
}
.logo {
font-size: 14px;
}
.start-btn-ingame {
font-size: 20px;
padding: 10px 5px;
}
}
@media (max-width: 490px) {
.popup-input .input-box {
width: 380px;
margin: 0px;
padding: 10px;
}
}
@media (max-width: 430px) {
.header,
.container,
.tower-title {
width: 100vw;
background-color: transparent;
}
.tower-box,
.tower-title .title {
width: 100px;
padding: 10px 0px;
}
.tower-box .disc {
background-color: rgb(40, 53, 83);
}
.tower-title .title {
font-size: 15px;
}
.popup-input .input-box {
width: 350px;
}
.input-box-ingame.input {
display: none;
}
.header {
top: 0;
position: fixed;
}
}
@media (max-width: 400px) {
.popup-input .input-box {
width: 300px;
}
.popup-message {
padding: 0 20px;
}
}
@media (max-width: 350px) {
.tower-box,
.tower-title .title {
width: 70px;
}
.popup-input .input-box {
width: 250px;
margin: 40px;
}
.tower-title .title {
font-size: 15px;
}
}
.key-pressed-popup {
height: auto;
bottom: 50px;
width: auto;
max-width: 80%;
padding: 0px 20px;
background-color: rgb(10, 23, 53);
position: fixed;
z-index: 100;
display: flex;
justify-content: center;
align-items: center;
font-size: 20px;
color: white;
animation: popup 0.5s ease;
border-radius: 5px;
box-shadow: 0px 0px 5px rgb(40, 53, 83);
animation: popup 0.5s ease;
}
@keyframes popup {
0% {
opacity: 0;
transform: scale(0.5);
}
100% {
opacity: 100%;
transform: scale(1);
}
}
</style>
</head>
<body>
<div class="header">
<h1 class="logo" onclick="runAutoSolve()">
TOWER OF HANOI
</h1>
<div class="input-box-ingame input">
<div class="sub btn">−</div>
<div class="total-disc-input value">1</div>
<div class="add btn">+</div>
<button class="start-btn-ingame">
Start
</button>
</div>
<div class="options">
<div class="menu-btn">
?
</div>
</div>
</div>
<div class="popup-input">
<div class="input-box">
<h1 class="popup-title">Tower of Hanoi</h1>
<p class="popup-message">Select total Number of Disc to Start with. need help? <a class="click-help"
onclick="show_help()">click here.</a>
</p>
<div class="input">
<div class="sub btn">−</div>
<div class="total-disc-input value">1</div>
<div class="add btn">+</div>
</div>
<div class="start game">Start</div>
</div>
</div>
<div class="container">
<div class="tower-box one">
<div class="bar"></div>
</div>
<div class="tower-box two">
<div class="bar"></div>
</div>
<div class="tower-box three">
<div class="bar"></div>
</div>
<div class="tower-title">
<div class="title one">Tower A</div>
<div class="title two">Tower B</div>
<div class="title three">Tower C</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>