1/* 2 * Global.js 3 * 4 * @package streetsmartnutrition 5 * @author Lindsay Humes 6 * @since 1.0.0 7 * @license GPL-2.0+ 8*/ 9 10 11jQuery(function ($) { 12 13 // Mobile Menu 14 $('.menu-toggle').click(function () { 15 $('.search-toggle, .header-search, .search-close').removeClass('active'); 16 $('.menu-toggle, .drawer-nav').toggleClass('active'); 17 }); 18 $('.menu-item-has-children > a').click(function (e) { 19 $(this).parent().toggleClass('expanded'); 20 e.preventDefault(); 21 }); 22 $('.menu-item-has-children > .sub-menu-toggle').click(function (e) { 23 $(this).parent().toggleClass('expanded'); 24 e.preventDefault(); 25 }); 26 $('.menu-item-has-children > .submenu-expand').click(function (e) { 27 $(this).toggleClass('expanded'); 28 e.preventDefault(); 29 }); 30 // Search toggle 31 $('.search-toggle, .search-close').click(function () { 32 $('.search-toggle, .header-search, .search-close').toggleClass('active'); 33 $('.site-header .search-field').focus(); 34 }); 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.