js: remove unused js/menu.js

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-10-13 21:11:17 +02:00
parent 68911c8d45
commit 017b8823a2
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
3 changed files with 1 additions and 18 deletions

View File

@ -184,7 +184,7 @@ Either way, you can now access the docs at port 4000 on your Docker host.
## Important files
- `/_data/toc.yaml` defines the left-hand navigation for the docs
- `/js/menu.js` defines most of the docs-specific JS such as TOC generation and menu syncing
- `/js/docs.js` defines most of the docs-specific JS such as TOC generation and menu syncing
- `/css/style.scss` defines the docs-specific style rules
- `/_layouts/docs.html` is the HTML template file, which defines the header and footer, and includes all the JS/CSS that serves the docs content

View File

@ -89,7 +89,6 @@
</footer>
<script>const pageURL = "{{ page.url }}";</script>
<script defer src="/js/anchorlinks.js"></script>
<script defer src="/js/menu.js"></script>
<script src="/js/jquery.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script defer src="/js/metadata.js"></script>

View File

@ -1,16 +0,0 @@
function hookupTOCEvents() {
$('.expand-menu').on('click', function(elem) {
var menu = elem.currentTarget.parentElement
if (menu.classList.contains("menu-closed")) {
menu.classList.remove("menu-closed")
menu.classList.add("menu-open")
} else {
menu.classList.add("menu-closed")
menu.classList.remove("menu-open")
}
return false;
});
$(".left-off-canvas-menu").css("display","block");
}
$(document).ready(hookupTOCEvents);