From 017b8823a2a8b4d7071c23c86ed9f1a65fdee70b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 13 Oct 2020 21:11:17 +0200 Subject: [PATCH] js: remove unused js/menu.js Signed-off-by: Sebastiaan van Stijn --- README.md | 2 +- _includes/body.html | 1 - js/menu.js | 16 ---------------- 3 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 js/menu.js diff --git a/README.md b/README.md index 3e5edc526d..48e5dd96ab 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/_includes/body.html b/_includes/body.html index d6093baa0b..a8c387be47 100644 --- a/_includes/body.html +++ b/_includes/body.html @@ -89,7 +89,6 @@ - diff --git a/js/menu.js b/js/menu.js deleted file mode 100644 index 8fdbe43014..0000000000 --- a/js/menu.js +++ /dev/null @@ -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);