mirror of
https://github.com/cjdenio/uta-trax-api.git
synced 2026-10-03 16:06:19 +00:00
fix headsign issue
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -273,6 +273,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="module" src="/js/main.js?v=1"></script>
|
<script type="module" src="/js/main.js?v=2"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
+1
-1
@@ -168,7 +168,7 @@ function renderVehicle(vehicle) {
|
|||||||
icon: renderVehicleIcon(vehicle),
|
icon: renderVehicleIcon(vehicle),
|
||||||
})
|
})
|
||||||
.bindPopup(
|
.bindPopup(
|
||||||
`<b>${routeDesignator(vehicle.route)}</b> to <b>${vehicle.headsign.replace(
|
`<b>${routeDesignator(vehicle.route)}</b> to <b>${vehicle.headsign?.replace(
|
||||||
/^to /i,
|
/^to /i,
|
||||||
""
|
""
|
||||||
)}</b>${vehicle.nearest_station ? `<br />@ ${vehicle.nearest_station?.name}` : ""}<br /><br /><small>vehicle #: ${vehicle.id}</small>`
|
)}</b>${vehicle.nearest_station ? `<br />@ ${vehicle.nearest_station?.name}` : ""}<br /><br /><small>vehicle #: ${vehicle.id}</small>`
|
||||||
|
|||||||
Reference in new issue
Block a user