From 8b4dba5f0cec54b3d36c7f2484ccbf08795630dc Mon Sep 17 00:00:00 2001 From: Matthew Stone Date: Tue, 29 Aug 2023 12:39:29 -0500 Subject: [PATCH] removed the js for the custom mobile nav --- docs/javascripts/alcf-extra.js | 62 +++++++++++++++++----------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/docs/javascripts/alcf-extra.js b/docs/javascripts/alcf-extra.js index edad8a0f6..66875b17a 100644 --- a/docs/javascripts/alcf-extra.js +++ b/docs/javascripts/alcf-extra.js @@ -96,48 +96,48 @@ if (dropdowns.length > 0) { -// Include the mobile dropdowns (unlike above, just writing it all here) -// ---------------------------------------------------------------------------- +// // Include the mobile dropdowns (unlike above, just writing it all here) +// // ---------------------------------------------------------------------------- -// open/close the big pane -var mobileOpen = document.getElementById('js-mobileOpen'); -var mobileClose = document.getElementById('js-mobileClose'); -var mobileMenu = document.getElementById('js-mobileMenu'); +// // open/close the big pane +// var mobileOpen = document.getElementById('js-mobileOpen'); +// var mobileClose = document.getElementById('js-mobileClose'); +// var mobileMenu = document.getElementById('js-mobileMenu'); -mobileOpen.addEventListener("click", function(e) { - mobileMenu .classList.replace("menu--closed", "menu--open"); -}); +// mobileOpen.addEventListener("click", function(e) { +// mobileMenu .classList.replace("menu--closed", "menu--open"); +// }); -mobileClose.addEventListener("click", function(e) { - mobileMenu .classList.replace("menu--open", "menu--closed"); -}); +// mobileClose.addEventListener("click", function(e) { +// mobileMenu .classList.replace("menu--open", "menu--closed"); +// }); -// open/close individual menus +// // open/close individual menus -var drawerHeads = document.getElementsByClassName('drawer-head'); +// var drawerHeads = document.getElementsByClassName('drawer-head'); -Array.prototype.forEach.call(drawerHeads, function(head){ +// Array.prototype.forEach.call(drawerHeads, function(head){ - head.addEventListener("click", function(e){ - var mobmenu = head.dataset.mobmenu; - mobmenu = document.getElementById(mobmenu); - var arrow = this.querySelector(".drawer-arrow"); - - if (mobmenu.classList.contains('menu--closed')) { - mobmenu.classList.remove('menu--closed'); - arrow.innerHTML = "▲" - } - else { - mobmenu.classList.add('menu--closed'); - arrow.innerHTML = "▼" - } +// head.addEventListener("click", function(e){ +// var mobmenu = head.dataset.mobmenu; +// mobmenu = document.getElementById(mobmenu); +// var arrow = this.querySelector(".drawer-arrow"); + +// if (mobmenu.classList.contains('menu--closed')) { +// mobmenu.classList.remove('menu--closed'); +// arrow.innerHTML = "▲" +// } +// else { +// mobmenu.classList.add('menu--closed'); +// arrow.innerHTML = "▼" +// } - }); -}); +// }); +// }); -// add listener to each of the links that toggles menus +// // add listener to each of the links that toggles menus