forked from flengyel/hws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·139 lines (133 loc) · 5.64 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html lang="en">
<head>
<title>Human Water Security</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.ie.css" />
<![endif]-->
<!-- include google maps library *before* load cartodb.js -->
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<!-- include cartodb.js library -->
<script src="http://libs.cartocdn.com/cartodb.js/v3/cartodb.uncompressed.js"></script>
<style type="text/css">
/*
body {
text-align:justify;
margin:auto;
padding:1em;
}
*/
#map { height: 700px;
padding: 0;
margin: 0;
}
#map img { max-width: none; }
/* #map img tag fixes CartoDB CSS problem in FireFox. Note that
the fix is sensitive to the placement of comments in the CSS!!! */
</style>
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="container">
<div class="row">
<div class="span12">
<div id="header">
<h1>Human Water Security</h1>
</div>
<p>
Introductory text on Human Water Security. Perhaps buttons or an accordion sidebar with
instructions replaces this.
</p>
<div id="map"></div>
<script>
window.onload = function() {
cartodb.createVis('map', 'http://asrc.cartodb.com/api/v2/viz/9cfc68f0-ea4d-11e2-8078-3085a9a9563c/viz.json', {
sharable: true,
//title: true,
description:true,
search:true,
tiles_loader: true,
center_lat: 0,
center_lon: 0,
zoom: 3
})
.done(function(vis, layers) {
// layer 0 is the base layer
// layer 1 is the cartodb layer
// setInteraction disabled by default
layers[1].setInteraction(true);
layers[1].on('featureOver', function(e, pos, latlng, data) {
cartodb.log.log(e, pos, latlng, data);
});
// if you need the map variable, get it
// map = vis.getNativeMao();
// add map.whatever() to set zoom, etc
})
.error(function(err) {
console.log(err);
});
}
</script>
<br><br/>
</div>
<div class="span6">
<h3>Supporters and sponsors</h3>
<a href="http://www.cuahsi.org"><img src="img/cuahsi_logo_sm.gif" alt="http://www.cuahsi.org/" style="border-width:0"/></a>
<a href="http://www.cuny.edu"><img src="img/cuny-logo.gif" alt="www.cuny.edu" style="border-width:0"/></a>
<a href="http://asrc.cuny.edu"><img src="img/cuny-asrc-logo.png" alt="asrc.cuny.edu" style="border-width:0"/></a>
<!--
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'test';
var disqus_url = 'http://lily.ccny.cuny.edu/~florian/hws/index.html';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script');
dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
-->
</div>
<div class="span6">
<h3>Share</h3>
<div class="g-plusone" data-annotation="inline" data-width="300"></div>
<script type="text/javascript">
(function() { var po = document.createElement('script');
po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(po, s); })();
</script>
<div class="fb-like" data-href="http://lily.ccny.cuny.edu/~florian/hws/" data-send="true" data-width="450" data-show-faces="true"></div>
<a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" /></a>
</div>
<div class="span12">
</div>
<div class="span6">
<h3>License</h3>
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/3.0/us/88x31.png" /></a>
<small>
Human Water Threat by <a href="https://plus.google.com/u/0/111972627358501525662/posts" property="cc:attributionName" rel="cc:attributionURL">CUNY Environmental CrossRoads Initiative, Advance Science Research Center, CUNY</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License</a>.
</small>
</div>
</div>
</div>
<script src="bootstrap/js/bootstrap.min.js"></script>
</body>
</html>