assets/js/just-the-docs.js in just-the-docs-0.1.0 vs assets/js/just-the-docs.js in just-the-docs-0.1.1

- old
+ new

@@ -11,17 +11,19 @@ function toggleNav(){ const nav = document.querySelector('.js-main-nav'); const auxNav = document.querySelector('.js-aux-nav'); const navTrigger = document.querySelector('.js-main-nav-trigger'); + const search = document.querySelector('.js-search'); addEvent(navTrigger, 'click', function(){ var text = navTrigger.innerText; var textToggle = navTrigger.getAttribute('data-text-toggle'); nav.classList.toggle('nav-open'); auxNav.classList.toggle('nav-open'); navTrigger.classList.toggle('nav-open'); + search.classList.toggle('nav-open'); navTrigger.innerText = textToggle; navTrigger.setAttribute('data-text-toggle', text); textToggle = text; }) }