-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (37 loc) · 1.35 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bus Application</title>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
</head>
<body>
<div id="bus-app">
<header>
<h1>Bus Application</h1>
<select name="from" id="from">
</select>
</header>
<section id="main">
<ul id="schedule"></ul>
</section>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/backbone-localstorage.js/1.1.0/backbone.localStorage-min.js"></script>
<script src="assets/main.js" type="text/javascript"></script>
<!-- Templates -->
<script type="text/template" id="bus-template">
<ul class="stops">
<% _.each(stops, function(stop) { %>
<li><strong><%= this.prettyName( stop.name ) %></strong><span class="badge"><%= this.prettyTime( stop.time ) %></span></li>
<% }, this.model); %>
</ul>
</script>
<script type="text/template" id="stop-template">
<option value="<%= key %>"><%= name %></option>
</script>
</body>
</html>