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

@@ -25,6 +25,13 @@ export async function unhideElementById(document: Document, e: string) {
}
}
export async function hideElementById(document: Document, e: string) {
var element = document.getElementById(e);
if (element) {
element.classList.add('hidden-before-load');
}
}
export async function getEvent(id: string): Promise<EventData> {
const res = await fetch("/api/events/" + id);
if (!res.ok) {