about and new lib

This commit is contained in:
Mateusz Gruszczyński
2026-08-15 23:20:20 +02:00
parent d4e64f4e50
commit 3dcb2c0829
7 changed files with 66 additions and 13 deletions
+5
View File
@@ -113,6 +113,7 @@ const resourcesPagination = document.querySelector("#resources-pagination");
let resourcesPage = 1;
let resourcesSearchTimer;
const profileDialog = document.querySelector("#profile-dialog");
const aboutDialog = document.querySelector("#about-dialog");
const profileForm = document.querySelector("#profile-form");
let currentSession = null;
@@ -405,6 +406,10 @@ function renderAccount(session) {
registerLink.hidden = !registrationEnabled;
}
document.querySelector("#footer-about")?.addEventListener("click", () => aboutDialog?.showModal());
document.querySelector("#close-about")?.addEventListener("click", () => aboutDialog?.close());
aboutDialog?.addEventListener("click", event => { if (event.target === aboutDialog) aboutDialog.close(); });
if (identityDialog) {
const authDialog = bindIdentityDialog({
dialog: identityDialog,