/
index.html
43 lines (39 loc) · 2.19 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
<!DOCTYPE html>
<html lang="en" ng-app="station">
<head>
<title>Station Hero</title>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/angular/angular.min.js"></script>
<script src='https://api.mapbox.com/mapbox.js/v2.2.2/mapbox.js'></script>
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/angular-resource/angular-resource.js"></script>
<script src="bower_components/angular-simple-logger/dist/index.js"></script>
<script src='https://api.mapbox.com/mapbox.js/v2.2.2/mapbox.js'></script>
<script src="bower_components/leaflet.markercluster/dist/leaflet.markercluster.js"></script>
<script src="bower_components/angular-leaflet-directive/dist/angular-leaflet-directive.min.js"></script>
<script src="js/routes.js"></script>
<script src="js/controllers/stations.js"></script>
<script src="js/services/station.js"></script>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<link href='https://api.mapbox.com/mapbox.js/v2.2.2/mapbox.css' rel='stylesheet' />
<link rel="stylesheet" type="text/css" href="bower_components/leaflet.markercluster/dist/MarkerCluster.css">
<link rel="stylesheet" type="text/css" href="bower_components/leaflet.markercluster/dist/MarkerCluster.Default.css">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1><a ng-href="/stationhero">Station Hero</a></h1>
<div ng-controller="stationsController as stationsCtrl">
<button ng-click="stationsCtrl.drawMarkers()">Refresh</button>
<leaflet markers="markers" defaults="defaults" event-broadcast="events" lf-center="center" height="480px" width="640px"></leaflet>
<div class="station" ng-show="stationsCtrl.station">
<h2>{{stationsCtrl.station.data.station_name}}</h2>
Risk:
<ul>
<li>{{stationsCtrl.station.nbBikes}} bikes right now. Odds of running out: {{stationsCtrl.station.delta.bike_odds}}%</li>
<li>{{stationsCtrl.station.nbEmptyDocks}} empty docks right now. Odds of filling up: {{stationsCtrl.station.delta.dock_odds}}%</li>
</ul>
</div>
</div>
<script src="js/app.js"></script>
</body>
</html>