1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10/* 11@Name: Horizontal Multilevel Menu with WP MegaMenu Support 12@Author: Muffin Group 13@WWW: www.muffingroup.com 14@Version: 2.0 15*/ 16 17;(function($){ 18 $.fn.extend({ 19 muffingroup_menu: function(options) { 20 var menu = $(this); 21 22 var defaults = { 23 addLast : false, 24 animation : 'fade', 25 arrows : false, 26 delay : 100, 27 hoverClass : 'hover' 28 }; 29 options = $.extend(defaults, options); 30 31 // .submenu -------------------------- 32 menu.find("li:has(ul)") 33 .addClass("submenu") 34 .append("<span class='menu-toggle'>") // responsive menu toggle 35 ; 36 37 // .mfn-megamenu-parent ------------- 38 menu.children("li:has(ul.mfn-megamenu)").addClass("mfn-megamenu-parent"); 39 40 // .last-item - submenu ------------- 41 $(".submenu ul li:last-child", menu).addClass("last-item"); 42 43 // options.addLast ------------------ 44 if(options.addLast) { 45 $("> li:last-child", menu) 46 .addClass("last") 47 .prev() 48 .addClass("last"); 49 } 50 51 // options.arrows ------------------- 52 if( options.arrows ) { 53 menu.find( "li ul li:has(ul) > a" ).append( "<i class='menu-arrow icon-right-open'></i>" ); 54 } 55 56 // .hover() ------------------------- 57 menu.find("> li, ul:not(.mfn-megamenu) li").hover(function() { 58 $(this).stop(true,true).addClass(options.hoverClass); 59 if (options.animation === "fade") { 60 $(this).children("ul").stop(true,true).fadeIn(options.delay); 61 } else if (options.animation === "toggle") { 62 $(this).children("ul").stop(true,true).slideDown(options.delay); 63 } 64 }, function(){ 65 $(this).stop(true,true).removeClass(options.hoverClass); 66 if (options.animation === "fade") { 67 $(this).children("ul").stop(true,true).fadeOut(options.delay); 68 } else if (options.animation === "toggle") { 69 $(this).children("ul").stop(true,true).slideUp(options.delay); 70 } 71 }); 72 73 } 74 }); 75})(jQuery); 76}
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.