1(function(global, $) { 2 var originalNav = $('.ccm-responsive-navigation'); 3 if(!($('.ccm-responsive-overlay').length)) { 4 $('body').append('<div class="ccm-responsive-overlay"></div>'); 5 } 6 var clonedNavigation = originalNav.clone(); 7 $(clonedNavigation).removeClass('original'); 8 $(clonedNavigation).find("*").each(function(){ 9 var t=$(this).attr('id'); 10 if (t!==undefined && t !==null &&t !=="") { 11 $(this).attr('id',"cloned-ccm-ro_"+t) 12 } 13 }); 14 $('.ccm-responsive-overlay').append(clonedNavigation); 15 $('.ccm-responsive-menu-launch').click(function(){ 16 $('.ccm-responsive-menu-launch').toggleClass('responsive-button-close'); // slide out mobile nav 17 $('.ccm-responsive-overlay').slideToggle(); 18 }); 19 $('.ccm-responsive-overlay ul li').children('ul').hide(); 20 $('.ccm-responsive-overlay li').each(function(index) { 21 if($(this).children('ul').size() > 0) { 22 $(this).addClass('parent-ul'); 23 } else { 24 $(this).addClass('last-li'); 25 } 26 }); 27 $('.ccm-responsive-overlay .parent-ul a').click(function(event) { 28 if(!($(this).parent('li').hasClass('last-li'))) { 29 $(this).parent('li').siblings().children('ul').hide(); 30 if($(this).parent('li').children('ul').is(':visible')) { 31 } else { 32 $(this).next('ul').show(); 33 event.preventDefault(); 34 } 35 } 36 }); 37})(window, $);
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.