-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·168 lines (154 loc) · 6.88 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
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
<!DOCTYPE html>
<html lang='en'>
<head>
<title>CPS Local School Council Voting Districts</title>
<meta charset='utf-8' />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta content='' name='description' />
<meta content='' name='author' />
<!-- Styles -->
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/custom.css"/>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script type="text/javascript" src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class='navbar navbar-default navbar-static-top'>
<div class='container-fluid'>
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class='navbar-brand' href='index.html'>Chicago Public Schools Local School Council Voting Disticts</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li class='active'><a href="index.html">Map</a></li>
<li><a href="about.html">About</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div class='container-fluid'>
<div class='row'>
<div class='col-md-4'>
<p>Discover which schools you can vote for the Local School Council (LSC) as a community member and where you can run for a Community Representative seat on the LSC. The deadline to file LSC candidate forms at the school where you wish to run is 3:00pm March 9. The election will be held April 18 and 19. Visit the CPS <a href="http://cps.edu/Pages/LSCElections.aspx" target="_blank" title="Opens in new window">Local School Council Elections</a> page for more information and to confirm eligibility.</p>
<div class='well'>
<h4>
Address <!--<small>(<a id='find_me' href='#'>find me</a>)</small>-->
</h4>
<p>
<input class='form-control' id='search_address' placeholder='Enter an address or an intersection' type='text' />
</p>
<p>
<label id='radius_section'>
within
<select id='search_radius'>
<option value='1' selected="selected"></option>
<option value='805'>1/2 mile</option>
<option value='1610'>1 mile</option>
<option value='3220'>2 miles</option>
</select>
</label>
</p>
<br />
<a class='btn btn-primary' id='search' href='#'>
<i class='glyphicon glyphicon-search'></i>
Search
</a>
<a class='btn btn-default' id='reset' href='#'>
<i class='glyphicon glyphicon-repeat'></i>
Reset
</a>
</div>
<div class='alert alert-info' id='result_box' ><strong id='result_count'></strong></div>
</div>
<div class='col-md-5'>
<div id='results_list'>Enter an address and press search to see the list of schools.</div>
</div>
<div class='col-md-3'>
<noscript>
<div class='alert alert-info'>
<h4>Your JavaScript is disabled</h4>
<p>Please enable JavaScript to view the map.</p>
</div>
</noscript>
<div id='map_canvas'></div>
<p class='pull-right'>
Built by <a href='http://twitter.com/joshkalov'>Josh Kalov</a> using the <a href='http://derekeder.com/searchable_map_template/'>Searchable Map Template</a> by <a href='http://derekeder.com'>Derek Eder</a>.
</p>
</div>
</div>
</div>
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/jquery.address.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?libraries=places&key=AIzaSyARL3r8elOBCrWovtJvQGAOfU1EIl6WZq0"></script>
<script type="text/javascript" src="js/maps_lib.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-74263316-1', 'auto');
ga('set', 'forceSSL', true);
ga("set", "anonymizeIp", true);
ga('send', 'pageview');
</script>
<script type='text/javascript'>
//<![CDATA[
$(window).resize(function () {
var h = $(window).height(),
offsetTop = 105; // Calculate the top offset
$('#map_canvas').css('height', (h - offsetTop));
}).resize();
$(function() {
var myMap = new MapsLib({
fusionTableId: "1TkWZWFxCj-OMkipfWCwOtlK2sLikbJYOWst-w5Zt",
googleApiKey: "AIzaSyARL3r8elOBCrWovtJvQGAOfU1EIl6WZq0",
locationColumn: "geometry",
locationDisplayColumn: "School_Latitude",
map_center: [41.8781136, -87.66677856445312],
locationScope: "chicago",
searchRadius: 1,
recordName: "school",
recordNamePlural: "schools",
defaultZoom: 12
});
var autocomplete = new google.maps.places.Autocomplete(document.getElementById('search_address'));
$(':checkbox').click(function(){
myMap.doSearch();
});
$(':radio').click(function(){
myMap.doSearch();
});
$('#search_radius').change(function(){
myMap.doSearch();
});
$('#search').click(function(){
myMap.doSearch();
});
$('#find_me').click(function(){
myMap.findMe();
return false;
});
$('#reset').click(function(){
myMap.reset();
return false;
});
$(":text").keydown(function(e){
var key = e.keyCode ? e.keyCode : e.which;
if(key === 13) {
$('#search').click();
return false;
}
});
});
//]]>
</script>
</body>
</html>