-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.html
executable file
·356 lines (274 loc) · 11 KB
/
start.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
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Visualize the growth of Nepali startups" />
<meta name="author" content="Subigya Nepal" />
<meta name="title" content="Visualizing Growth of Startups in Nepal" />
<link rel="image_src" href="" />
<title>Visualizing Foreign Grants to Nepal</title>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/startups.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="http://cdn.jsdelivr.net/bootstrap.daterangepicker/2/daterangepicker.css" />
<!-- <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet"> -->
<link rel="stylesheet" type="text/css" media="screen" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.9.3/css/bootstrap-select.min.css">
<script type="text/javascript" src="http://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<!-- Javascripts--> <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script type="text/javascript" src="http://cdn.jsdelivr.net/bootstrap.daterangepicker/2/daterangepicker.js"></script>
<script type="text/javascript" src="js/share.min.js"></script>
<script type="text/javascript" src="js/display.js"> </script>
<script src="js/highcharts.js"></script>
<script src="js/modules/exporting.js"></script>
<script src="js/moment.js"> </script>
<script type="text/javascript" src="js/tabletop.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.9.3/js/bootstrap-select.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
function toggleDiv(divId) {
$("#"+divId).toggle();
}
jQuery(document).ready(function(){
alert("here");
toggleDiv('container1');
toggleDiv('container2');
toggleDiv('container3');
toggleDiv('container4');
$('#countrylink').hide();
$('#link').click(function () {
this.blur();
});
share.open();
});
</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://code.highcharts.com/3.0.1/highcharts.js"></script>
<script type="text/javascript" src="http://github.highcharts.com/75c66eb3/modules/map.src.js"></script>
<script type="text/javascript" src="http://github.highcharts.com/75c66eb3/modules/data.src.js"></script>
<!-- 2. Insert the shapes -->
<script type="text/javascript" src="world-map-shapes.js"></script>
<!-- 3. Add the JavaScript to initialize the chart on document ready -->
<script type="text/javascript">
var chart;
$(function() {
// Load the data from a Google Spreadsheet
// https://docs.google.com/a/highsoft.com/spreadsheet/pub?hl=en_GB&hl=en_GB&key=0AoIaUO7wH1HwdFJHaFI4eUJDYlVna3k5TlpuXzZubHc&output=html
Highcharts.data({
googleSpreadsheetKey: '1W-wTQrJGxeNn1O4YEdFHg2-n5lwo0kQKk8oR1Z1jYt8',
// custom handler when the spreadsheet is parsed
parsed: function(columns) {
// Make the columns easier to read
var countryCodes = columns[0],
countryNames = columns[1],
populationDensities = columns[2];
var options = {
chart : {
renderTo : 'container',
borderWidth : 1,
zoomType: 'xy'
},
title : {
text : 'Population density by country (/km²)'
},
subtitle: {
text: 'This is a work in progress'
},
legend: {
align: 'left',
verticalAlign: 'bottom',
floating: true,
layout: 'vertical',
valueDecimals: 0
},
tooltip: {
ySuffix: '/km²'
},
series : [{
data : [],
name: 'Population density',
valueRanges: [{
to: 3,
color: 'rgba(19,64,117,0.05)'
}, {
from: 3,
to: 10,
color: 'rgba(19,64,117,0.2)'
}, {
from: 10,
to: 30,
color: 'rgba(19,64,117,0.4)'
}, {
from: 30,
to: 100,
color: 'rgba(19,64,117,0.5)'
}, {
from: 100,
to: 300,
color: 'rgba(19,64,117,0.6)'
}, {
from: 300,
to: 1000,
color: 'rgba(19,64,117,0.8)'
}, {
from: 1000,
color: 'rgba(19,64,117,1)'
}],
states: {
hover: {
color: '#DD6E28'
}
}
}]
};
// Populate the data points
//countryCodes = countryCodes.splice(0, 3);
for (var i = 1; i < countryCodes.length; i++) {
if (shapes[countryCodes[i]]) {
options.series[0].data.push({
y : parseFloat(populationDensities[i]),
name : countryNames[i],
path : Highcharts.pathToArray(shapes[countryCodes[i]]),
states: {
hover: {
color: '#FF7F00' // orange
}
}
});
}
}
// Initiate the chart
chart = new Highcharts.Map(options);
}
});
});
</script>
</head>
<body>
<!-- Header -->
<header id="top"> </header>
<div class="text-vertical-center">
<h1>Visualizing Foreign Grants to Nepal</h1> <!-- <div id="info">
<h3>Select startups and compare their growth (in Facebook likes).</h3>
<br>
<select class="selectpicker show-tick" multiple data-max-options="4" data-live-search="true" data-selected-text-format="count > 2" disabled>
</select>
<div id="reportrange" style="background: #fff; cursor: pointer; padding: 6px 13px; border: 1px solid #ccc; display:inline-block; border-radius: 5px;">
<i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
<span></span> <b class="caret"></b>
</div>
<button type="button" id="submit" value="Submit" class="btn btn-default" style="margin-left:5px;" disabled>Submit</button>-->
<div id="container" style="width: 800px; height: 500px; margin: 0 auto"></div>
<!--<div id="container" ></div>-->
<div id="countrylink" style="text-align:center">
<a id="link" href="javascript:toggleDiv('container1');toggleDiv('container2');toggleDiv('container3');toggleDiv('container4');" style="background-color: #A5A5A5; padding: 5px 10px; a-color: #322F2F">Country Information</a>
<br>
</div>
<br>
<div id="container1"></div>
<div id="container2"></div>
<div id="container3"></div>
<div id="container4"></div>
<br>
</div>
<!-- Share Button -->
<aside class="call-to-action bg-primary">
<div class="container">
<div class="row">
<div class="row"><div class="col-lg-12 text-center">
<br>
<br>
<div class="share-button" style="margin:0 auto; text-align:center"><script>
config = {
networks: {
email: {
enabled: false
}
}
}
var share = new Share(".share-button", config);
</script>
</div>
</div>
</div>
<div>
</aside>
<!-- Details -->
<section id="details">
<div class="container">
<div class="row">
<br>
<div class="col-lg-10 col-lg-offset-1 text-center">
<h3><strong>Where did the data come from?</strong>
</h3>
<div id="summary" >
</div>
<p class="lead"><a href="http://wwwnc.cdc.gov/travel/notices" class="highlight">Travel Health Notices from CDC.</a> </p><br>
<h3><strong>What do the colored markers (red, green, yellow) represent?</strong>
</h3>
<p class="lead">The colors represent three different kinds of notices issued by the CDC. </p>
<ul class="list-unstyled">
<li><img src="img/Warning.png" alt="red marker"></a> Warning Level 3, Avoid Nonessential Travel</li>
<li><img src="img/Alert.png" alt="yellow marker"></a>Alert Level 2, Practice Enhanced Precautions</li>
<li><img src="img/Watch.png" alt="green marker"></a> Watch Level 1, Practice Usual Precautions </li>
</ul>
</div>
</div>
</div>
<br>
</section>
<!-- Contact -->
<section id="contact" class="services bg-primary">
<div class="container">
<div class="row text-center">
<div class="col-lg-10 col-lg-offset-1">
<h2>Developers</h2>
<hr class="small">
<div class="row"><div class="col-md-3 col-sm-6">
<div class="contact-item">
</div>
</div>
<div class="col-md-6 col-sm-6">
<div class="contact-item">
<h4><strong><a href="http://www.thetaranights.com">Bhishan Bhandari</a></strong> </h4>
<h4><strong><a href="http://www.chromeearth.com">Bipin Paudel</a></strong></h4>
<h4><strong><a href="http://www.twitter.com/SkNepal">Subigya Kumar Nepal</a></strong></h4>
<br>
<ul class="list-inline">
<li>
<a href="https://github.com/DWITSoftwareClub/Startups-Viz"><i class="fa fa-github fa-fw fa-3x"></i></a>
</li>
</ul>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="contact-item">
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="col-lg-10 col-lg-offset-1 text-center">
<hr class="small">
<p class="text-muted">Copyright © 2016</p>
</div>
<!-- Bootstrap Core JavaScript <script src="js/bootstrap.min.js"></script> -->
<!-- Google Analytics -->
<script>
</script>
</body>
</html>