diff --git a/data/bus.json b/data/bus.json deleted file mode 100644 index b91eb24ee0e54273100b2e4bc2edab0676923d38..0000000000000000000000000000000000000000 --- a/data/bus.json +++ /dev/null @@ -1,176 +0,0 @@ -{ - "id": 12345, - "line_name": 54, - "next_stop": "kauppatori", - "estimated_arrival": "05:20:00", - "shape": [ - ["1_1",328486,60.430612,22.232319,0.0], - ["1_1",328487,60.430586,22.232312,2.94288086119648], - ["1_1",328488,60.430595,22.232275,5.229917966677577], - ["1_1",328489,60.430601,22.232195,9.667123399858319], - ["1_1",328490,60.430593,22.232132,13.23500019721591], - ["1_1",328491,60.430573,22.232084,16.68093885640385], - ["1_1",328492,60.430553,22.232070,19.032029267070687], - ["1_1",328493,60.430525,22.232058,22.213063187732356], - ["1_1",328494,60.430495,22.232064,25.563630685620822], - ["1_1",328495,60.430440,22.232112,32.21893159093382], - ["1_1",328496,60.430509,22.232537,56.75586527397042], - ["1_1",328497,60.430575,22.233138,90.52196379874158], - ["1_1",328498,60.430589,22.233348,102.14301059693517], - ["1_1",328499,60.430607,22.233557,113.77838023767706], - ["1_1",328500,60.430599,22.233678,120.47346697318744], - ["1_1",328501,60.430523,22.233925,136.43654822439464], - ["1_1",328502,60.430484,22.234036,143.90939427129393], - ["1_1",328503,60.430429,22.234206,155.05755829934898], - ["1_1",328504,60.430351,22.234435,170.31739131216221], - ["1_1",328505,60.430273,22.234682,186.39930921106034], - ["1_1",328506,60.430176,22.234929,203.711101877307], - ["1_1",328507,60.430050,22.235242,225.8636268896003], - ["1_1",328508,60.429953,22.235459,241.92089472218876], - ["1_1",328509,60.429857,22.235724,259.9497776762754], - ["1_1",328510,60.429803,22.235887,270.7163045457214], - ["1_1",328511,60.429766,22.236050,280.55573953561833], - ["1_1",328512,60.429730,22.236327,296.26556459212406], - ["1_1",328513,60.429714,22.236452,303.34813170431477], - ["1_1",328514,60.429708,22.236590,310.94582751006925], - ["1_1",328515,60.429720,22.236800,322.54244606189064], - ["1_1",328516,60.429685,22.236802,326.460291838111], - ["1_1",328517,60.429720,22.236800,330.37813761433137], - ["1_1",328518,60.429747,22.237257,355.6177177140379], - ["1_1",328519,60.429791,22.237404,365.0464585087896], - ["1_1",328520,60.429900,22.238161,408.29363426538106], - ["1_1",328521,60.430025,22.238747,443.30519819981095], - ["1_1",328522,60.430082,22.239188,468.3066358361262], - ["1_1",328523,60.430030,22.239514,487.09620367980864], - ["1_1",328524,60.430108,22.240127,521.8141757788138], - ["1_1",328525,60.430137,22.240352,534.5676399626292], - ["1_1",328526,60.430235,22.240338,545.4857014891737], - ["1_1",328527,60.430330,22.240324,556.0709252476697], - ["1_1",328528,60.430534,22.240275,578.9007155799171], - ["1_1",328529,60.430844,22.240214,613.5159794353451], - ["1_1",328530,60.430851,22.240251,615.7208445417281], - ["1_1",328531,60.430844,22.240214,617.925709648111], - ["1_1",328532,60.430999,22.240183,635.2328214131592], - ["1_1",328533,60.431259,22.240074,664.73922955969], - ["1_1",328534,60.431572,22.240148,699.7597920126668], - ["1_1",328535,60.431731,22.240208,717.7336629903834], - ["1_1",328536,60.431934,22.240318,741.0860810018337], - ["1_1",328537,60.432119,22.240452,762.9193178876545], - ["1_1",328538,60.432547,22.240761,813.4720804435085], - ["1_1",328539,60.432499,22.240828,819.9407982279525], - ["1_1",328540,60.432547,22.240761,826.4095160123966], - ["1_1",328541,60.432713,22.240881,845.9363736817555], - ["1_1",328542,60.432888,22.240990,866.2823752261302], - ["1_1",328543,60.433043,22.241111,884.7420405720385], - ["1_1",328544,60.433203,22.241232,903.7208698979989], - ["1_1",328545,60.433423,22.241386,929.5875633844586], - ["1_1",328546,60.433512,22.241474,940.59309070518], - ["1_1",328547,60.433616,22.241581,953.5548585046488], - ["1_1",328548,60.433723,22.241668,966.3671296136707], - ["1_1",328549,60.433783,22.241743,974.201672153487], - ["1_1",328550,60.433840,22.241789,981.0200059932508], - ["1_1",328551,60.433964,22.241946,997.2689958802684], - ["1_1",328552,60.434124,22.242141,1018.0176499717392], - ["1_1",328553,60.434181,22.242252,1026.8023356295282], - ["1_1",328554,60.434238,22.242372,1035.9362035257648], - ["1_1",328555,60.434274,22.242590,1048.54162871907], - ["1_1",328556,60.434353,22.242680,1058.6130158902045], - ["1_1",328557,60.434405,22.242842,1069.2105646077666], - ["1_1",328558,60.434422,22.242894,1072.6315941199514], - ["1_1",328559,60.434579,22.243387,1104.80690375946], - ["1_1",328560,60.434643,22.243534,1115.5566942176226], - ["1_1",328561,60.434904,22.244204,1162.376175869824], - ["1_1",328562,60.434824,22.244235,1171.4591417929375], - ["1_1",328563,60.434904,22.244204,1180.542107716051], - ["1_1",328564,60.434962,22.244351,1190.852892118076], - ["1_1",328565,60.435034,22.244682,1210.6885102274969], - ["1_1",328566,60.435513,22.246074,1303.7462209504363], - ["1_1",328567,60.435932,22.247369,1388.6608320907696], - ["1_1",328568,60.436169,22.248068,1435.1661246533763], - ["1_1",328569,60.436209,22.247997,1441.0755470577458], - ["1_1",328570,60.436384,22.247807,1463.1384842856667], - ["1_1",328571,60.436473,22.247681,1475.1601112473234], - ["1_1",328572,60.436457,22.247671,1476.950346659577], - ["1_1",328573,60.436473,22.247681,1478.7405820718307], - ["1_1",328574,60.436769,22.247263,1518.8760138162563], - ["1_1",328575,60.436849,22.247144,1529.903605331219], - ["1_1",328576,60.437093,22.246785,1563.4112954264683], - ["1_1",328577,60.437250,22.246683,1581.733406557032], - ["1_1",328578,60.438103,22.246425,1677.5793583361747], - ["1_1",328579,60.438241,22.246302,1694.332733197516], - ["1_1",328580,60.438426,22.246076,1718.3225707214913], - ["1_1",328581,60.438479,22.246120,1724.6796839561903], - ["1_1",328582,60.438426,22.246076,1731.0367971908893], - ["1_1",328583,60.438454,22.246042,1734.6808205708464], - ["1_1",328584,60.438496,22.245979,1740.4872754503174], - ["1_1",328585,60.439084,22.245188,1818.915334791011], - ["1_1",328586,60.440845,22.248662,2092.003584552603], - ["1_1",328587,60.440896,22.248761,2099.850756977945], - ["1_1",328588,60.441074,22.249105,2127.2023763011175], - ["1_1",328589,60.441023,22.249131,2133.0720556310584], - ["1_1",328590,60.441074,22.249105,2138.9417349609994], - ["1_1",328591,60.441775,22.250456,2246.414889397379], - ["1_1",328592,60.442410,22.251719,2345.2797739482894], - ["1_1",328593,60.442429,22.251760,2348.3587005092554], - ["1_1",328594,60.442359,22.251793,2356.3660010482977], - ["1_1",328595,60.442429,22.251760,2364.37330158734], - ["1_1",328596,60.442662,22.252254,2401.8463999089972], - ["1_1",328597,60.442746,22.252579,2421.9607734228975], - ["1_1",328598,60.443354,22.254197,2533.4648612065675], - ["1_1",328599,60.443380,22.254277,2538.7169193465], - ["1_1",328600,60.443809,22.255605,2625.722579743587], - ["1_1",328601,60.443719,22.255634,2635.8882770149116], - ["1_1",328602,60.443809,22.255605,2646.053974286236], - ["1_1",328603,60.443968,22.256096,2678.2689910104996], - ["1_1",328604,60.444044,22.256335,2693.8571430187317], - ["1_1",328605,60.444774,22.258504,2837.7980444995965], - ["1_1",328606,60.445161,22.257934,2890.95855019075], - ["1_1",328607,60.445311,22.257727,2911.123882464047], - ["1_1",328608,60.445348,22.257662,2916.5645357288113], - ["1_1",328609,60.445391,22.257590,2922.762462860799], - ["1_1",328610,60.445465,22.257488,2932.7070137657615], - ["1_1",328611,60.445507,22.257426,2938.481596840134], - ["1_1",328612,60.445875,22.256952,2986.934219416446], - ["1_1",328613,60.446218,22.256460,3033.656207594915], - ["1_1",328614,60.446295,22.256513,3042.630988665064], - ["1_1",328615,60.446218,22.256460,3051.6057697352126], - ["1_1",328616,60.446863,22.255535,3139.366653785946], - ["1_1",328617,60.446863,22.255535,3139.366653785946], - ["1_1",328618,60.447070,22.256120,3178.798207212094], - ["1_1",328619,60.447036,22.256132,3182.578048877396], - ["1_1",328620,60.447070,22.256120,3186.3578905426984], - ["1_1",328621,60.447647,22.257752,3296.454670010319], - ["1_1",328622,60.448255,22.259435,3410.802510107247], - ["1_1",328623,60.448312,22.259644,3423.8931713717316], - ["1_1",328624,60.448502,22.260189,3460.49597362257], - ["1_1",328625,60.448387,22.260229,3473.504539339884], - ["1_1",328626,60.448502,22.260189,3486.513105057198], - ["1_1",328627,60.448643,22.260591,3513.5297429287293], - ["1_1",328628,60.448666,22.260669,3518.5108370853645], - ["1_1",328629,60.448693,22.260774,3525.0017842060597], - ["1_1",328630,60.448906,22.261588,3575.5084018928146], - ["1_1",328631,60.449379,22.262878,3663.5974463059997], - ["1_1",328632,60.449336,22.262894,3668.4317896174402], - ["1_1",328633,60.449379,22.262878,3673.266132928881], - ["1_1",328634,60.449672,22.263677,3727.8535545089367], - ["1_1",328635,60.449672,22.263677,3727.8535545089367], - ["1_1",328636,60.449785,22.263971,3748.2786059647296], - ["1_1",328637,60.450284,22.265419,3845.088115221394], - ["1_1",328638,60.449931,22.264397,3913.467311644686], - ["1_1",328639,60.450536,22.266148,4030.66771626371], - ["1_1",328640,60.450508,22.266272,4038.14357349099], - ["1_1",328641,60.450508,22.266272,4038.14357349099], - ["1_1",328642,60.450508,22.266272,4038.14357349099], - ["1_1",328643,60.450557,22.266208,4044.6206362169187], - ["1_1",328644,60.450693,22.266598,4070.807803673754], - ["1_1",328645,60.450851,22.267058,4101.478420419723], - ["1_1",328646,60.450918,22.267255,4114.6119935585075], - ["1_1",328647,60.451021,22.267555,4134.684026871269], - ["1_1",328648,60.451064,22.267681,4143.0638035711245], - ["1_1",328649,60.451147,22.267923,4159.194908599167], - ["1_1",328650,60.451295,22.268355,4188.011644858626], - ["1_1",328651,60.451333,22.268468,4195.583227587955], - ["1_1",328652,60.451301,22.268595,4203.394754383153], - ["1_1",328653,60.451301,22.268595,4203.394754383153] - ] -} \ No newline at end of file diff --git a/templates/internal/base.html b/templates/internal/base.html index 4544a456d9cb92ffe31ec391d3f3d69868eb20cf..4717e66a66c23e452dbdf106b7c426413d4b28c1 100644 --- a/templates/internal/base.html +++ b/templates/internal/base.html @@ -183,7 +183,8 @@ }).modal(); }; - this.on('click', 'a[href^="http"]:not([href*="{{ request.host }}"])', handler); + // the to slashes are for the benefit of urls that contain refering URI in the query string + this.on('click', 'a[href^="http"]:not([href*="//{{ request.host }}"])', handler); this.data('links-disabled', true); return this; };