Fixes for hsl timetable.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="x in arr | orderBy: ['date','time']">
|
||||
<tr ng-repeat="x in arr | orderBy: ['date','time'] | limitTo: 15">
|
||||
<td>
|
||||
{{x.time}}
|
||||
</td>
|
||||
|
||||
@@ -40,7 +40,7 @@ app.controller('ABBController', function($scope, $http){
|
||||
app.controller('timetableCtrl',
|
||||
function($scope, $http, $interval) {
|
||||
function load(){
|
||||
$http.get('../js/hsl.json')
|
||||
$http.get('/static/js/hsl.json')
|
||||
.then(function(data, status, headers, config) {
|
||||
$scope.arr=[];
|
||||
parse(data);
|
||||
@@ -111,7 +111,6 @@ app.controller('timetableCtrl',
|
||||
d.setFullYear(date.substring(0,4),date.substring(4,6)-1,date.substring(6,8));
|
||||
d.setHours(time[0]);
|
||||
d.setMinutes(time[1]);
|
||||
console.log(d);
|
||||
if(d < f){
|
||||
$scope.arr.splice(a,1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user