common.js | ●●●●● patch | view | raw | blame | history | |
index.html | ●●●●● patch | view | raw | blame | history | |
index.js | ●●●●● patch | view | raw | blame | history |
common.js
@@ -35,7 +35,6 @@ function parseStatus(status) { switch(status.status) { case 'STOPPING': return lang.boarding_sign; case 'PREDICTED': if(status.actualRelativeTime <= 0) return lang.boarding_sign; index.html
@@ -134,8 +134,8 @@ </div> </div> <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7" crossorigin="anonymous"></script> <script tyle="text/javascript" src="lang_pl.js" id="lang_script"></script> <script tyle="text/javascript" src="common.js"></script> <script type="text/javascript" src="lang_pl.js" id="lang_script"></script> <script type="text/javascript" src="common.js"></script> <script type="text/javascript" src="index.js"></script> </body> </html> index.js
@@ -137,9 +137,11 @@ 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';