From 4f1632022241fcd75285b14dd7576d1444f23e72 Mon Sep 17 00:00:00 2001 From: bkop-ds <84399410+bkop-ds@users.noreply.github.com> Date: Tue, 28 Nov 2023 12:10:06 -0500 Subject: [PATCH] Issue #156 --- confluence.js | 12 ++++++++++++ src/components/navBarMenuItems.js | 8 ++++++++ src/pages/dataRequest.js | 9 +-------- src/shared.js | 9 +++++++++ 4 files changed, 30 insertions(+), 8 deletions(-) diff --git a/confluence.js b/confluence.js index e1e8a4e..c2d800d 100644 --- a/confluence.js +++ b/confluence.js @@ -78,6 +78,7 @@ import { footerTemplate } from "./src/components/footer.js"; import { renderDescription, renderDescriptionNotSignedIn } from "./src/pages/description.js"; import { dataDictionaryTemplate } from "./src/pages/dictionary.js"; import { showPreview } from "./src/components/boxPreview.js"; +import { confluenceEventsPage, eventsBody } from './src/pages/events.js'; /** * 1. add Scientifix comitte to menu @@ -662,6 +663,17 @@ const manageHash = async () => { confluenceResources(); hideAnimation(); } + else if(hash === '#events/meetings') { + const element = document.getElementById('events'); + if(!element) return; + if(element.classList.contains('navbar-active')) return; + assignNavbarActive(element, 1); + document.title = 'Confluence - Events'; + showAnimation(); + confluenceDiv.innerHTML = confluenceEventsPage(); + await eventsBody(); + hideAnimation(); +} // else if (hash === "#contact") { // const element = document.getElementById("contactBCRPP"); // if (!element) return; diff --git a/src/components/navBarMenuItems.js b/src/components/navBarMenuItems.js index 75af6c1..e075f83 100644 --- a/src/components/navBarMenuItems.js +++ b/src/components/navBarMenuItems.js @@ -19,6 +19,14 @@ export const navBarMenutemplate = () => { BCRPP GitHub +