|
|
@ -56,6 +56,7 @@ export const loadLangSelector = (page: string) => {
|
|
|
|
localStorage.setItem("timefmt", fmt);
|
|
|
|
localStorage.setItem("timefmt", fmt);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const t12 = document.getElementById("lang-12h") as HTMLInputElement;
|
|
|
|
const t12 = document.getElementById("lang-12h") as HTMLInputElement;
|
|
|
|
|
|
|
|
if (typeof(t12) !== "undefined" && t12 != null) {
|
|
|
|
t12.onchange = () => setTimefmt("12h");
|
|
|
|
t12.onchange = () => setTimefmt("12h");
|
|
|
|
const t24 = document.getElementById("lang-24h") as HTMLInputElement;
|
|
|
|
const t24 = document.getElementById("lang-24h") as HTMLInputElement;
|
|
|
|
t24.onchange = () => setTimefmt("24h");
|
|
|
|
t24.onchange = () => setTimefmt("24h");
|
|
|
@ -69,6 +70,7 @@ export const loadLangSelector = (page: string) => {
|
|
|
|
t12.checked = false;
|
|
|
|
t12.checked = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
let queryString = new URLSearchParams(window.location.search);
|
|
|
|
let queryString = new URLSearchParams(window.location.search);
|
|
|
|
if (queryString.has("lang")) queryString.delete("lang");
|
|
|
|
if (queryString.has("lang")) queryString.delete("lang");
|
|
|
|
_get("/lang/" + page, null, (req: XMLHttpRequest) => {
|
|
|
|
_get("/lang/" + page, null, (req: XMLHttpRequest) => {
|
|
|
|