-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdynamicListView.html
More file actions
233 lines (217 loc) · 10 KB
/
dynamicListView.html
File metadata and controls
233 lines (217 loc) · 10 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<title>List of MARTA's currently running buses</title>
<!-- Start stylesheets-->
<link rel="stylesheet" href="frontend/bootstrap/css/bootstrap.css" type="text/css"/>
<link rel="stylesheet" href="frontend/css/style.css" type="text/css"/>
<!-- End stylesheets-->
</head>
<body>
<!-- Start template.-->
<!-- start list templates -->
<script type="text/x-handlebars" data-template-name="list/buses"><!-- Start list view. -->
<div class="container main-container">
<div class="panel panel-default row my-panel">
<!-- Start list header. -->
<!-- Start list title. -->
<div class="col-xs-12 panel-body">
<h1 class="text-center">MARTA Bus Tracker</h1>
<h3 class="text-center">Bus Route Listing</h3>
</div>
<!-- End list title. -->
<!-- Start list header clickables. -->
<div class="panel-body row new-panel-body">
<a href="#list"><div title='See a list of all buses.' class="col-xs-6 text-center bar-content-left">
<h4 class="button-font"><span class="glyphicon glyphicon-th-list"></span> List</h4>
</div></a>
<a href="#bus"><div title='View a map of all buses.' class="col-xs-6 text-center bar-content-right">
<h4 class="button-font"><span class="glyphicon glyphicon-map-marker"></span> Map</h4>
</div></a>
</div>
<!-- End list header clickables. -->
<!-- Start listview list. -->
<ul class="list-group scrollbox">
{{#each paginatedContent itemController="bus"}}
<li class="list-group-item col-xs-12 my-list-item {{position}}">
<ul class="nav nav-pills">
<li>
<ul class="nav nav-pills nav-stacked">
<li><h4 class="list-group-item-heading">Bus #{{bus}}</h4></li>
<li>
{{#if isTimely}}
<span class="timely">
Running on time.
</span>
{{else}}
<span {{bind-attr class="adherenceColor"}}>
Running {{absoluteAdherence}} {{inflection}} {{lateOrEarly}}.
</span>
{{/if}}
On route: #{{route}}.
</li>
<li>Heading: {{direction}}. Next Stop: {{timePoint}}.</li>
</ul>
</li>
<ul class="nav nav-pills right-class">
<li>
{{#link-to 'trip.bus' trip bus class="bus-data"}}
<div class="map-button"></div>
{{/link-to}}
</li>
</ul>
</ul>
</li>
{{/each}}
</ul>
<!-- End listview list. -->
<!-- Start prev/next pagnator -->
<div class="panel-footer pagnator-outer">
<ul class="pager pagnator-inner">
{{#if prevPage}}
<li class="previous"><a href="#" {{action "selectPage" prevPage}}>← Previous</a></li>
{{else}}
<li class="previous disabled"><a href="#">← Previous</a></li>
{{/if}}
{{#if nextPage}}
<li class="next"><a href="#" {{action "selectPage" nextPage}}>Next →</a></li>
{{else}}
<li class="next disabled"><a href="#">Next →</a></li>
{{/if}}
</ul>
</div>
<!-- End prev/next pagnator -->
</div> <!-- panel -->
</div> <!-- container -->
</script><!-- End Template -->
<!-- end list templates -->
<!-- Start stop list template. -->
<!-- End stop list template -->
<!-- End templates. -->
<!--Start navbar. -->
<!--Start header. -->
<nav class="navbar navbar-inverse navbar-fixed-top my-navbar" role="navigation">
<a class="navbar-brand col-xs-offset-1" href="#">AtlantaLiveMap</a>
<div class="col-xs-offset-4 col-xs-7 input-group navbar-btn">
<span class="input-group-addon">Enter bus #</span>
<input title='Enter the number for the bus you like learn about' type="text" class="form-control" placeholder="Bus Number">
</div>
</nav>
<!-- End header. -->
<!-- Start footer. -->
<nav class="navbar navbar-inverse navbar-fixed-bottom my-navbar my-footer" role="navigation">
<div class="container main-container">
<ul class='list-inline row link-footer'>
<li class="hire-me col-xs-offset-4">
<a title='Click here to contact Sheefeni.' class="hire-link" data-toggle="modal" data-target="#hire-modal" href="#hire">
Hire me!
</a>
</li>
<!-- Start footer icons.-->
<li><a href="#twitter"><div title='Tweet this' id="twitter-button"></div></a></li>
<li><a href="#github"><div title='Watch this on Github' id="github-button"></div></a></li>
<li><a href="#linkedin"><div title='Follow Sheefeni Hauwanga on Linkedin' id="linkedin-button"></div></a></li>
<!-- End footer icons.-->
</ul>
<a title="Visit Sheefeni Hauwanga's main page." class="hire-link" href="http://www.shefcookscode.com/">
<h5 class="text-center link-footer" href="#">ShefCooksCode.com</h5>
</a>
</div>
</nav>
<!-- End footer. -->
<!-- End navbars. -->
<!-- Start hire me modal. -->
<div class="modal fade" id="hire-modal">
<div class="modal-dialog">
<div class="modal-content">
<!-- Start modal-header.-->
<div class="modal-header submit_header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
<span class="glyphicon glyphicon-remove-circle"></span>
</button>
<h4 style="color: white;" class="modal-title" id="myModalLabel">Drop me a line!</h4>
</div><!-- modal-header. -->
<!-- End modal-header.-->
<!-- Start modal-body. -->
<div class="modal-body">
<p>Hi, I'm Sheefeni Hauwanga, a web and mobile developer from Atlanta, Georgia.</p>
<p>I created this web app to help make Atlanta more navigable without a car.</p>
<p>If you'd like me to assist you with your project, contact me with the form below!</p>
<hr />
<h4><span class="glyphicon glyphicon-pencil"></span> Tell me about your project:</h4>
<div class="form-group">
<input title="Enter your email address." type="email" class="form-control" id="hire-email" placeholder="Enter your email.">
</div>
<div class="form-group">
<input title="Enter your company's name." type="text" class="form-control" id="hire-company" placeholder="Enter your company's name.">
</div>
<div class="form-group">
<input title="Enter your first and last name." type="text" class="form-control" id="hire-name" placeholder="Enter your name.">
</div>
<div class="form-group">
<textarea title="Please give me a description of your project."class="form-control" rows="3" placeholder="Enter your project's description."></textarea>
</div>
</div><!-- modal-body. -->
<!-- End modal-body. -->
<!-- Start modal footer. -->
<a class="form_submit_button" href="#"><div title="Click to send!" id="modal-submit" class="modal-footer submit_button">
<h3 style="color: white;" class="text-center"><span class="glyphicon glyphicon-inbox"></span> Contact Sheefeni</h3>
</div></a><!-- modal-footer. -->
<!-- End modal footer. -->
</div><!-- modal-content. -->
</div><!-- modal-dialog. -->
</div><!-- modal. -->
<!-- End hire me modal. -->
<!-- Start main template. -->
<script type="text/x-handlebars" data-template-name="list">
{{outlet}}
</script>
<!-- End main template. -->
<!-- Start libraries. -->
<!-- Start of Google maps JavaScript API -->
<!--<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA0GhZ9RY33odsucRxAaWCRmBxrc0bxd7E&sensor=false"></script> -->
<!-- End of Google maps JavaScript API -->
<script src="frontend/js/libs/jquery-1.10.2.min.js"></script>
<script src="frontend/bootstrap/js/bootstrap.js"></script>
<!-- Start of EmberJS files. -->
<script src="frontend/js/libs/handlebars-1.0.0.js"></script>
<script src="frontend/js/libs/ember.js"></script>
<script src="frontend/js/libs/ember-data.js"></script>
<!-- End of EmberJS files. -->
<script src="frontend/js/application.js"></script>
<script src="frontend/js/router.js"></script>
<!-- Start of models. -->
<script src="frontend/js/models/bus.js"></script>
<!-- End of models. -->
<!-- Start of Mixins. -->
<!-- End of Mixins. -->
<!-- Start of controllers. -->
<script src="frontend/js/controllers/buses_controller.js"></script>
<script src="frontend/js/controllers/bus_controller.js"></script>
<!-- End of controllers. -->
<!-- Start of handlebar helpers -->
<script src="frontend/js/handlebar_helpers/position.js"></script>
<!-- End of handlebar helpers -->
<script type="text/javascript">
/*function initialize() {
var mapOptions = {
panControl: false,
mapTypeControl: false,
streetViewControl: false,
/*zoomControlOptions: {
position: google.maps.ControlPosition.LEFT_CENTER
},*/
/*center: new google.maps.LatLng(33.775723, -84.388733),
zoom: 12
};
var map = new google.maps.Map(document.getElementById("map-canvas"),
mapOptions);
}
google.maps.event.addDomListener(window, 'load', initialize);*/
</script>
<!-- End libraries. -->
</body>
</html>