-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
161 lines (118 loc) · 5.25 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
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
<!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="">
<meta property="og:type" content="website"/>
<title>Bamphreys - Bus @ Camp Humphreys</title>
<link type="text/css" rel="stylesheet" href="modules/font-awesome-4.5.0/css/font-awesome.min.css"
media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="modules/materializecss/css/materialize.min.css"
media="screen,projection"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.2.min.js"></script>
<!-- Compiled and minified JavaScript -->
<script src="modules/materializecss/js/materialize.min.js"></script>
<script src="modules/underscore/underscore.min.js"></script>
<script src="data/bus_schedule.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="app/css/style.css" media="screen,projection"/>
<script src="modules/knockout/knockout.min.js" type="text/javascript"></script>
<script src="app/js/view.js" type="text/javascript"></script>
</head>
<body>
<div id="app">
<nav>
<div class="nav-wrapper">
<a href="#" class="brand-logo center">Bamphreys</a>
<ul id="slide-out" class="side-nav">
<!--<li><a href="#!">Use my location</a></li>-->
<li><a href="https://github.com/rcox771/Bamphreys">Contribute</a></li>
</ul>
<a href="#" data-activates="slide-out" class="button-collapse"><i class="mdi-navigation-menu"></i></a>
</div>
</nav>
<!-- input form -->
<div class="card">
<!--
<p>
<input type="checkbox" id="uselocation"/>
<label for="uselocation">Use my location</label>
</p>
-->
<div class="row col s12">
<div class="input-field col s6">
<select data-bind="options: stations, value:start,optionsCaption: 'Choose...'"></select>
<label>Depart</label>
</div>
<div class="input-field col s6">
<select data-bind="options: stations, value:stop, optionsCaption: 'Choose...'"></select>
<label>Arrive</label>
</div>
<div class="right">
<div class="input-field col s6">
<input type="checkbox" data-bind="checked: isWeekend" id="daytype-checkbox"/>
<label for="daytype-checkbox">Weekend/Holiday?</label>
</div>
<div class="input-field col s6">
<a class="waves-effect waves-teal btn-floating white right" data-bind="click: refresh">
<i class="fa fa-refresh" style="color: black;" aria-hidden="true"></i>
</a>
</div>
</div>
<!--
<ul id='starts' class='dropdown-content' data-bind="foreach: stations">
<li><a href="#!" data-bind="text: $data"></li></a></li>
</ul>
<ul id='stops' class='dropdown-content' data-bind="foreach: stations">
<li><a href="#!" data-bind="text: $data"></li></a></li>
</ul>
-->
<br>
</div>
</div>
<div class="valign-wrapper center-align" data-bind="visible: routes().length > 0" id="tableWrapper">
<table class="card highlight centered bordered" data-bind="if: routes">
<thead>
<tr data-bind="foreach: $root.columns">
<th>
<div class="sortable" data-bind="click: $root.sortClick.bind(property)">
<span data-bind="html: header"></span><i data-bind="css: state"></i>
</div>
</th>
</tr>
</thead>
<tbody data-bind="foreach: routes">
<tr>
<td data-bind="style: { color: (bus.startsWith('B')) ? 'blue':'red'}">
<i class="fa fa-bus"></i>
<div data-bind="text: bus"></div>
</td>
<td>
<span data-bind="html: wait"></span><i data-bind="visible: (parseInt(wait)<5)"
class="fa fa-exclamation-triangle"
style="color: orange;"></i>
</td>
<td data-bind="text: tlength"></td>
<td data-bind="text: depart"></td>
<td data-bind="text: arrive"></td>
</tr>
</tbody>
</table>
</div>
</div>
<script>
$(document).ready(function() {
$('.button-collapse').sideNav({
menuWidth: 300, // Default is 240
closeOnClick: false // Closes side-nav on <a> clicks, useful for Angular/Meteor
});
vm = new koView();
ko.applyBindings(vm);
$('select').material_select();
});
</script>
</body>
</html>