Skip to content

Commit 1a8656c

Browse files
committed
Added back button on station card load
1 parent 7c567dd commit 1a8656c

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

assets/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,11 @@ input:-webkit-autofill:active{
645645
font-size: 0.8rem;
646646
box-shadow: 0px 4px 6px 0px var(--shadow-black);
647647
}
648+
.station-card #backButton {
649+
margin: 2dvh 0 0 2dvh;
650+
color: var(--shadow-black);
651+
font-size: calc(2dvh);
652+
}
648653
/* #endregion */
649654

650655
/* #region Login menu */

scripts/stations.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ async function openStationMenu(stationSerialNumber) {
101101
if (navigationActive) menu.style.zIndex = 99;
102102

103103
// show loading animation
104-
menu.innerHTML = `<img src="assets/images/mGira_spinning.gif" id="spinner">`;
104+
menu.innerHTML = `
105+
<div id="backButton" onclick="hideStationMenu()"><i class="bi bi-arrow-90deg-left"></i></div>
106+
<img src="assets/images/mGira_spinning.gif" id="spinner">
107+
`;
105108

106109
// get list of available bikes and docks
107110
const bikeAndDocks = await getBikesAndDocks(stationSerialNumber);

0 commit comments

Comments
 (0)