| | |
| | | var delay = parseDelay(data.actual[i]); |
| | | var delay_cell = addCellWithText(tr, delay); |
| | | |
| | | if(status == lang.boarding_sign) { |
| | | if(data.actual[i].status == 'STOPPING') { |
| | | tr.className = 'success'; |
| | | status_cell.className = 'status-boarding'; |
| | | if (data.actual[i].actualRelativeTime <= 0) { |
| | | status_cell.className = 'status-boarding'; |
| | | } |
| | | } else if(parseInt(delay) > 9) { |
| | | tr.className = 'danger'; |
| | | delay_cell.className = 'status-delayed'; |
| | |
| | | setText(vehicle_data_style, '.vehicleData { display: table-cell; }') |
| | | }); |
| | | |
| | | updateVehicleInfo() |
| | | |
| | | hash(); |
| | | |
| | | window.addEventListener('hashchange', hash); |