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