-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
81 lines (66 loc) · 3.31 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
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="main.css" id="styles" rel="stylesheet" type="text/css" />
<head>
<title>Earthquake Data Visualization</title>
<meta name="description" content="Real Time Earthquake Data Visualization using USGS Real Time API">
<meta name="keywords" content="earthquake,visualization,datavisualization,data,realtime">
</head>
<h1> Visualization of Real Time Earthquakes</h1>
<h2> Based on Real Time Data shared by United States Geological Survey</h2>
<h3> Real Time Animation based on last 24hr Data</h3>
<div id="contentframe1" style="position:relative; top: 0px; left: 50px;">
<svg id="svg" width="700" height="360"></svg>
</div>
<div id="contentframe2" style="position:relative; top: 0px; left: 810px;">
<label style="left: 810px; top: 0px">Real Time GPS Based Visualization Last 24hr (Refreshed every 30 seconds)</label>
<iframe width="550px" height="230" src="earthquakes.html" name="targetframe" allowTransparency="true" frameborder="0" ></iframe>
</div>
<div id="contentframe3" style="position:absolute; top: 335px; left: 810px;">
<label for="myList" style="left: 810px; top: 10px"><span>Heat Map of Earthquakes around the World </span>
<select id = "myList" align="right">
<option selected="">Select Time</option>
<option value ="yr1">Last One Hour</option>
<option value ="yr2">Last All Day</option>
<option value ="yr3">Last All Week</option>
<option value ="yr4">Last All Month</option>
</select>
<noscript><input type="submit" value="Submit"></noscript>
</label>
<div id="heatmap-canvas" style="width:550px; height:225px;top: 0px" ></div>
<script src="http://d3js.org/d3.v4.min.js"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script src="http://leaflet.github.io/Leaflet.heat/dist/leaflet-heat.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="https://d3js.org/topojson.v1.min.js"></script>
<script src="https://unpkg.com/topojson-client@3"></script>
<script src="index.js "></script>
</div>
<div id="contentframe4" style="position:relative; top: 260px; left: 1200px;">
<input type=button id="mode" text="Switch Mode" class="btn btn-primary" value="Switch To Dark Mode">
</div>
<script>
$(document).ready(function(){
$('#mode').click(function(){
if($('link#styles').attr('href')=="main.css"){
$('#mode').attr('value','Switch To Light Mode')
$('link#styles').attr('href','dark.css')
}
else
{
$('#mode').attr('value','Switch To Dark Mode')
$('link#styles').attr('href','main.css')
}
})
});
</script>
<footer>
<p>Author: Some Aditya Mandal</p>
<p><a href="mailto:someaditya@live.in">someaditya@live.in</a></p>
<p>The data used in this dashboard is obtained by using the API provided by <a href="https://earthquake.usgs.gov/">USGS</a></p>
</footer>