芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/cepali.edu.mx/wp-content/themes/edufication/assets/js/navigation.min.js
!function(n){var e,t,a,i,o,c;o=n(".main-navigation"),c=n("
",{class:"dropdown-toggle","aria-expanded":!1}).append(edufication_l10n.icon).append(n("
",{class:"screen-reader-text",text:edufication_l10n.expand})),o.find(".menu-item-has-children > a, .page_item_has_children > a").after(c),o.find(".current-menu-ancestor > button").addClass("toggled-on").attr("aria-expanded","true").find(".screen-reader-text").text(edufication_l10n.collapse),o.find(".current-menu-ancestor > .sub-menu").addClass("toggled-on"),o.find(".dropdown-toggle").click(function(e){var t=n(this),a=t.find(".screen-reader-text");e.preventDefault(),t.toggleClass("toggled-on"),t.next(".children, .sub-menu").toggleClass("toggled-on"),t.attr("aria-expanded","false"===t.attr("aria-expanded")?"true":"false"),a.text(a.text()===edufication_l10n.expand?edufication_l10n.collapse:edufication_l10n.expand)}),e=n("#masthead"),t=e.find(".menu-toggle"),a=e.find(".main-navigation"),i=e.find(".main-navigation > div > ul"),t.length&&(t.attr("aria-expanded","false"),t.on("click.edufication",function(){a.toggleClass("toggled-on"),n(this).attr("aria-expanded",a.hasClass("toggled-on"))})),function(){function e(){"none"===n(".menu-toggle").css("display")?(n(document.body).on("touchstart.edufication",function(e){n(e.target).closest(".main-navigation li").length||n(".main-navigation li").removeClass("focus")}),i.find(".menu-item-has-children > a, .page_item_has_children > a").on("touchstart.edufication",function(e){var t=n(this).parent("li");t.hasClass("focus")||(e.preventDefault(),t.toggleClass("focus"),t.siblings(".focus").removeClass("focus"))})):i.find(".menu-item-has-children > a, .page_item_has_children > a").unbind("touchstart.edufication")}i.length&&i.children().length&&("ontouchstart"in window&&(n(window).on("resize.edufication",e),e()),i.find("a").on("focus.edufication blur.edufication",function(){n(this).parents(".menu-item, .page_item").toggleClass("focus")}))}()}(jQuery);