Improved www.ttss.krakow.pl
Jacek Kowalski
2017-03-16 45237c6f1b7a925659e0ec81842b7b69fe3b15c1
index.js
@@ -94,6 +94,11 @@
   var type;
   var low; // low floor: 0 = no, 1 - semi, 2 - full
   
   // Single exception - old id used in one case
   if(id == 831) {
      id = 216;
   }
   if(101 <= id && id <= 173) {
      prefix = 'HW';
      type = 'E1';
@@ -296,7 +301,7 @@
      */
      
      for(var i = 0, il = data.generalAlerts.length; i < il; i++) {
         addParaWithText(times_alerts, data.generalAlerts[i]);
         addParaWithText(times_alerts, data.generalAlerts[i].title);
      }
      
      for(var i = 0, il = data.old.length; i < il; i++) {
@@ -375,7 +380,7 @@
               times_alerts,
               lang.line_alert_pattern
                  .replace('$line', data.routes[i].name)
                  .replace('$alert', data.routes[i].alerts[j])
                  .replace('$alert', data.routes[i].alerts[j].title)
            );
         }
      }