| | |
| | | t: 'proxy_tram.php', |
| | | // t: 'http://www.ttss.krakow.pl/internetservice', |
| | | b: 'proxy_bus.php', |
| | | // b: 'http://91.223.13.70/internetservice', |
| | | // b: 'http://ttss.mpk.krakow.pl/internetservice', |
| | | }; |
| | | var ttss_types = ['t', 'b']; |
| | | |
| | |
| | | } |
| | | |
| | | function parseTime(date, time) { |
| | | var result = new Date(date.getFullYear(), date.getMonth(), date.getDay()); |
| | | var result = new Date(date.getTime()); |
| | | var time_split = time.split(':'); |
| | | result.setHours(time_split[0]); |
| | | result.setMinutes(time_split[1]); |
| | | result.setHours(time_split[0], time_split[1], 0); |
| | | |
| | | if(result.getTime() - date.getTime() > 72000000) { |
| | | result.setTime(result.getTime() - 86400000); |