Skip to content

Commit

Permalink
Added working timer
Browse files Browse the repository at this point in the history
  • Loading branch information
TimTijssens committed Jul 31, 2015
1 parent 512b374 commit 0b7babc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ console.log('Hi there');
parseTripUpdateData(result);
}});

setInterval(function() {
window.setInterval(function() {
console.log('Hi Minute');

$.ajax({url: "http://localhost:3000/service_alerts.json", success: function(result){
Expand All @@ -38,7 +38,7 @@ console.log('Hi there');


for( i = 0 ;i <= result.entity.length; i++){
console.log(result.entity[i].alert.header_text.translation[0].text);
//console.log(result.entity[i].alert.header_text.translation[0].text);


$(".servicesUpdate").append(" <tr>"+
Expand Down Expand Up @@ -76,7 +76,7 @@ console.log('Hi there');

var routeId = result.entity[i].trip_update.trip.route_id;
var routeLabel = result.entity[i].trip_update.vehicle.label;
console.log(routeLabel);
//console.log(routeLabel);
var reslt = routeId.split(":");

var totalDelay=0;
Expand Down

0 comments on commit 0b7babc

Please sign in to comment.