-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (53 loc) · 2.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Shooting.ie</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="body" class="row">
<div id="map" class="col-md-9"></div>
<div id="calendar" class="col-md-3">
<h4>Upcoming Events</h4>
<div class="loading">
<img src="img/loading.gif" alt="Loading..." />
</div>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//maps.googleapis.com/maps/api/js?sensor=false"></script>
<script src="js/calendar.js"></script>
<script src="js/map.js"></script>
<script>
/* Trigger the rendering of the map and calendar. */
$(function() {
// Size the map box to the full height
height = $(window).height();
$('#map').css('height', height);
// Size the loading
cal = $('#calendar');
$('#calendar .loading').css(
'width',
cal.width() - (
parseInt(cal.css('padding-left').replace('px', '')) +
parseInt(cal.css('padding-right').replace('px', ''))
)
).css('height', height / 3);
loadMap();
loadCalendar();
});
/* Google Analytics */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-299128-7']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>