1 2(function(){ 3var navAnchor = document.querySelectorAll(".side-menu .has-child button"); 4 for (var i = 0; i < navAnchor.length; i++) { 5 var element = navAnchor[i]; 6 7 element.addEventListener("click", function(e) { 8 var el = this; 9 var li = el.closest('li'); 10 a = prev(el, 'a'); 11 if(a.classList.contains('current-menu-ancestor')){ 12 a.classList.remove('current-menu-ancestor'); 13 }else{ 14 li.classList.toggle('open'); 15 } 16 17 18 }); 19 } 20})(); 21(function($){ 22 $('#viv-main-content table').wrap('<div class="c-wysiwyg__table-wrapper"></div>'); 23 $('#show-mobile-nav').click(function(){ 24 $(this).closest('nav').toggleClass('open'); 25 }); 26 27 $('#back-to-top2').click(function(){ 28 $('html, body').animate({ scrollTop: 0}); 29 }); 30 $('.site-search').click(function(e){ 31 e.preventDefault(); 32 $('#search-modal').fadeIn(); 33 $('#search-modal #s').focus(); 34 $("#search-modal").addClass("in"); 35 $('body').addClass('noscroll'); 36 }); 37 $(document).on('keydown','.ml-auto > li > a',function(e){ 38 if(e.keyCode == 13){ 39 $('.ml-auto > li').removeClass('open'); 40 $(this).closest('li').toggleClass('open'); 41 e.preventDefault(); 42 } 43 }); 44 $(document).on('keyup',function(e){ 45 if(e.keyCode == 27){ 46 $('.ml-auto > li').removeClass('open'); 47 e.preventDefault(); 48 } 49 }); 50 $(window).keyup(function (e) { 51 var code = (e.keyCode ? e.keyCode : e.which); 52 if (code == 9 && $('.ml-auto > li > a:focus,#menu-top-menu-links > li > a:focus,#page-title-block a:focus,#BannerMyBtn:focus').length) { 53 $('.ml-auto > li').removeClass('open'); 54 } 55 }); 56 /*$('.ml-auto > li > a').on('focus', function(e){ 57 $(window).keyup(function (e) { 58 var code = (e.keyCode ? e.keyCode : e.which); 59 if (code == 9) { 60 61 } 62 }); 63 })*/; 64})(jQuery); 65 66function prev(el, selector) { 67 const prevEl = el.previousElementSibling; 68 if (!selector || (prevEl && prevEl.matches(selector))) { 69 return prevEl; 70 } 71 return null; 72}
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.