feat: front-end date ranges support

This commit is contained in:
2025-06-02 07:10:08 +02:00
parent ae0fab301a
commit 80ad9db83d
5 changed files with 112 additions and 25 deletions

View File

@@ -15,6 +15,14 @@ export function unhideElementById(document, e) {
}
});
}
export function hideElementById(document, e) {
return __awaiter(this, void 0, void 0, function* () {
var element = document.getElementById(e);
if (element) {
element.classList.add('hidden-before-load');
}
});
}
export function getEvent(id) {
return __awaiter(this, void 0, void 0, function* () {
const res = yield fetch("/api/events/" + id);