{"version":3,"file":"application-373159b9.js","sources":["../../../app/frontend/navbar.js"],"sourcesContent":["// When the user scrolls the page, execute myFunction\r\nwindow.onscroll = function() {myFunction()};\r\n\r\n// Get the navbar\r\nvar navbar = document.getElementById(\"navbar\");\r\n\r\n// Get the offset position of the navbar\r\nvar sticky = navbar.offsetTop;\r\n\r\n// Add the sticky class to the navbar when you reach its scroll position. Remove \"sticky\" when you leave the scroll position\r\nfunction myFunction() {\r\n if (window.pageYOffset >= sticky) {\r\n navbar.classList.add(\"sticky\")\r\n } else {\r\n navbar.classList.remove(\"sticky\");\r\n }\r\n}\r\nfunction openNav() {\r\n document.getElementById(\"mySidenav\").style.width = \"250px\";\r\n document.getElementById(\"main\").style.marginLeft = \"250px\";\r\n }\r\n \r\n /* Set the width of the side navigation to 0 and the left margin of the page content to 0 */\r\n function closeNav() {\r\n document.getElementById(\"mySidenav\").style.width = \"0\";\r\n document.getElementById(\"main\").style.marginLeft = \"0\";\r\n }"],"names":["myFunction","navbar","sticky"],"mappings":"AACA,OAAO,SAAW,UAAW,CAACA,EAAU,CAAE,EAG1C,IAAIC,EAAS,SAAS,eAAe,QAAQ,EAGzCC,EAASD,EAAO,UAGpB,SAASD,GAAa,CAChB,OAAO,aAAeE,EACxBD,EAAO,UAAU,IAAI,QAAQ,EAE7BA,EAAO,UAAU,OAAO,QAAQ,CAEpC"}