1jQuery(document).ready(function() { 2 3 var winwidth = jQuery( window ).width(); 4 5// jQuery.each(jQuery(".stand_menu_ul>.menu-item-has-children"), function(index, element) { 6// var subMenu = jQuery(element).children('ul'), 7// tl; 8// 9// if(subMenu.length != 0) { 10// tl = new TimelineLite({paused:true}); 11// 12// tl.from(subMenu, .2, {height:0, autoAlpha: 0}); 13// 14// element.subMenuAnimation = tl; 15// 16// jQuery(element).hover(menuItemOver, menuItemOut); 17// } 18// }); 19// 20// function menuItemOver(e) { 21// this.subMenuAnimation.play(); 22// } 23// 24// function menuItemOut() { 25// this.subMenuAnimation.reverse(); 26// } 27 28 //begin fancy mobile menu 29 if (winwidth < 576 ) { 30 31 let mobile_menu = gsap.timeline({ 32 scrollTrigger: { 33 trigger: "#site_content", 34 toggleActions: "play none none none", 35 start: "top top", 36 end: "bottom bottom", 37 onUpdate: (self) => { 38 if(self.direction == -1){ 39 mobile_menu.reverse(); 40 } else if (self.direction == 1){ 41 mobile_menu.play(); 42 } 43 } 44 45 } 46 }); 47 48 mobile_menu.to("#fancy_menu_items", { duration: 1, bottom: -400 }); 49 50 }//end width check 51 52 //Begin Mobile Menu 53 var mobilemenu_tml = gsap.timeline(); 54 mobilemenu_tml.set(jQuery('body'), {overflow: 'hidden'}) 55 mobilemenu_tml.set(jQuery('#mobile_jr_menu'), {display: 'flex'}) 56 mobilemenu_tml.from(jQuery('.inner_jr_mobile'), .75, {x:'+=400'}); 57 mobilemenu_tml.pause(); 58 59 jQuery( ".links_mm_1" ).each(function( index, element ) { 60 var activeout = gsap.timeline({paused:true}); 61 activeout.to(jQuery( this ).find( '.active' ), .5, {autoAlpha:1}) 62 .to(jQuery( this ).find( '.img_collapsed' ), .5, {autoAlpha:0}, 0); 63 64 element.animation = activeout; 65 }); 66 67 jQuery( ".links_mm_1" ).click(function() { 68 69 70 if ( jQuery( this ).hasClass( "collapsed" ) ) { 71 72 73 jQuery( ".links_mm_1" ).each(function( ) { 74 this.animation.reverse(); 75 }); 76 77 this.animation.play(); 78 79 } else { 80 81 this.animation.reverse(); 82 83 } 84 85 }); 86 87 jQuery("#mobile_jr_menu").click 88 ( 89 function(e) { 90 if(jQuery(e.target).closest('.inner_jr_mobile').length == 0) { 91 { 92 mobilemenu_tml.reverse(); 93 } 94 }}); 95 96 97 jQuery('#jr_menu_mobile').click(function() { 98 mobilemenu_tml.play(); 99 }); 100 101 jQuery("#mobile_m_close").click(function(e) { 102 mobilemenu_tml.reverse(); 103 }); 104 105});
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.