Fixes for hsl timetable.

This commit is contained in:
Juuso Käenmäki
2016-09-15 20:56:49 +03:00
parent 88f50b161b
commit 23679ac06f
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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);
}