forked from codeforamerica/denver-schedules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
341 lines (271 loc) · 13.5 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../assets/ico/favicon.ico">
<title>Denver Street Sweeping</title>
<!-- Stylesheet -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<!-- NAVIGATION -->
<nav class="navbar" role="navigation">
<div class="container">
<div class="col-lg-8 col-lg-offset-2">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<a class="navbar-brand sitename frontpage-navbar" href="#">Denver Street Sweeping</a>
</div>
</div> <!-- /.col-lg-8 .col-lg-offset-2 -->
</div><!-- /.container -->
</nav>
<div class="container">
<div class="col-lg-6 col-lg-offset-3 sched-descr hidden-print text-center">
Find street sweeping information for an address in Denver. Start by entering an address below or use <a href="javascript:void(0)" onclick="defaultAddress()">this example address</a>.
</div>
<div class="row bigSearch-container hidden-print">
<div class="form col-lg-8 col-lg-offset-2" role="form">
<div class="form-group col-xs-10">
<input id="address" type="search" class="form-control bigSearch-input" placeholder="e.g. 942 S Pearl St, Denver, CO">
</div>
<button id="submit" type="submit" class="btn blue-btn bigSearch-submit col-xs-2">Find Address</button>
</div>
</div>
<!-- ========= NEXT STREET SWEEPING ======== -->
<div id="results" class="row hidden-print"></div>
<!-- WARNING ============================================================================ -->
<div class="col-lg-8 col-lg-offset-2 hidden-print" id="ss-warning">
<br>
<div class="alert alert-warning">
<strong>Note:</strong> This site does not guarantee that the information is accurate, nor that the notifications will be delivered on a timely basis. Please consult the street signage near your vehical for the most up-to-date parking information.
</div>
</div>
</div> <!-- .container -->
<div id="feedback">
<a href="https://docs.google.com/a/codeforamerica.org/forms/d/1p9vvy-PQIbi8wF99WhU6hnmHu71QW3qLXLKKWY1e0Xo/viewform">feedback</a>
</div>
<footer class="hidden-print">
<div class="container">
<div class="col-lg-8 col-lg-offset-2 footer-content">
Presented by <a href="http://codeforamerica.org/">Code for America</a> and <a href="http://www.denvergov.org/">Denver</a>.
Read more about this project <a href="http://www.codeforamerica.org/governments/denver/">here</a>.
</div>
</div> <!-- container -->
</footer>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="js/handlebars-v1.3.0.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/showhide.js"></script>
<script type="text/javascript" src="js/streetsweeping.js"></script>
<script type="text/javascript" src="js/mailchimp.js"></script>
<script type="text/javascript" src="js/modals.js"></script>
<!-- Handlebars Templates -->
<script id="route-template" type="text/x-handlebars-template" charset="utf-8">
{{#validAddress}}
<!-- NEXT STREET SWEEPING ===================================================================== -->
<div class="col-lg-8 col-lg-offset-2" id="ss-next">
<h4 class="section-title">Next Street Sweeping</h4>
The next street sweeping near you is <div class="highlight"><strong>{{formatNextDate nextSweeping.date}}</strong></div> on the <div class="highlight"><strong>{{nextSweeping.description}} side of {{toTitleCase nextSweeping.name}}</strong></div>.
<hr>
</div>
<!-- REMINDER SIGNUP ======================================================================= -->
{{^nightly}}
<div class="col-lg-8 col-lg-offset-2 hidden-print" id="ss-reminders">
<h4 class="section-title">Street Sweeping Reminders</h4>
<div>
Get notified<sup> 1</sup> when of street sweeping in this area.<sup>2</sup> Sign up for emails and text message reminders.<sup>3</sup>
</div>
</div>
<div class="col-lg-8 col-lg-offset-2 reminderSignup hidden-print">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<div id="reminder-alerts" class="alert alert-danger" style="display:none" role="alert">
</div>
</div>
</div>
<div class="col-lg-6">
<img src="img/email.svg" width="32" class="reminderIcon">
<div class="reminderText">
Enter your email address, and we will send alerts directly to your inbox.
</div>
</div>
<div class="col-lg-6">
<div class="form-inline reminderInput" role="form">
<div class="form-group">
<label class="sr-only" for="emailReminder">Enter an email address</label>
<input type="email" class="form-control" id="email" placeholder="e.g. [email protected]">
</div>
<button type="submit" onclick="createReminders('email')" class="btn blue-btn reminderButton">Subscribe</button>
</div>
</div>
</div>
<div class="col-lg-8 col-lg-offset-2 reminderSignup hidden-print">
<div class="col-lg-6">
<img src="img/phone.svg" width="32" class="reminderIcon">
<div class="reminderText">Receive text message alerts on your phone. </div>
</div>
<div class="col-lg-6">
<div class="form-inline reminderInput" role="form">
<div class="form-group">
<label class="sr-only" for="phoneReminder">Enter a phone number</label>
<input type="tel" class="form-control" id="sms" placeholder="e.g. 720-555-5555">
</div>
<button type="submit" onclick="createReminders('sms')" class="btn blue-btn reminderButton">Subscribe</button>
</div>
</div>
</div>
<div class="col-lg-8 col-lg-offset-2 footnotes">
<p>1. You will not receive reminders for streets that are swept nightly.</p>
<p>2. Reminders are sent for each side of the streets surrounding your address (roughly six reminders a month).</p>
<p>3. Email and text message alerts will be sent one day prior to the beginning of street sweeping in this area.</p>
</div>
<div class="hidden col-lg-8 col-lg-offset-2"><hr></div>
{{/nightly}}
<!-- FULL SCHEDULE ========================================================================== -->
<div class="col-lg-8 col-lg-offset-2 hidden-print" id="ss-schedule">
<h4 class="section-title">Full Schedule</h4>
<div>
Below you'll find the full street sweeping schedule for the address you entered. Street sweeping will not occur on city holidays and you do not need to move your vehicle on those days. <br><br>
</div>
<div class="table-responsive">
<table class="table table-curved">
<tr>
<th>Next</th>
<th>Time</th>
<th>Street Name</th>
<th>Side</th>
</tr>
{{#this}}
{{#hasUpcoming}}
<tr>
<td>{{firstDate upcoming}}</td>
<td>8am - 5pm</td>
<td>{{toTitleCase name}}</td>
<td>{{description}}</td>
</tr>
{{/hasUpcoming}}
{{^hasUpcoming}}
<tr>
<td>Tonight</td>
<td>8am - 5pm</td>
<td>{{toTitleCase name}}</td>
<td>{{description}}</td>
</tr>
{{/hasUpcoming}}
{{/this}}
</table>
</div>
<!-- <div id="save-calendar">
<div class="col-lg-6">
Download or subscribe to this areas street sweeping calendar in iCal, Google Calendar or Outlook.<br>
</div>
<div class="col-lg-6">
<button type="button" onclick="doPopUp()" class="btn grey-btn mobile-btn trigger-pop-up">
<i class="fa fa-calendar"></i><span class="btn-text">Add to my Calendar</span>
</button>
<button type="button" onclick="doPopUp()" class="btn grey-btn mobile-btn trigger-pop-up">
<i class="fa fa-print"></i><span class="btn-text" >Print Calendar</span>
</button>
</div>
</div> -->
</div> <!-- #ss-schedule -->
{{/validAddress}}
<!-- INCORRECT ADDRESS -->
{{^validAddress}}
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h4 class="section-title">Sorry! {{error}}</h4>
</div>
</div>
{{/validAddress}}
</script>
<div class="modal fade" id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Sign up for updates</h4>
</div> <!-- /.modal-header -->
<div class="modal-body">
<div id="email-result"></div>
<div class="popup-content">
<h3>Get updates about this site</h3>
<p>
Sign up below and we'll let you know when we've added more neighborhoods to Denver Street Sweeping.
</p>
</div> <!-- /#popup-content -->
<form id="signup-form" >
<div id="subscribe-form">
<div class="form-group">
<label for="firstname">First name</label>
<input type="text" value="" name="FNAME" class="form-control" id="mce-FNAME" placeholder="Molly" >
</div>
<div class="form-group">
<label for="lastname">Last name</label>
<input type="text" value="" name="LNAME" class="form-control" id="mce-LNAME" placeholder="Brown">
</div>
<div class="form-group">
<label for="lastname">Email </label>
<input type="email" name="EMAIL" class="form-control required email" id="mce-EMAIL" placeholder="[email protected]">
</div>
</div> <!-- /#subscribe-form -->
</form>
</div> <!-- /.modal-body -->
<div class="modal-footer">
<button name="subscribe" id="mc-embedded-subscribe" class="btn blue-btn">Sign me up!</button>
</div> <!-- /.modal-footer -->
</div> <!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div class="modal fade" id="welcomeModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Welcome</h4>
</div> <!-- /.modal-header -->
<div class="modal-body">
<div id="email-result"></div>
<div class="popup-content">
<div class="clearfix">
<div>
<h3>Hi there!</h3>
<p>
You've reached Denver Street Sweeping, a new service to help residents of Denver avoid street sweeping tickets.
<br><br>
<strong>We are piloting this site throughout Denver</strong> but some of the schedules or notifications may be innacurate. If you find this to be the case or have any other feedback, please use the <a href="https://docs.google.com/a/codeforamerica.org/forms/d/1p9vvy-PQIbi8wF99WhU6hnmHu71QW3qLXLKKWY1e0Xo/viewform">feedback button</a> at the bottom of the page to report it.
<br><br>
If you'd like to get updates about the app, <a href="javascript:void(0)" data-dismiss="modal" onclick="doPopUp()">click here to sign up up for our mailing list.</a>
</p>
</div>
</div>
</div> <!-- /#popup-content -->
</div> <!-- /.modal-body -->
<div class="modal-footer">
<button type="button" data-dismiss="modal" class="btn blue-btn">Get started!</button>
</div> <!-- /.modal-footer -->
</div> <!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- Add TypeKit Fonts -->
<script type="text/javascript" src="//use.typekit.net/sne3psa.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</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-52641898-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>