-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
99 lines (82 loc) · 3.29 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
<!doctype html>
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Lato:700,900,400' rel='stylesheet' type='text/css'>
<title> Visualizing Wildlife Stikes</title>
<link rel="shortcut icon" href="favicon.png" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link rel="stylesheet" href="css/toolbar.css" type="text/css" />
<link rel="stylesheet" href="css/wesley.css" type="text/css" />
<link rel="stylesheet" href="css/airportInfoTooltip.css" type="text/css" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4/leaflet.css" />
<link rel="stylesheet" href="css/icons.css" type="text/css" />
<script src="js/lib/LAB.min.js" type="text/javascript"></script>
<script type="text/javascript">
$LAB
.script("js/lib/jquery-1.8.2.min.js")
.script("js/lib/underscore-min.js")
.script("js/lib/d3.v2.min.js").wait()
.script("js/animals.js")
.script("http://cdn.leafletjs.com/leaflet-0.4/leaflet.js")
.script("http://maps.stamen.com/js/tile.stamen.js?v1.2.0").wait()
.script("js/time.js")
.script("js/lightbox.js")
.script("js/lib/handlebars-1.0.rc.1.js")
.script("js/map.js")
.wait(function(){
$(document).ready(function(){
// define global namespace.
// all modules will have access to this object, since it is attached to the window
// data that needs to be shared will move within this reference
window.WSR = window.WSR || {};
$.extend(true,WSR,{
vars: {
date: ['2009_1'],
incidents: {},
airports: [],
mapH: $(window).height(), // set in $ready
mapW: $(window).width(), // set in $ready
},
models: {}, // store data models for reference
views: {} // store UI views for reference
});
$('#map').css({'width':WSR.vars.mapW,'height':WSR.vars.mapH});
/** Initialize Modules **/
var map = new Map();
map.initMap("#map") // initialize map
var time = new Timer();
time.initTime("#time"); // initialize time controls
var animalUI = new AnimalUI();
animalUI.initAnimalUI("#animals"); // initialize Species Buttons
//Extended jQuery Functions
jQuery.easing.easeInOutCubic = function (x, t, b, c, d) {
if ((t/=d/2) < 1) return c/2*t*t*t + b;
return c/2*((t-=2)*t*t + 2) + b;
};
jQuery.easing.easeOutCubic = function (x, t, b, c, d) {
return c*((t=t/d-1)*t*t + 1) + b;
};
offset = parseInt( $(window).width() - $('#animals').width() - $("#timeControler").width() ) / 2 + parseInt($('#animals').width());
$("#timeControler").css("left",offset).animate({"bottom":"5%"},800,"easeOutCubic");
$('#animals').animate({"left":"0px"}, 850, "easeOutCubic");
}); // END $.ready
});
</script>
</head>
<body>
<ul id="animals" class="panel"></ul>
<div id="map"></div>
<div id="timeControler">
<div id="graph"></div>
<div id="toolbarbottom" class="toolbar">
<ul>
<li><button class="playbutton" id="run"><span class="icon-play"></span></button></li>
<li><button class="backwardbutton" id="run"><span class="icon-fast-backward"></span></button></li>
<li id="currentDate"><a id="date"><span></span></a></li>
<li><button class="forwardbutton" id="run"><span class="icon-fast-forward"></span></button></li>
<li><button class="clearbrushingbutton" id="run"><span class="icon-ccw"></span></button></li>
</ul>
</div>
</div>
</body>
</html>