-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
184 lines (154 loc) · 8.53 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Wombling Project</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<link href="https://api.mapbox.com/mapbox-gl-js/v2.11.0/mapbox-gl.css" rel="stylesheet">
<script src="https://api.mapbox.com/mapbox-gl-js/v2.11.0/mapbox-gl.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="index.css">
<!-- <link rel="stylesheet" type="text/css" href="css/radio.css"> -->
<!-- <link rel="stylesheet" type="text/css" href="css/checkbox.css"> -->
</head>
<body>
<!-- Map goes in here -->
<div id="map"></div>
<div class="map-overlay top">
<button id="menu-collapsible" class="collapsible">Menu</button>
<div id="menu-contents" class="map-overlay-inner" style="overflow-y:auto;">
<!-- <label for="areasSelect">Select an area type:</label> -->
<select name="areasSelect" id="areasSelect" class="dropdown-large">
<option value="sa1_2011">SA1 2011</option>
<option value="sa1_2016" selected>SA1 2016</option>
</select>
<br>
<br>
<div class="block">
<label for="csvInput" class="custom-file-upload btn">
Choose a CSV file to upload.
</label>
<br>
<span id="custom-text" class="file-upload-tooltip"> No file chosen, yet. 🛈
<span class="mytooltiptext">The first column must contain area codes. All other columns must contain variable data.</span>
</span>
<input type="file" id="csvInput" accept=".csv" />
</div>
<hr>
<div id="selectionBlock">
<span class="indicator-options-tooltip">
<h5>Womble Indicator Options 🛈</h5>
<span class="mytooltiptext">Womble indicator options will only take effect upon clicking "Run".</span>
</span>
<h6>Select Womble Indicators:</h6>
<div id="options"></div>
<!-- This div contains the reset and run buttons for the indicator sliders. Initially hidden until the user selects their indicators -->
<div id="womble-indicators-buttons" class="hide">
<div class="womble-indicators-buttons-container">
<hr>
<label class="checkbox-container" for="distance-weight-checkbox">Distance Weight
<input type="checkbox" id="distance-weight-checkbox">
<span class="checkmark"></span>
</label>
<br>
<button id="reset-weights-button" class="womble-indicators-button">Reset Weights</button>
<button id="run-womble-button" class="womble-indicators-button">Run</button>
</div>
</div>
<!-- <br>
<button id="submitOptions">Confirm selection</button> -->
</div>
<hr>
<h5>View Options</h5>
<label>Wall Opacity: <span id="transparency-slider-value">100%</span></label>
<input id="transparency-slider" type="range" min="0" max="100" step="0" value="100">
<!-- <label>Min. Womble: <span id="min-slider-value">0</span></label>
<input id="min-slider" type="range" min="0" max="1" step="0.01" value="0">
<label>Max. Womble: <span id="max-slider-value">1</span></label>
<input id="max-slider" type="range" min="0" max="1" step="0.01" value="100"> -->
<label>Filter Visible Womble Values:</label>
<div class="dual-slider-values">
<span id="min-slider-value">0</span>
<span>to</span>
<span id="max-slider-value">1</span>
</div>
<div class="dual-slider-container">
<div id="min-max-slider-track" class="dual-slider-track"></div>
<input id="min-slider" type="range" min="0" max="1" step="0.01" value="0">
<input id="max-slider" type="range" min="0" max="1" step="0.01" value="1">
</div>
<!-- All layer filter checkboxes in the HTML file should be in the form: [LAYER_ID]-checkbox -->
<div id="filter-buttons">
<label class="checkbox-container" for="boundaries-checkbox">Show Boundaries
<input type="checkbox" id="boundaries-checkbox" checked="checked">
<span class="checkmark"></span>
</label>
<label id="walls-check-label" class="checkbox-container" for="walls-checkbox">Show Walls
<input type="checkbox" id="walls-checkbox" checked="checked">
<span class="checkmark"></span>
</label>
</div>
<div>
<fieldset>
<div id="color-checkbox-div">
<label class="radio-container" for="color-checkbox" id="colorOnly-label">Width only
</label>
<input type="radio" id="color-checkbox" checked="checked" name="view">
<span class="radio-checkmark"></span>
</div>
<div id="height-checkbox-div">
<label id="height-check-label" class="radio-container" for="height-checkbox">Color only
</label>
<input type="radio" id="height-checkbox" name="view">
<span class="radio-checkmark"></span>
</div>
<div id="both-checkbox-div">
<label id="both-check-label" class="radio-container" for="both-checkbox">Both Color and Width
</label>
<input type="radio" id="both-checkbox" name="view">
<span class="radio-checkmark"></span>
</div>
</fieldset>
</div>
<hr>
<h5>Base Map</h5>
<div>
<fieldset>
<div id="light-checkbox-div">
<label class="radio-container" for="light-checkbox" id="light-label">Light Mode
</label>
<input type="radio" id="light-checkbox" checked="checked" name="style">
<span class="radio-checkmark"></span>
</div>
<div id="dark-checkbox-div">
<label id="dark-label" class="radio-container" for="dark-checkbox">Dark Mode
</label>
<input type="radio" id="dark-checkbox" name="style">
<span class="radio-checkmark"></span>
</div>
<div id="satellite-checkbox-div">
<label id="satellite-label" class="radio-container" for="satellite-checkbox">Satellite Mode
</label>
<input type="radio" id="satellite-checkbox" name="style">
<span class="radio-checkmark"></span>
</div>
</fieldset>
</div>
<!-- <button id="test">test</button> -->
</div>
</div>
<div id="loader" class="loader" hidden></div>
<div class='map-overlay-legend' id='legend'></div>
<script src="js/boundaries.js" type="module"></script>
<script src="js/upload.js" type="module"></script>>
<script src="js/sliders.js" type="module"></script>
<script src="js/womble.js" type="module"></script>>
<script src="js/filter.js" type="module"></script>>
<script src="js/index.js" type="module"></script>
<script src="js/indicatorOptions.js" type="module"></script>
<link rel="stylesheet" type="text/css" href="css/checkbox.css">
<link rel="stylesheet" type="text/css" href="css/dualSlider.css">
<link rel="stylesheet" type="text/css" href="css/select.css">
<link rel="stylesheet" type="text/css" href="css/wombleIndicatorButtons.css">
</body>
</html>