-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (38 loc) · 1.7 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
<!doctype html>
<html ng-app=buses>
<meta charset=utf-8>
<title>London Bus Arrivals</title>
<meta name=description content="London bus arrivals within 300 metres of your current location.">
<meta name=viewport content=width=device-width>
<link href=/style.css rel=stylesheet>
<body class=container ng-controller=main>
<header>
<h1>Bus stops within 300 metres</h1>
<p ng-cloak ng-show=error class=text-danger>{{ error }}</p>
</header>
<main>
<ol class=list-unstyled>
<li ng-cloak ng-repeat="stop in allArrivals | unique:'stopId' | orderBy:'distance'">
<h2>
<span class=title>{{ stop.stopName }} <span ng-if=stop.stopCode>({{ stop.stopCode }})</span></span>
<span class=break>Towards {{ stop.towards }}</span>
<span class=break>{{ stop.distance * 1000 | number:0 }} metres away</span>
</h2>
<ol class=list-unstyled>
<li ng-repeat="arrival in allArrivals | filter: { stopId: stop.stopId } | orderBy:'eta'">
{{ arrival.route }} to {{ arrival.destination }} ({{ arrival.eta | timeago }})
</li>
</ol>
</li>
</ol>
</main>
<footer>
<div ng-cloak>
<p ng-show=accuracy>Location accurate to {{ accuracy | number:0 }} metres.</p>
<p ng-show=loading>{{ loading }}</p>
</div>
<p>Made by <a href=http://beaumartinez.com/ target=_blank>Beau Martinez</a>. Code on <a href=https://github.com/beaumartinez/buses target=_blank>GitHub</a>. Data kindly provided by TFL.</p>
</footer>
<script src=/main.js></script>
</body>
</html>