Hiding the "Bus " substring and rm some debugging
parent
b483729aba
commit
a520ac6289
|
@ -103,6 +103,10 @@ function refreshContent() {
|
|||
|
||||
}
|
||||
|
||||
if ( name.indexOf("Bus") != -1 ) {
|
||||
name = name.slice( name.indexOf("Bus ") + 4 );
|
||||
}
|
||||
|
||||
content += '<h1>' + time + ' <span class="label label-' + labelColor + ' label-lg">' + name + '</span> ' + destination + '</h1>' + timeLeftMessage;
|
||||
|
||||
|
||||
|
@ -233,8 +237,6 @@ function l2events() {
|
|||
|
||||
$.each( events.items , function( nr, l2event ) {
|
||||
|
||||
console.log( l2event );
|
||||
|
||||
output += '<div class="panel">'
|
||||
+ '<h1>' + l2event.label + ' <small>'
|
||||
+ moment( l2event.startdate, "YYYY-MM-DD HH:mm:ss").format( 'dddd, Do \of MMMM' )
|
||||
|
|
Loading…
Reference in New Issue