-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
135 lines (131 loc) · 7.99 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/leaflet-sidebar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/leaflet-sidebar.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="icon.png">
<title>California Fires</title>
</head>
<body>
<div id="map">
<div id="loading">
<img src="icon.png" alt="Loading" class="loading-img">
<img src="icon.png" alt="Loading" class="loading-img" title="Loading...">
<h1>Loading...</h1>
</div>
<div id="sidebar" class="leaflet-sidebar collapsed">
<div class="leaflet-sidebar-tabs">
<ul role="tablist">
<li><a href="#filter" role="tab" title="Filter"><i class="bi bi-funnel-fill"></i></a></li>
<li><a href="#settings" role="tab" title="Settings"><i class="bi bi-gear-fill"></i></a></li>
</ul>
<ul role="tablist">
<li><a href="#data" role="tab" title="Data"><i class="bi bi-info-circle-fill"></i></a></li>
</ul>
</div>
<div class="leaflet-sidebar-content">
<div class="leaflet-sidebar-pane" id="filter">
<h1 class="leaflet-sidebar-header">Filter fires <span id="fire-count"></span><span
class="leaflet-sidebar-close"><i class="bi bi-x"></i></span></h1>
<div class="scroll-content">
<h2>Year</h2>
<select name="year" id="year-select">
<option value="all">All</option>
</select>
<h2>Response unit</h2>
<select name="unit" id="unit-select">
<option value="all">All</option>
</select>
<h2>Causes</h2>
<form id="causes">
<div>
<input type="checkbox" name="lightning">
<label for="lightning">Lightning</label><br>
<input type="checkbox" name="equipment">
<label for="equipment">Equipment</label><br>
<input type="checkbox" name="smoking">
<label for="smoking">Smoking</label><br>
<input type="checkbox" name="campfire">
<label for="campfire">Campfire</label><br>
<input type="checkbox" name="debris">
<label for="debris">Debris</label><br>
<input type="checkbox" name="railroad">
<label for="railroad">Railroad</label><br>
<input type="checkbox" name="arson">
<label for="arson">Arson</label><br>
<input type="checkbox" name="playing">
<label for="playing">Playing with fire</label><br>
<input type="checkbox" name="misc">
<label for="misc">Miscellaneous</label><br>
<input type="checkbox" name="vehicle">
<label for="vehicle">Vehicle</label><br>
<input type="checkbox" name="powerline">
<label for="powerline">Powerline</label><br>
<input type="checkbox" name="firefighter-training">
<label for="firefighter-training">Firefighter training</label><br>
<input type="checkbox" name="non-firefighter-training">
<label for="non-firefighter-training">Non-firefighter training</label><br>
<input type="checkbox" name="unknown">
<label for="unknown">Unknown</label><br>
<input type="checkbox" name="structure">
<label for="structure">Structure</label><br>
<input type="checkbox" name="aircraft">
<label for="aircraft">Aircraft</label><br>
<input type="checkbox" name="volcanic">
<label for="volcanic">Volcanic</label><br>
<input type="checkbox" name="escaped">
<label for="escaped">Escaped prescribed burn</label>
</div>
</form>
</div>
</div>
<div class="leaflet-sidebar-pane" id="settings">
<h1 class="leaflet-sidebar-header">Settings<span class="leaflet-sidebar-close"><i
class="bi bi-x"></i></span></h1>
<div class="scroll-content">
<form name="settings" id="settings">
<h2>Units</h2>
<input type="radio" name="settings" id="acres" value="acres" checked>
<label for="acres">Acres</label><br>
<input type="radio" name="settings" id="miles" value="square miles">
<label for="miles">Square miles</label><br>
<input type="radio" name="settings" id="km" value="square kilometers">
<label for="km">Square kilometers</label>
<h2>Colors</h2>
<input type="color" name="largest" id="largest" value="#ff0000">
<label for="largest">Largest fire</label><br>
<input type="color" name="smallest" id="smallest" value="#ffff00">
<label for="smallest">Smallest fire</label>
<p><input type="submit" value="Update settings"></p>
</form>
</div>
</div>
<div class="leaflet-sidebar-pane" id="data">
<h1 class="leaflet-sidebar-header">Data<span class="leaflet-sidebar-close"><i
class="bi bi-x"></i></span></h1>
<div class="scroll-content">
<p>Fire data comes from <a
href="https://calfire-forestry.maps.arcgis.com/home/item.html?id=e3802d2abf8741a187e73a9db49d68fe&view=list&sortOrder=desc&sortField=defaultFSOrder&showFilters=false#overview"
target="_blank">CalFire</a>.</p>
<p>The source code for this project is on <a href="https://github.com/Narlotl/fire"
target="_blank">GitHub</a>.</p>
<p>Thanks to Benjamin Rogers and the CalFire digital
team for helping make the data available.</p>
<a href="https://www.flaticon.com/free-icons/fire" target="_blank" title="fire icons">Fire icon
created by Vectors Market - Flaticon</a>
</div>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>