| | |
| | | // Special directions |
| | | var special_directions = { |
| | | 'Zajezdnia Nowa Huta' : 'NH', |
| | | 'Zajezdnia Podgórze' : 'P', |
| | | 'Zajezdnia Nowa Huta' : 'ZH', |
| | | 'Zajezdnia Podgórze' : 'ZP', |
| | | 'Zjazd do zajezdni' : 'Z', |
| | | 'Wyjazd na linię' : 'W', |
| | | 'Przejazd techniczny' : 'PT', |
| | | }; |
| | | |
| | | var script_version; |
| | | var script_version_xhr; |
| | | |
| | | var vehicles_info; |
| | | var vehicles_info = {}; |
| | | |
| | | // Check for website updates |
| | | function checkVersion() { |
| | |
| | | } |
| | | |
| | | function tramIdToVehicleId(tramId) { |
| | | if(0 <= tramId && tramId <= 999) { |
| | | var vehicleId = '0000' + (tramId + 736); |
| | | vehicleId = vehicleId.substr(vehicleId.length - 4) |
| | | return '635218529567218' + vehicleId; |
| | | for(var prop in vehicles_info) { |
| | | if(vehicles_info[prop]['num'].substr(2) == tramId) { |
| | | return prop; |
| | | } |
| | | } |
| | | } |
| | | |