1(function (mainNavigation, $, undefined) { 2 3 mainNavigation.init = function() { 4 var menu = $('.mainNav ul.sf-menu'), 5 menuContainer = menu.closest(".mainNav"), 6 mobileMenuLink = menuContainer.find(".menuLink"); 7 8 menu.superfish({ 9 delay: 700, 10 autoArrows: true, 11 dropShadows: false, 12 arrowClass: "icon-plus" 13 }); 14 15 menuContainer.on("click", ".menuLink", function (e) { 16 e.preventDefault(); 17 menu.toggleClass("showMenu"); 18 }).on("click", ".sf-sub-indicator", function (e) { 19 e.preventDefault(); 20 console.log(e); 21 $(e.target).closest("li").toggleClass("showSub"); 22 }); 23 24 }; 25 26 27}(window.mainNavigation = window.mainNavigation || {}, jQuery)); 28 29 30jQuery(function ($) { 31 // Initialize mainNavigation on dom ready 32 mainNavigation.init(); 33 34 BaseModule.addModuleRebindFunction("mainNavigation", mainNavigation.init); 35}); 36
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.