-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
78 lines (76 loc) · 2.78 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
<!DOCTYPE html>
<html>
<head>
<title>
Disastro
</title>
<script src="js/firebase.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/fonts.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
</head>
<body class="body container">
<p id = "heading">Disastro Dashboard</p>
<div class = "one">
<form>
<div class="form-elem">
<label>Latitude</label>
<input type="number" step="0.00001" id="Latitude" placeholder="Latitude" name="Latitude" required autofocus>
</div>
<div class="form-elem">
<label>Longitude</label>
<input type="number" step="0.00001" id="Longitude" placeholder="Longitude" name="Longitude" required >
</div>
<div class="form-elem">
<label>Disaster</label><br>
<div class = "dropdown">
<select id="Disaster" placeholder="Disaster" name="Disaster" required class ="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" >
<span class="caret"></span>
<option value="Earthquake">Earthquake</option>
<option value="Flood">Flood</option>
<option value="Landslide">Landslide</option>
<option value="Avalanche">Avalanche</option>
<option value="Cyclone">Cyclone</option>
<option value="Tsunami">Tsunami</option>
<option value="Famine">Famine</option>
<option value="Plague">Plague</option>
<option value="Heat Wave">Heat Wave</option>
<option value="Drought">Drought</option>
<option value="Cloudburst">Cloudburst</option>
</select>
</div>
</div>
<div class='form-elem'>
<label>Radius</label>
<input type='number' step='0.00001' id='Radius' placeholder='Radius' name='Radius' required >
</div>
<div class='form-elem' id = "EarthquakeMagnitude">
<label>Magnitude</label>
<input type='number' step='0.001' id='Magnitude' placeholder='Magnitude' name='Magnitude' required >
</div>
<script>
$("#Disaster").change(function(){
var dis = $('#Disaster').val();
if( dis != 'Earthquake'){
$("#EarthquakeMagnitude").hide();
}
else if(dis == 'Earthquake')
{
$("#EarthquakeMagnitude").show();
}
})
</script>
<br><br>
<button type="submit" class="btn btn-default btn-lg" name="submit">Submit</button><br><br>
</form>
</div>
<div class = "one">
<iframe src = "map.php">
<p>Your browser does not support iframes.</p>
</iframe>
<a href="map.html"><button class = "btn btn-default btn-lg" id="btn" >View Map</button></a>
</div>
<script src="js/db.js"></script>
</body>