-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
118 lines (111 loc) · 4.91 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
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body src="https://unpkg.com/axios/dist/axios.min.js">
<h1 id="headerbar">CNI Firemap
<div class="nav clear"> <!-- New Section HERE HERE HERE HERE HERE HERE HERE -->
<ul>
<li><a href="indexpagetwo.html">Fire Sighting Submissions</a></li>
</ul>
</div>
</h1>
<div class = "column left">
<div id="map"></div>
<div class="container">
<button onclick="reposition(1)">North America</button>
<button onclick="reposition(2)">South America</button>
<button onclick="reposition(3)">Asia</button>
<button onclick="reposition(4)">Africa</button>
<button onclick="reposition(5)">Europe</button>
<button onclick="reposition(6)">Australia</button>
</div>
</div>
<div class = "column right">
<br><br>
<p id="location">Approximate location: </p>
<p id="coordinates">Coordinates: </p>
<p id="firescore">Fire risk: </p>
<p id="weather">Weather: </p>
<p id="temperature">Temperature: </p>
<p id="humidity">Humidity: </p>
<p id="windspeed">Wind speed: </p>
<div class = "line"></div>
<br><br>
<p style ="padding-bottom: 0.9em;">Legend:</p>
<table style= "padding-left:4em">
<tr>
<td>
<div class = "c circle-white"></div>
</td>
<td>
<c> Low risk</c>
</td>
</tr>
<tr>
<td>
<div class = "c circle-yellow"></div>
</td>
<td>
<c> Medium risk</c>
</td>
</tr>
<tr>
<td>
<div class = "c circle-orange"></div>
</td>
<td>
<c> High risk</c>
</td>
</tr>
<tr>
<td>
<div class = "c circle-red"></div>
</td>
<td>
<c> Very high risk</c>
</td>
</tr>
<tr>
<td>
<div class = "c circle-maroon"></div>
</td>
<td>
<c> Extreme risk</c>
</td>
</tr>
<tr>
<td>
<div class = "c circle-black" style = "padding-bottom: 0"></div>
</td>
<td>
<c> Catastrophic risk</c>
</td>
</tr>
</table>
</div>
<div>
<h2>README</h2>
<p id="poutside">Project-Firemap</p>
<p id="poutside">Built during the NASA/CSA 2018 Space Apps Hackathon</p>
<p id="poutside">This is a web-based interactive map that displays regions of potential risk for wildfires with user interaction.</p>
<p id="poutside">To calculate the risk of a wildfire in a specified area, we used the coordinates of the location to pull data from OpenWeatherMap API.</p>
<p id="poutside">We applied this information into the following formula:</p>
<p id="poutside">10 * exp(ln2 - 0.45 - 0.0345 * relative_humidity + 0.0338 x temp + 0.0234 * wind_speed)</p>
<p id="poutside">to get the approximate McArthur Forest Fire Danger Index using the available data provided.</p>
</div>
<!-- JS Includes -->
<script src = "gmapsbody.js"> </script>
<script src = "raster.js"> </script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" src="jquery.scrollTo-1.4.2/jquery.scrollTo-min.js" src="script.js"> </script>
<!--Load the API from the specified URL
* The async attribute allows the browser to render the page while the API loads
* The key parameter will contain your own API key (which is not needed for this tutorial)
* The callback parameter executes the initMap() function-->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCc8zoz1ei90w7dtMfXH1e50wcOy0AaCHU&callback=initMap"> </script>
</body>
</html>