-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
109 lines (95 loc) · 4.17 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
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="author" content="Tyler Keating, Jordan Boesch, Daniel Pronych, Andrew Dyck">
<meta name="description" content="Finds your polling station using GPS. We support the following cities: Regina, Saskatoon" />
<title>Where is my poll? - an Apps4Good.ca creation by Tyler Keating, Jordan Boesch, Daniel Pronych, Andrew Dyck</title>
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/style.css" />
<script src="//maps.googleapis.com/maps/api/js?sensor=false"></script>
<base target="_parent" />
</head>
<body>
<div id="loader"></div>
<h1>
<a href="#" id="edit-location-btn">
<span>edit</span>
</a>
<a href="http://whereismypoll.com" target="_parent">Where is my poll?</a>
</h1>
<div id="main-map">
<div id="address">
<p>
Not in your ward right now?<br/>Enter your address below.
</p>
<form>
<input type="text" placeholder="123 Fake St" />
<input type="submit" value="Go!" class="btn" />
<div id="address-loader" style="visibility:hidden"></div>
</form>
<p id="address-error" class="error" style="display:none"></p>
</div>
<div id="poll-map-container">
<div id="poll-map"></div>
<div id="nearest-station" class="info-container" style="display:none">
<h3>Your nearest station <em></em> is<span></span></h3>
<p class="street">
</p>
<a href="#" id="not-in-ward">Not in your ward right now? Search by address.</a>
</div>
<div id="supported-cities" class="info-container" style="display:none">
<h2>We support the following cities:</h2>
<ul></ul>
</div>
<a href="http://apps4good.ca" id="credits" target="_blank">An Apps4Good.ca creation</a>
</div>
</div>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/Poll.js"></script>
<script type="text/javascript">
$(function(){
// window.testPosition = function(){
// return {
// coords: {
// latitude: 52.156085,
// longitude: -106.643214
// }
// }
// };
PollStation.init({
$toolbar: $('h1'),
$loader: $('#loader'),
$map: $('#poll-map'),
$nearest_station: $('#nearest-station'),
$nearest_station_ward: $('#nearest-station em'),
$nearest_station_name: $('#nearest-station span'),
$nearest_station_street: $('#nearest-station .street'),
$edit_location: $('#edit-location-btn'),
$address: $('#address'),
$address_form: $('#address form'),
$address_input: $('#address input[type="text"]'),
$address_submit: $('#address input[type="submit"]'),
$address_loader: $('#address-loader'),
$address_error: $('#address-error'),
$poll_map_container: $('#poll-map-container'),
$supported_cities: $('#supported-cities'),
$credits: $('#credits'),
$not_in_ward: $('#not-in-ward')
});
});
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-35684574-1']);
_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>