1$(document).ready(function() { 2 3 const navExpand = [].slice.call(document.querySelectorAll('.nav-expand')) 4 const backLink = '<li class="nav-item"><a class="nav-link nav-back-link" href="javascript:;"></a></li>' 5 6 navExpand.forEach(item => { 7 item.querySelector('.nav-expand-content').insertAdjacentHTML('afterbegin', backLink) 8 item.querySelector('.nav-link').addEventListener('click', function() { 9 item.classList.add('active'); 10 $('.menu_cover').css('pointer-events', 'none'); 11 } ) 12 item.querySelector('.nav-back-link').addEventListener('click', function(){ 13 item.classList.remove('active'); 14 $('.menu_cover').css('pointer-events', ''); 15 } ) 16 }) 17 18 19// --------------------------------------- 20// not-so-important stuff starts here 21 const ham = document.getElementById('ham') 22 ham.addEventListener('click', function() { 23 $('.nav-drill').css('display', 'block'); 24 document.body.classList.toggle('nav-is-toggled'); 25 }) 26 27 const closeham = document.getElementById('closeham') 28 closeham.addEventListener('click', function() { 29 document.body.classList.toggle('nav-is-toggled') 30 }) 31});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.