-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
59 lines (59 loc) · 2.1 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
<!DOCTYPE HTML>
<html lang='en'>
<head>
<script src='https://code.jquery.com/jquery-3.7.1.min.js'></script>
<script src='https://api.mapbox.com/mapbox-gl-js/v2.9.1/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v2.9.1/mapbox-gl.css' rel='stylesheet' />
<link href='style.css' rel='stylesheet' />
<script src='streetdata.js'></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="content">
<div id="mapcontainer">
<div id='map' style='width: 100%; height: 100%'></div>
</div>
<div id="sidecard">
<div id="main">
<div id="scores">
<div id="mainscore">
<h1 id="score">0.00%</h1>
<p>of miles of street named</p>
</div>
<div id="auxscores">
<div id="nsscore">0.00% of n/s streets</div>
<div id="ewscore">0.00% of e/w streets</div>
<div id="diagscore">0.00% of other streets</div>
</div>
</div>
<div style="display: flex; align-items: center;">
<input id="input" type="text" placeholder="Enter street name"/>
<button id="submit" type="button" class="mobile" style="margin-left: 1rem">+</button>
<button id="show" class="mobile" style="margin-left: 1rem">show roads</button>
</div>
</div>
<div id="extra">
<div style="display: flex;">
<h3 id="count">0/x streets found</h3>
<h3><a id="clear" href="javascript:;">(Clear)</a><h3>
</div>
<label for="sort">Sort: </label>
<select name="sort" id="sort">
<option value="guess">Order found</option>
<option value="alpha">Alphabetical</option>
<option value="lenasc">Length (Ascending)</option>
<option value="lendsc">Length (Descending)</option>
</select>
<ul id="guesses"></ul>
<div style="padding-bottom: 1rem; padding-right: 1rem;">
<button id="numberedhelper" title="automatically enters all ~130 numbered streets, so you don't have to!">Numbered Streets Cheat</button>
<br />
<br />
<a href="https://twitter.com/fujixwillow" target="_blank">Get updates on Twitter</a>
</div>
</div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>