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