-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
185 lines (145 loc) · 6.77 KB
/
index.html
File metadata and controls
185 lines (145 loc) · 6.77 KB
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 lang="en">
<!--- Switch CSS and code: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_switch--->
<head>
<meta charset="UTF-8">
<title>Arctic Explorer - Dylan Wootton and Ethan Ransom</title>
<script src="https://d3js.org/d3.v5.js"></script>
<script src="https://d3js.org/d3-hexbin.v0.2.min.js"></script>
<script src="https://d3js.org/d3-geo-projection.v2.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/topojson/1.6.19/topojson.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.7.1/d3-tip.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3-legend/2.9.0/d3-legend.js"></script>
<script src="https://d3js.org/d3-polygon.v1.min.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/spin.js/2.0.1/spin.min.js'></script>
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
<!--- Bootstrap --->
<!-- Latest compiled and minified CSS -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<!-- Style sheet for layout and side bar: obtained from https://startbootstrap.com/template-overviews/simple-sidebar/ -->
<!--<link rel="stylesheet" href="styles/layoutStyles.css"/>-->
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="styles/styles.css">
<!-- <link href="https://fonts.googleapis.com/css?family=Arvo" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet"> -->
</head>
<div id="overlay">
<div id="welcome">
<p>Loading Arctic Explorer.<br> It's getting cold in here... ☃️</p>
<svg width='600' height='60'><rect class='loadingBar' fill='whitesmoke' width='10' height='60' x='0' y= 0></rect></svg>
</div>
</div>
<div class="mobileOverlay">
<div class="mobileShow">
This page is not available on small screens. Please visit again on a desktop!
</div>
</div>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<!---
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button> --->
<img src='assets/logo.png' height='40' width='325'> <!-- Ratio is 2.13 px width to 1 px height -->
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
</li>
<li class="nav-item active flex-row d-flex" id = "website">
<a class="nav-link" target="_blank" href="video.html">Demo Video</a>
<a class="nav-link" target="_blank" href="https://github.com/dwootton/Arctic-Explorer/blob/master/Process%20Book.pdf">Process Book</a>
</li>
<li class="nav-item">
</li>
</ul>
<ul>
<text id="currentMode" class="align-middle"> </text>
<label class="switch nav-link" class="float-xl-left">
<input type="checkbox" id="modeSwitch"checked>
<span class="slider"></span>
</label>
</ul>
</div>
</nav>
<body>
<div id="wrapper">
<div id="sidebar-wrapper" class="toggled">
</div>
<div id="page-content-wrapper">
<div class="container-fluid" id = "container">
<header class="row span7">
<p class="text-center" > By <a href="https://github.com/schnauzer/">Ethan Ransom</a> and <a href="http://www.dylanwootton.com">Dylan Wootton</a></p>
</header>
<main class="row" class = "pagination-centered">
<section id="map" >
<svg width="500" height="565"></svg>
</section>
<section id="analysis" >
<div>
<div id="lineMap">
<svg ></svg>
</div>
<section id="chart">
</section>
<div id="heatmap">
<p id="heatmap-controls" class="flex-row d-flex">
<button type="button" class="btn btn-primary btn-sm" id="clear">
Clear Filter
</button>
<button type="button" class="btn btn-primary btn-sm" id="preset-sept">Historical Yearly Minimum (Sept)</button>
<button type="button" class="btn btn-primary btn-sm" id="preset-march">Historical Yearly Maxiumum (March)</button>
</p>
<table></table>
</div>
</div>
</section>
</main>
</div>
</div>
</div>
<script src="javascript/heatmap.js"></script>
<script src="javascript/LineHeatMap.js"></script>
<script src="javascript/mapPath.js"></script>
<script src="javascript/icemapRefactored.js"></script>
<script src="javascript/timeChart.js"></script>
<script src="javascript/modeSelection.js"></script>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Menu Toggle Script -->
<script>
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
</script>
<script>
async function init() {
let mapPath;
let icemap;
let data = d3.json("data/totalConcentration.json");
let mapData = (await d3.json("data/lat_long_data.json")).positions;
let worldJSON = await d3.json("data/clipped-simplified.json");
//let timeChart = new TimeChart(data,window);
let currentChart = new TimeChart(data,icemap);
data = await data;
let timeSelector = new TimeSelector(data, () => {}, currentChart);
console.log(timeSelector);
let lineHeatMap;
icemap = new IceMapRF(timeSelector, mapData, worldJSON, mapPath,lineHeatMap);
}
init();
</script>
<script>
setTimeout(
function()
{
d3.select('#overlay').transition().duration(2000).attr('opacity',0);
d3.select('#overlay').transition().remove();
}, 3500);
</script>
</body>
</html>