mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-15 08:53:43 +08:00
9bf387e709
Fixed logo/search overlap by aligning responsive breakpoints and preventing logo shrink. Mobile search expands across the bar; closing it restores controls and keyboard focus. Parked uses a small icon on phones, with an accessible label; desktop retains the text. Verified no overlaps or page overflow at nine widths, from 320px to 1440px.
16 lines
610 B
JavaScript
16 lines
610 B
JavaScript
const status = document.getElementById("galaxy-boot")
|
|
const message = status.querySelector("p")
|
|
const retry = status.querySelector("button")
|
|
retry.addEventListener("click", () => location.reload())
|
|
function failed() {
|
|
message.textContent = "Galaxy could not finish opening. Check your connection and try again."
|
|
status.classList.add("gx-boot--failed")
|
|
retry.hidden = false
|
|
}
|
|
const timer = setTimeout(failed, 10000)
|
|
import("./app.js").then(() => {
|
|
clearTimeout(timer)
|
|
if (document.querySelector("#galaxy-app .gx-app")) status.remove()
|
|
else failed()
|
|
}).catch(() => { clearTimeout(timer); failed() })
|