mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 05:30:13 +01:00
feat: front-end date ranges support
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user