base tag broke the csv fetch

This commit is contained in:
steven 2025-04-17 09:55:52 -04:00
parent 47d21fd1a9
commit e9a0b1247f

View file

@ -8,7 +8,7 @@
<link rel="icon" href="bus.svg" type="image/svg+xml"> <link rel="icon" href="bus.svg" type="image/svg+xml">
<script src="https://static.stevenalexander.org/leaflet/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script> <script src="https://static.stevenalexander.org/leaflet/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<link rel="stylesheet" href="https://static.stevenalexander.org/leaflet/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" /> <link rel="stylesheet" href="https://static.stevenalexander.org/leaflet/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
<base href="https://tarc.rideralerts.com/InfoPoint/Minimal/Departures/ForStop" target="_blank"> <base target="_blank">
<style>html,body{height:100%;margin:0;}#map{height:100vh;}</style> <style>html,body{height:100%;margin:0;}#map{height:100vh;}</style>
</head> </head>
<body> <body>
@ -17,7 +17,7 @@
let map=L.map("map",{center:[38.2,-85.75],zoom:13,layers:[L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png")]}); let map=L.map("map",{center:[38.2,-85.75],zoom:13,layers:[L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png")]});
let stops={{stops}}; let stops={{stops}};
for (stop in stops){ for (stop in stops){
L.circle(stops[stop]).bindPopup(`<a href="?stopId=${stop}">Stop #${stop}</a>`).addTo(map) L.circle(stops[stop]).bindPopup(`<a href="https://tarc.rideralerts.com/InfoPoint/Minimal/Departures/ForStop?stopId=${stop}">Stop #${stop}</a>`).addTo(map)
} }
let layerControl=L.control.layers().addTo(map); let layerControl=L.control.layers().addTo(map);
let busLayers={},busMarkers={}; let busLayers={},busMarkers={};