Hiding the "Bus " substring and rm some debugging

gh-pages
Thierry Degeling 2014-07-21 17:04:47 +02:00
parent b483729aba
commit a520ac6289
1 changed files with 4 additions and 2 deletions

View File

@ -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' )