about and new lib
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user