-
Notifications
You must be signed in to change notification settings - Fork 15
/
holidays.html
232 lines (188 loc) · 7.38 KB
/
holidays.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
<!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">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../assets/ico/favicon.ico">
<title>Denver Schedules</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<!-- Stylesheet -->
<link rel="stylesheet" href="css/main.css">
<!-- Optional theme -->
</head>
<body>
<script id="container-template" type="text/x-handlebars-template" charset="utf-8">
<div class="navbar navbar-static-top" role="navigation">
<div class="container" id="the-body">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><strong>DenverNOW</strong> | {{title}}</a>
</div>
<div class="collapse navbar-collapse navbar-right">
<ul class="nav navbar-nav">
<li><a href="#about">About</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div class="filter-bar" role="search">
<div class="container">
<div class="row">
<div class="col-sm-6">
<input type="text" class="form-control searchbar" placeholder="Filter events">
<div class="filter-dropdown">
<a href="#" class="show_hide">Filter <span id="filter-chev" class="glyphicon glyphicon-chevron-down"></span></a>
</div>
</div>
<div class="col-sm-6">
<!-- Create buttons for different sizes -->
<button type="button" class="btn btn-md filter-btn pull-right hidden-xs ">
<span class="visible-lg visible-md"><i class="fa fa-calendar"></i> Add to my Calendar</span>
<span class="visible-sm"><i class="fa fa-plus"></i> <i class="fa fa-calendar"></i></span>
</button>
<button type="button" class="btn btn-md filter-btn visible-xs mobile-btn">
<i class="fa fa-calendar"></i> Add to my Calendar
</button>
<button type="button" class="btn btn-md filter-btn pull-right hidden-xs ">
<span class="visible-lg visible-md"><i class="fa fa-print"></i> Print this Calendar</span>
<span class="visible-sm"><i class="fa fa-print"></i></span>
</button>
<button type="button" class="btn btn-md filter-btn visible-xs mobile-btn">
<i class="fa fa-print"></i> Print my calendar
</button>
</div>
</div>
</div>
</div>
<div class="filter-bar filter-bar-expanded slidingDiv">
<div class="container">
<span class="filter-label">Location</span>
<input type="text" class="form-control form-inline locationbar" placeholder="Location">
<button type="button" class="btn btn-md filter-btn">
<i class="fa fa-location-arrow"></i> Near me
</button>
<table>
<tr>
<td><a>Alamo Placita</a></td>
<td><a>Auraria</a></td>
<td><a>Baker</a></td>
<td><a>CBD</a></td>
</tr>
<tr>
<td><a>Capitol Hill</a></td>
<td><a>Cherry Creek</a></td>
<td><a>City Park</a></td>
<td><a>Congress Park</a></td>
</tr>
<tr>
<td><a>Country Club</a></td>
<td><a>Curtis Park</a></td>
<td><a>Five Points</a></td>
<td><a>Golden Triangle</a></td>
</tr>
<tr>
<td><a>Highland</a></td>
<td><a>Jefferson Park</a></td>
<td><a>Lincoln Park</a></td>
<td><a>Lodo</a></td>
</tr>
<tr>
<td><a>Northeast</a></td>
<td><a>Northwest</a></td>
<td><a>Park Hill</a></td>
<td><a>Southeast</a></td>
</tr>
<tr>
<td><a>Southwest</a></td>
<td><a>Speer</a></td>
<td><a>Stapleton</a></td>
<td><a>University</a></td>
</tr>
<tr>
<td><a>University Park</a></td>
<td><a>Uptown</a></td>
<td><a>Washington Park</a></td>
<td><a>Washington Park West</a></td>
</tr>
</table>
</div>
</div>
<div class="container">
<h4 class="section-title">Upcoming</h4>
<table class="table">
<colgroup>
<col class="col-xs-1">
<col class="col-xs-7">
</colgroup>
{{#each events}}
<tr>
<td>
<header class="event-group">
<span class="name-of-day">{{day}}</span><br><span class="date">{{startDate}}</span>
</header>
<td>
<div class="panel">
<div class="panel-heading">
<div class="time">2AM-6AM</div>
<div class="title">{{desc}}</div>
</div>
</div>
</td>
</tr>
{{/each}}
</table>
</div> <!-- container -->
<footer>
<div class="container">
<div class="footer-content">
Presented by Code for America and Denver
Read more about this project <a>here</a>.
</div>
</div> <!-- container -->
</footer>
</script> <!-- handlebar template -->
<!-- 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>
<!-- Latest compiled and minified JavaScript of Handlebars -->
<script src="js/handlebars-v1.3.0.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Font Awesome -->
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<!-- Load JS Scripts -->
<script type="text/javascript" src="js/showhide.js"></script>
<script type="text/javascript" charset="utf-8">
var source = $("#container-template").html();
var template = Handlebars.compile(source);
$( document ).ready(function() {
$.ajax({
url: "http://staging-denver-now-api.herokuapp.com/schedules",
success: function(data){
console.log('Success getting data from server: ' + data);
$('body').append(template(data));
},
error: function(data){
console.log('Error: ' + data);
}
});
});
</script>
</body>
</html>