diff --git a/package-lock.json b/package-lock.json index 54e035e..da6f51f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,7 +26,7 @@ "mailgen": "^2.0.28", "method-override": "^3.0.0", "moment": "^2.29.4", - "mongoose": "^7.0.3", + "mongoose": "^7.7.0", "mongoose-findorcreate": "^4.0.0", "netlify-lambda": "^2.0.16", "nodemailer": "^6.9.7", @@ -5775,9 +5775,10 @@ } }, "node_modules/mongodb": { - "version": "5.9.1", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.9.1.tgz", - "integrity": "sha512-NBGA8AfJxGPeB12F73xXwozt8ZpeIPmCUeWRwl9xejozTXFes/3zaep9zhzs1B/nKKsw4P3I4iPfXl3K7s6g+Q==", + "version": "5.9.2", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.9.2.tgz", + "integrity": "sha512-H60HecKO4Bc+7dhOv4sJlgvenK4fQNqqUIlXxZYQNbfEWSALGAwGoyJd/0Qwk4TttFXUOHJ2ZJQe/52ScaUwtQ==", + "license": "Apache-2.0", "dependencies": { "bson": "^5.5.0", "mongodb-connection-string-url": "^2.6.0", @@ -5824,13 +5825,14 @@ } }, "node_modules/mongoose": { - "version": "7.6.11", - "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-7.6.11.tgz", - "integrity": "sha512-/MBaeXqGxNaOgtlzhXgsV2TwpH2nU7ipqI1bGx/Q6IMo5OYh5CTBX2H8fpYD2BHKVMvIvIxfJIzeidqr6ieVhw==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-7.7.0.tgz", + "integrity": "sha512-+HcoN/hmkB5IjAqWYA2ZAQeExGD8FNMe6L/eTYB04gqp9S2ZEngVivGkdtGrA4BYRf0suH+3rMNFW2JPOqC4Mg==", + "license": "MIT", "dependencies": { "bson": "^5.5.0", "kareem": "2.5.1", - "mongodb": "5.9.1", + "mongodb": "5.9.2", "mpath": "0.9.0", "mquery": "5.0.0", "ms": "2.1.3", diff --git a/package.json b/package.json index 07fbb34..6f0105b 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "mailgen": "^2.0.28", "method-override": "^3.0.0", "moment": "^2.29.4", - "mongoose": "^7.0.3", + "mongoose": "^7.7.0", "mongoose-findorcreate": "^4.0.0", "netlify-lambda": "^2.0.16", "nodemailer": "^6.9.7", diff --git a/views/index.ejs b/views/index.ejs index 2b85ed2..27bd5c2 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -20,6 +20,9 @@ crossorigin="anonymous">
@@ -386,6 +495,34 @@ behavior: 'smooth' }); }); + document.addEventListener('click', function(event) { + const fabMenu = document.getElementById('nav-items'); + const fab = document.getElementById('fab'); + const isClickInside = fab.contains(event.target) || fabMenu.contains(event.target); + + if (!isClickInside) { + fabMenu.classList.remove('open'); + } +}); + +function toggleFabMenu() { + const fabMenu = document.getElementById('nav-items'); + fabMenu.classList.toggle('open'); +} + +function navigateTo(section, element) { + // Implement your navigation logic here + console.log(`Navigating to ${section}`); + highlightActiveItem(element); // Call to highlight the active item if needed +} + +function highlightActiveItem(element) { + const menuItems = document.querySelectorAll('.nav-item'); + menuItems.forEach(item => { + item.classList.remove('active'); + }); + element.classList.add('active'); +}