forked from blakeshall/whats_my_district_redux
-
Notifications
You must be signed in to change notification settings - Fork 5
/
alt.html
155 lines (138 loc) · 4.41 KB
/
alt.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>What's my district?</title>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.5/mapbox.css' rel='stylesheet' />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.5/mapbox.js'></script>
<script src='https://api.tiles.mapbox.com/mapbox.js/plugins/turf/v1.4.0/turf.min.js'></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src='assets/js/handlebars-v3.0.0.js'></script>
<script src='assets/js/whats-my-district.js'></script>
<script src='assets/js/lexington.js'></script>
</head>
<body>
<style>
body { }
.container { width: 100%;}
#map { height: 600px;}
#address-form {
margin-top: 20px;
margin-bottom: 10px;
}
#help-text {
margin-top: 20px;
margin-bottom: 10px;
}
#alt {
margin-top: 30px;
margin-bottom: 10px;
}
</style>
<div class="container">
<div class='row'>
<div class='col-md-3'>
<h1>What's My District?</h1>
</div>
<div class='col-md-4' id='help-text'>
<h4>Type in an address or click on the map to look up districts.</h4>
</div>
<div class='col-md-3'>
<form class="form-inline" id='address-form'>
<div class="form-group">
<label class="sr-only" for="search-address">Address</label>
<div class="input-group">
<input type="text" class="form-control" id="search-address" placeholder="560 E. Third St">
<div class="input-group-addon">Lexington, KY</div>
</div>
</div>
<button type="submit" class="btn btn-primary" id='search'>Search</button>
</form>
</div>
<div class='col-md-2' id='alt'>
<a href='index.html'>See an alternative design</a>
</div>
</div>
<div class='row'>
<div class='col-md-3'>
<h2>State</h2>
<div id='senate-results'></div>
<div id='house-results'></div>
<h2>Local</h2>
<div id='council-results'></div>
<div id='magistrate-results'></div>
<div id='voting-results'></div>
<div id='solid-waste-results' class='text-left'></div>
<h2>School</h2>
<div id='elem-results'></div>
<div id='middle-results'></div>
<div id='high-results'></div>
<div id='school-board-results'></div>
</div>
<div id='map' class='col-md-9'></div>
</div>
</div>
<script>
</script>
<script id="house-template" type="text/x-handlebars-template">
<ul class='list-unstyled'>
<li>State House District: {{LEGISLATIV}}</li>
<li>Rep: {{LEGREP}}</li>
</ul>
</script>
<script id="senate-template" type="text/x-handlebars-template">
<ul class='list-unstyled'>
<li>State Senate District: {{SENATORIAL}}</li>
<li>Rep: {{SENREP}}</li>
</ul>
</script>
<script id="council-template" type="text/x-handlebars-template">
<ul class='list-unstyled'>
<li>Council District: {{DISTRICT}}</li>
<li>Rep: <a href="{{URL}}">{{REP}}</a></li>
<li>Email: <a href="mailto:{{EMAIL}}">{{EMAIL}}</a></li>
<li>Telephone: <a href="tel:{{TELEPHONE}}">{{TELEPHONE}}</a></li>
</ul>
</script>
<script id="magistrate-template" type="text/x-handlebars-template">
<ul class='list-unstyled'>
<li>Magistrate District: {{MAGISTERIA}}</li>
<li>Rep: {{MAGREP}}</li>
</ul>
</script>
<script id="voting-template" type="text/x-handlebars-template">
<ul class='list-unstyled'>
<li>Voting Precinct: {{NAME}}</li>
</ul>
</script>
<script id="elem-template" type="text/x-handlebars-template">
<ul class='list-unstyled'>
<li>Elementary School: {{AREA_NAME}}</li>
</ul>
</script>
<script id="middle-template" type="text/x-handlebars-template">
<ul class='list-unstyled'>
<li>Middle School: {{AREA_NAME}}</li>
</ul>
</script>
<script id="high-template" type="text/x-handlebars-template">
<ul class='list-unstyled'>
<li>High School: {{AREA_NAME}}</li>
</ul>
</script>
<script id="school-board-template" type="text/x-handlebars-template">
<ul class='list-unstyled'>
<li>School Board District: {{SCHOOL}}</li>
<li>Rep: {{SCHREP}}</li>
</ul>
</script>
<!-- <script id="solid-waste-template" type="text/x-handlebars-template">
<ul class='list-unstyled'>
<li><strong>Solid Waste Pickup:</strong> {{DAY}}</li>
</ul>
</script> -->
</body>
</html>