1jQuery(document).ready(function($) { 2 3/* Dropdown menu animation 4/* ------------------------------------ */ 5 $('.menu-bar ul ul.children').hide(); 6 $('.menu-bar ul li').hover( 7 function() { 8 $(this).children('ul.children').slideDown('medium'); 9 }, 10 function() { 11 $(this).children('ul.children').hide(); 12 } 13 ); 14 15/* Mobile menu smooth toggle height 16/* ------------------------------------ */ 17 $('.menu-toggle').on('click', function() { 18 $('.menu-toggle').toggleClass('active'); 19 slide($('.menu-bar > ul', $(this).parent())); 20 }); 21 22 function slide(content) { 23 var wrapper = content.parent(); 24 var contentHeight = content.outerHeight(true); 25 var wrapperHeight = wrapper.height(); 26 27 wrapper.toggleClass('menu-expand'); 28 if (wrapper.hasClass('menu-expand')) { 29 setTimeout(function() { 30 wrapper.addClass('transition').css('height', contentHeight); 31 }, 10); 32 } 33 else { 34 setTimeout(function() { 35 wrapper.css('height', wrapperHeight); 36 setTimeout(function() { 37 wrapper.addClass('transition').css('height', 0); 38 }, 10); 39 }, 10); 40 } 41 42 wrapper.one('transitionEnd webkitTransitionEnd transitionend oTransitionEnd msTransitionEnd', function() { 43 if(wrapper.hasClass('open')) { 44 wrapper.removeClass('transition').css('height', 'auto'); 45 } 46 }); 47 } 48});
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.