Utilizing JavaScript, I have successfully hidden the site map on every page of the website to ensure accessibility for browsers with disabled JavaScript. By implementing a JQuery toggle function, users can easily reveal the Site Map by clicking on a designated "Site Map" link located in the footer of each page.
However, I am facing an issue where the Site Map reverts back to being hidden whenever the user navigates to a different page. My goal is to maintain the visibility of the Site Map consistently across all pages.
In essence, I want the Site Map to remain hidden initially, but once the user toggles its visibility, it should stay visible as they navigate from one page to another until they choose to hide it again.