-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
157 lines (135 loc) · 4.26 KB
/
index.html
File metadata and controls
157 lines (135 loc) · 4.26 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>nodes fun</title>
<style>
* {
-webkit-user-select: none;
/* Safari */
-ms-user-select: none;
/* IE 10 and IE 11 */
user-select: none;
/* Standard syntax */
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
touch-action: none;
}
html {
box-sizing: border-box;
overflow: hidden;
padding: 0px;
margin: 0px;
background-color: black;
}
canvas:hover {
cursor: pointer;
}
.header {
display: flex;
flex-direction: column;
align-items: center;
white-space: nowrap;
color: green;
margin-bottom: 20px;
}
.control {
display: flex;
}
#sizerange {
width: 25vw;
}
#speedrange {
width: 25vw;
}
.btn {
background-color: #181a1b;
width: 15vw;
border-radius: 10px;
border-color: #736b5e;
color: green
}
.btn:hover {
color: rgb(52, 215, 52)
}
.canvases {
margin-left: 8vw;
}
.labels {
display: flex;
flex-direction: column;
padding: 1vw;
padding-bottom: 0px;
padding-top: 0px;
}
#performanceSpan {
margin-bottom: 1%;
}
@media only screen and (max-width: 749px) {
.btn {
width: 20vw;
}
}
@media only screen and (max-width: 540px) {
.btn {
font-size: 2.5vw;
width: 24vw;
}
.header {
font-size: 2vw;
}
}
.settings {
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
position: absolute;
z-index: 10;
background-color: black;
padding-bottom: 10px;
border: 2px solid rgb(3, 73, 10);
border-radius: 25px;
}
</style>
</head>
<body>
<div class="header">
<div class="settings" id="settings">
<div class="control">
<div class="options">
<input type="radio" id="bfs" name="search" value="bfs">
<label for="bfs">Breadth 1st search</label><br>
<input type="radio" id="dfs" name="search" value="dfs" checked>
<label for="dfs">Depth 1st search</label><br>
<div class="coordinates">
<input type="checkbox" id="ShowCordinates" name="ShowCordinates" value="bfs">
<label for="ShowCordinates">Show Coordinates</label>
</div>
<div class="markblocks">
<input type="checkbox" id="markblocks" name="markblocks" value="bfs">
<label for="markblocks">Mark Blocks</label>
</div>
</div>
<div class="labels">
<label id="sizerangelabel" for="sizerange">Cell size: 25 x 25</label>
<input id="sizerange" name="sizerange" type="range" value="25" min="10" max="80">
</div>
<div class="labels">
<label id="speedrangelabel" for="speedrange">Drawing Delay : 0ms</label>
<input id="speedrange" name="speedrange" type="range" value="0" min="0" max="200">
</div>
</div>
<button class="btn" id="closesettingbtn">close</button>
</div>
<button class="btn" id="opensettingbtn">Settings</button>
<span id="performanceSpan"></span>
<button class="btn" id="mazebtn">make a maze</button>
</div>
<div class="canvases">
<canvas id="Mycanvas"></canvas>
</div>
<script src="./fun.js"></script>
</body>
</html>