Commit 2f01ea6f authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Update station name autocompletion for T-S-DE-IRIS 1.60

parent 79b55c43
Loading
Loading
Loading
Loading
+13 −13
Original line number Diff line number Diff line
const CACHE_NAME = 'static-cache-v37';
const CACHE_NAME = 'static-cache-v38';
const FILES_TO_CACHE = [
  '/favicon.ico',
  '/offline.html',
  '/static/v37/css/light.min.css',
  '/static/v37/css/dark.min.css',
  '/static/v37/css/material-icons.css',
  '/static/v37/css/local.css',
  '/static/v37/fonts/MaterialIcons-Regular.woff2',
  '/static/v37/fonts/MaterialIcons-Regular.woff',
  '/static/v37/fonts/MaterialIcons-Regular.ttf',
  '/static/v37/js/jquery-3.4.1.min.js',
  '/static/v37/js/materialize.min.js',
  '/static/v37/js/travelynx-actions.min.js',
  '/static/v37/js/autocomplete.min.js',
  '/static/v37/js/geolocation.min.js',
  '/static/v38/css/light.min.css',
  '/static/v38/css/dark.min.css',
  '/static/v38/css/material-icons.css',
  '/static/v38/css/local.css',
  '/static/v38/fonts/MaterialIcons-Regular.woff2',
  '/static/v38/fonts/MaterialIcons-Regular.woff',
  '/static/v38/fonts/MaterialIcons-Regular.ttf',
  '/static/v38/js/jquery-3.4.1.min.js',
  '/static/v38/js/materialize.min.js',
  '/static/v38/js/travelynx-actions.min.js',
  '/static/v38/js/autocomplete.min.js',
  '/static/v38/js/geolocation.min.js',
];

self.addEventListener('install', (evt) => {
+4 −4
Original line number Diff line number Diff line
@@ -2,12 +2,12 @@
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(/static/v37/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
  src: url(/static/v38/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
  src: local('Material Icons'),
       local('MaterialIcons-Regular'),
       url(/static/v37/fonts/MaterialIcons-Regular.woff2) format('woff2'),
       url(/static/v37/fonts/MaterialIcons-Regular.woff) format('woff'),
       url(/static/v37/fonts/MaterialIcons-Regular.ttf) format('truetype');
       url(/static/v38/fonts/MaterialIcons-Regular.woff2) format('woff2'),
       url(/static/v38/fonts/MaterialIcons-Regular.woff) format('woff'),
       url(/static/v38/fonts/MaterialIcons-Regular.ttf) format('truetype');
}

.material-icons {
+27 −25
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Aalter": null,
			"Aarau": null,
			"Aarburg-Oftringen": null,
			"Aarhus": null,
			"Abcoude": null,
			"Abenden": null,
			"Abensberg": null,
@@ -72,11 +73,9 @@ document.addEventListener('DOMContentLoaded', function() {
			"Aix-en-Provence TGV": null,
			"Aix-les-Bains-le-Revard": null,
			"Akkrum": null,
			"Alassio": null,
			"Alba Iulia": null,
			"Albate-Camerlata": null,
			"Albbruck": null,
			"Albenga": null,
			"Albersdorf": null,
			"Albersweiler(Pfalz)": null,
			"Albertville": null,
@@ -304,8 +303,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Aschendorf": null,
			"Aschersleben": null,
			"Ashausen": null,
			"Ashford(Kent)": null,
			"Ashford(Kent) Int.": null,
			"Asperg": null,
			"Asse": null,
			"Asselheim": null,
@@ -595,6 +592,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Barnten": null,
			"Barrien": null,
			"Barsinghausen": null,
			"Bartenheim(Bale)": null,
			"Barth": null,
			"Barthmühle": null,
			"Baruth(Mark)": null,
@@ -1247,6 +1245,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Britz": null,
			"Brixen im Thale": null,
			"Brixlegg": null,
			"Brno hl.n.": null,
			"Brocken": null,
			"Brockhöfe": null,
			"Broderstorf": null,
@@ -1513,7 +1512,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Chemnitz Schneeberger Straße": null,
			"Chemnitz Schule Altchemnitz": null,
			"Chemnitz Stadlerplatz": null,
			"Chemnitz Stefan-Heym-Platz": null,
			"Chemnitz Süd": null,
			"Chemnitz TU Campus": null,
			"Chemnitz Technopark": null,
@@ -1738,7 +1736,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Deventer": null,
			"Deventer Colmschate": null,
			"Devinska Nova Ves": null,
			"Diano Marina": null,
			"Didam": null,
			"Diebach": null,
			"Dieburg": null,
@@ -2008,7 +2005,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Düsseldorf-Unterrath": null,
			"Düsseldorf-Zoo": null,
			"Dütschow": null,
			"Ebbsfleet International Eurostar": null,
			"Ebelsbach-Eltmann": null,
			"Eben im Pongau": null,
			"Ebenfurth": null,
@@ -2295,6 +2291,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Eschweiler-Weisweiler": null,
			"Eschweiler-West": null,
			"Esens(Ostfriesl)": null,
			"Eslöv station": null,
			"Espelkamp": null,
			"Espenau-Mönchehof": null,
			"Essel": null,
@@ -2392,7 +2389,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Feilitzsch": null,
			"Feldafing": null,
			"Feldbach/Raab": null,
			"Feldberg(Meckl)": null,
			"Feldberg-Bärental": null,
			"Felde": null,
			"Feldhausen": null,
@@ -2421,7 +2417,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Filderstadt": null,
			"Filisur": null,
			"Filsen": null,
			"Finale Ligure Marina": null,
			"Finkenheerd": null,
			"Finkenkrug": null,
			"Finnentrop": null,
@@ -3123,6 +3118,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Haarhausen": null,
			"Haarlem": null,
			"Haarlem Spaarnwoude": null,
			"Habsheim(Mulh)": null,
			"Hachenburg": null,
			"Hadamar": null,
			"Hademarschen": null,
@@ -3569,6 +3565,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Hesseneck Schöllenbach": null,
			"Hessisch Oldendorf": null,
			"Hetschburg": null,
			"Hettange Grande": null,
			"Hettenhausen": null,
			"Hettingen(Hohenz)": null,
			"Hettstedt": null,
@@ -3730,6 +3727,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Hornstorf": null,
			"Horovice": null,
			"Horrem": null,
			"Horsens st": null,
			"Horst(Holst)": null,
			"Horst-Sevenum": null,
			"Hosena": null,
@@ -3770,6 +3768,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Hämelerwald": null,
			"Hämerten": null,
			"Händelstraße, Karlsruhe": null,
			"Hässleholm Central": null,
			"Häuserhof": null,
			"Höchst Hetschbach": null,
			"Höchst Mümling-Grumbach": null,
@@ -4016,7 +4015,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Kappelrodeck": null,
			"Kappelrodeck Ost": null,
			"Kapsweyer": null,
			"Kargow": null,
			"Karlovy Vary": null,
			"Karlovy Vary dolni n.": null,
			"Karlsburg": null,
@@ -4168,7 +4166,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Klaus in Vorarlberg": null,
			"Klecken": null,
			"Kledering b.Wien": null,
			"Kleeth": null,
			"Klein Bünzow": null,
			"Klein Gerau": null,
			"Klein Winternheim-Ober Olm": null,
@@ -4200,7 +4197,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Klinikum Bremen-Nord/Beckedorf": null,
			"Klitschmar": null,
			"Klitten": null,
			"Klockow(b Waren/Müritz)": null,
			"Kloster Bronnbach": null,
			"Kloster Marienthal": null,
			"Kloster Oesede": null,
@@ -4731,6 +4727,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Leverkusen-Schlebusch": null,
			"Lezignan": null,
			"Liberec": null,
			"Libramont": null,
			"Lich(Oberhess)": null,
			"Lichtenberg(Erzgeb)": null,
			"Lichtenfels": null,
@@ -4780,6 +4777,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Linkenheim Rathaus": null,
			"Linkenheim Schulzentrum, Linkenheim-Hochstetten": null,
			"Linkenheim Süd, Linkenheim-Hochstetten": null,
			"Linköping Central": null,
			"Linnich Bhf": null,
			"Linnich-Tetz": null,
			"Linsburg": null,
@@ -4993,6 +4991,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Mainz-Mombach": null,
			"Maisach": null,
			"Maishofen-Saalbach": null,
			"Maizieres-les-Metz": null,
			"Mala Velen": null,
			"Malbork": null,
			"Malchin": null,
@@ -5040,6 +5039,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Marbach(b Münsingen)": null,
			"Marbach-Grafeneck": null,
			"Marbeck-Heiden": null,
			"Marbehan": null,
			"Marburg Süd": null,
			"Marburg(Lahn)": null,
			"Marche-les-Dames": null,
@@ -5219,6 +5219,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Mettlach": null,
			"Mettmann Stadtwald": null,
			"Mettmann Zentrum": null,
			"Metz Nord": null,
			"Metz Ville": null,
			"Metzingen(Württ)": null,
			"Metzingen-Neuhausen": null,
@@ -5246,6 +5247,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Mikulasovice dolni nadrazi": null,
			"Milano Centrale": null,
			"Milano Greco Pirelli": null,
			"Milano Lambrate": null,
			"Milano Porta Garibaldi": null,
			"Millingen(b Rees)": null,
			"Millingen(b Rheinb)": null,
@@ -5676,7 +5678,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Neureut Bärenweg, Karlsruhe": null,
			"Neureut Welschneureuter Straße, Karlsruhe": null,
			"Neuruppin Rheinsberger Tor": null,
			"Neuruppin Seedamm": null,
			"Neuruppin West": null,
			"Neusalza-Spremberg": null,
			"Neuses(b Kronach)": null,
@@ -5849,6 +5850,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Nordwalde": null,
			"Norf": null,
			"Norheim": null,
			"Norrköping Central": null,
			"Norsingen": null,
			"Northeim(Han)": null,
			"Nortorf": null,
@@ -5874,6 +5876,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Nyborg st": null,
			"Nyiregyhaza": null,
			"Nymburk hl.n.": null,
			"Nässjö Central": null,
			"Nîmes": null,
			"Nöbdenitz": null,
			"Nördlingen": null,
@@ -5996,7 +5999,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Oberzell": null,
			"Oberzissen": null,
			"Oberöwisheim": null,
			"Obing": null,
			"Obourg": null,
			"Obstfelderschmiede": null,
			"Ochenbruck": null,
@@ -6018,6 +6020,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Oelsnitz(Erzgeb)": null,
			"Oelsnitz(Vogtl)": null,
			"Oerel": null,
			"Oerestad st": null,
			"Oerlenbach": null,
			"Oerlinghausen": null,
			"Oermingen": null,
@@ -6280,13 +6283,13 @@ document.addEventListener('DOMContentLoaded', function() {
			"Pirna-Copitz": null,
			"Pirna-Copitz Nord": null,
			"Pisa Centrale": null,
			"Pittenhart": null,
			"Plaaz": null,
			"Plaidt": null,
			"Planegg": null,
			"Plate(Meckl)": null,
			"Plattling": null,
			"Platz der Deutschen Einheit, Kassel": null,
			"Plau am See Bahnhof": null,
			"Plaue(Thür)": null,
			"Plauen(V) unt Bf": null,
			"Plauen(Vogtl) Mitte": null,
@@ -6378,7 +6381,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Pritzwalk": null,
			"Pritzwalk Hainholz": null,
			"Pritzwalk West": null,
			"Probsteierhagen": null,
			"Probstzella": null,
			"Profen": null,
			"Profondsart": null,
@@ -6450,7 +6452,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Radldorf(Niederbay)": null,
			"Radolfzell": null,
			"Radstadt": null,
			"Raestrup-Everswinkel": null,
			"Rafz": null,
			"Raguhn": null,
			"Rahden": null,
@@ -6668,6 +6669,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Ritterhude": null,
			"Rivera-Bironico": null,
			"Rivesaltes": null,
			"Rixheim(Mulhouse)": null,
			"Roanne": null,
			"Robilante": null,
			"Roccavione": null,
@@ -6912,7 +6914,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Samstagern": null,
			"Samtens": null,
			"San Candido/Innichen": null,
			"San Remo": null,
			"Sand(Niederbay)": null,
			"Sande": null,
			"Sandebeck": null,
@@ -6952,7 +6953,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Saumur Rive Droit": null,
			"Sauwerd": null,
			"Saverne": null,
			"Savona": null,
			"Schaan-Vaduz": null,
			"Schaerbeek": null,
			"Schafbrücke": null,
@@ -7166,7 +7166,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Schönfließ(b Oranienburg)": null,
			"Schöngeising": null,
			"Schönhausen(Elbe)": null,
			"Schönkirchen Bf": null,
			"Schönmünzach": null,
			"Schönow(Angerm)": null,
			"Schönstedt": null,
@@ -7233,6 +7232,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Selm-Beifang": null,
			"Seltendorf": null,
			"Selzthal": null,
			"Semmering": null,
			"Senden": null,
			"Senden-Bösensell": null,
			"Senftenberg": null,
@@ -7264,6 +7264,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Siegsdorf": null,
			"Sieniawa Zarska": null,
			"Sierck-les-Bains": null,
			"Sierentz": null,
			"Sierksdorf": null,
			"Sierre/Siders": null,
			"Siersburg": null,
@@ -7306,6 +7307,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Sittard": null,
			"Sitzendorf-Unterweißbach": null,
			"Skaerbaek st": null,
			"Skanderborg st": null,
			"Slagelse st": null,
			"Slavonski Brod": null,
			"Sliedrecht": null,
@@ -7410,6 +7412,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"St-Jean-de-Maurienne Arvan": null,
			"St-Jory(Toulouse)": null,
			"St-Louis (Haut-Rhin)": null,
			"St-Louis-la-Chaussee": null,
			"St-Maurice(CH)": null,
			"St-Michel-Valloire": null,
			"St-Pierre-dAlbigny": null,
@@ -7653,6 +7656,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Szolnok": null,
			"Sättelstädt": null,
			"Sélestat": null,
			"Södertälje Syd station": null,
			"Söllingen Kapellenstraße": null,
			"Söllingen Reetzstr.": null,
			"Söllingen(b Karlsr)": null,
@@ -7694,7 +7698,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Taucha(Leipzig)": null,
			"Taufkirchen": null,
			"Taufkirchen an der Pram": null,
			"Taulov st": null,
			"Tautenhain": null,
			"Taverne-Torricella": null,
			"Taxenbach-Rauris": null,
@@ -7722,7 +7725,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Tenneck": null,
			"Teplice v Cechach": null,
			"Terborg": null,
			"Terespol": null,
			"Terfens-Weer": null,
			"Tergnier": null,
			"Teschenhagen": null,
@@ -7817,7 +7819,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Trechtingshausen": null,
			"Treibach-Althofen": null,
			"Treis-Karden": null,
			"Trelleborg F": null,
			"Trento": null,
			"Treuchtlingen": null,
			"Treuen": null,
@@ -7988,7 +7989,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Vaihingen(Enz)Nord": null,
			"Vaires Torcy": null,
			"Val-de-Reuil": null,
			"Valby(Koebenhavn)": null,
			"Valdaora-Anterselva/Olang-Antholz": null,
			"Valdek": null,
			"Valence TGV": null,
@@ -8021,6 +8021,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Vehlefanz": null,
			"Veilsdorf": null,
			"Veitshöchheim": null,
			"Vejle st": null,
			"Velbert Rosenhügel": null,
			"Velbert-Langenberg": null,
			"Velbert-Neviges": null,
@@ -8084,6 +8085,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Villingen-Schwenningen Eisstadion": null,
			"Villingen-Schwenningen Hammerstatt": null,
			"Villmar": null,
			"Vils Stadt": null,
			"Vils in Tirol": null,
			"Vilsbiburg": null,
			"Vilseck": null,
@@ -8106,7 +8108,6 @@ document.addEventListener('DOMContentLoaded', function() {
			"Voerendaal": null,
			"Vogelsang(Gransee)": null,
			"Vogelweh": null,
			"Voghera": null,
			"Vohburg": null,
			"Vohren": null,
			"Voigtsgrün": null,
@@ -8205,6 +8206,7 @@ document.addEventListener('DOMContentLoaded', function() {
			"Walsrode": null,
			"Waltershausen": null,
			"Waltershausen Schnepfenthal": null,
			"Walygator Parc": null,
			"Wandersleben": null,
			"Wandlitz": null,
			"Wandlitzsee": null,
+1 −6

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
$(document).ready(function(){function e(){return $("div.geolocation div.progress")}var t=function(t,n,o){e().remove();var r=$(document.createElement("div"));r.attr("class","error"),r.text(n);var i=$(document.createElement("strong"));i.text(t),r.prepend(i),$("div.geolocation").append(r)},n=function(n){n.error?t("Backend-Fehler:",n.error):0==n.candidates.length?t("Keine Bahnhöfe in 70km Umkreis gefunden",""):(resultTable=$("<table><tbody></tbody></table>"),resultBody=resultTable.children(),$.each(n.candidates,function(e,t){var n=t.ds100,o=t.name,r=t.distance;r=r.toFixed(1);var i=$(document.createElement("a"));i.attr("href",n),i.text(o),resultBody.append('<tr><td><a href="/s/'+n+'">'+o+"</a></td></tr>")}),e().replaceWith(resultTable))},o=function(e){$.post("/geolocation",{lon:e.coords.longitude,lat:e.coords.latitude},n)},r=function(e){e.code==e.PERMISSION_DENIED?t("Standortanfrage nicht möglich.","Vermutlich fehlen die Rechte im Browser oder der Android Location Service ist deaktiviert."):e.code==e.POSITION_UNAVAILABLE?t("Standort konnte nicht ermittelt werden","(Service nicht verfügbar)"):e.code==e.TIMEOUT?t("Standort konnte nicht ermittelt werden","(Timeout)"):t("Standort konnte nicht ermittelt werden","(unbekannter Fehler)")},i=$("div.geolocation > button"),a=function(){i.replaceWith($('<p class="geolocationhint">Stationen in der Umgebung:</p><div class="progress"><div class="indeterminate"></div></div>')),navigator.geolocation.getCurrentPosition(o,r)};i.length&&(navigator.geolocation?navigator.permissions?navigator.permissions.query({name:"geolocation"}).then(function(e){"prompt"===e.state?i.on("click",a):a()}):i.on("click",a):t("Standortanfragen werden von diesem Browser nicht unterstützt",""))});
$(document).ready(function(){function r(){return $("div.geolocation div.progress")}function e(e){$.post("/geolocation",{lon:e.coords.longitude,lat:e.coords.latitude},i)}function t(e){e.code==e.PERMISSION_DENIED?o("Standortanfrage nicht möglich.","Vermutlich fehlen die Rechte im Browser oder der Android Location Service ist deaktiviert.","geolocation.error.PERMISSION_DENIED"):e.code==e.POSITION_UNAVAILABLE?o("Standort konnte nicht ermittelt werden","(Service nicht verfügbar)","geolocation.error.POSITION_UNAVAILABLE"):e.code==e.TIMEOUT?o("Standort konnte nicht ermittelt werden","(Timeout)","geolocation.error.TIMEOUT"):o("Standort konnte nicht ermittelt werden","(unbekannter Fehler)","unknown geolocation.error code")}function n(){a.replaceWith($('<p class="geolocationhint">Stationen in der Umgebung:</p><div class="progress"><div class="indeterminate"></div></div>')),navigator.geolocation.getCurrentPosition(e,t)}var o=function(e,t,n){r().remove();var o=$(document.createElement("div"));o.attr("class","error"),o.text(t);t=$(document.createElement("strong"));t.text(e),o.prepend(t),$("div.geolocation").append(o)},i=function(e){e.error?o("Backend-Fehler:",e.error,null):0==e.candidates.length?o("Keine Bahnhöfe in 70km Umkreis gefunden","",null):(resultTable=$("<table><tbody></tbody></table>"),resultBody=resultTable.children(),$.each(e.candidates,function(e,t){var n=t.ds100,o=t.name,t=(t.distance.toFixed(1),$(document.createElement("a")));t.attr("href",n),t.text(o),resultBody.append('<tr><td><a href="/s/'+n+'">'+o+"</a></td></tr>")}),r().replaceWith(resultTable))},a=$("div.geolocation > button");a.length&&(navigator.geolocation?navigator.permissions?navigator.permissions.query({name:"geolocation"}).then(function(e){"prompt"===e.state?a.on("click",n):n()}):a.on("click",n):o("Standortanfragen werden von diesem Browser nicht unterstützt","",null))});
Loading