Edit File: themify.dropdown.min.js
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,d,b){a instanceof String&&(a=String(a));for(var e=a.length,c=0;c<e;c++){var f=a[c];if(d.call(b,f,c,a))return{i:c,v:f}}return{i:-1,v:void 0}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,d,b){a!=Array.prototype&&a!=Object.prototype&&(a[d]=b.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a}; $jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,d,b,e){if(d){b=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var c=a[e];c in b||(b[c]={});b=b[c]}a=a[a.length-1];e=b[a];d=d(e);d!=e&&null!=d&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:d})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,b){return $jscomp.findInternal(this,a,b).v}},"es6-impl","es3"); (function(a,d,b,e){function c(a,c){return/touch/.test(a.type)?(a.originalEvent||a).changedTouches[0]["page"+c]:a["page"+c]}function f(a){a.find(".sub-menu, .children").first().show().css("visibility","visible");a.addClass("dropdown-open").find("> a .sub-arrow").removeClass("closed").addClass("open");a.trigger("dropdown_open")}function k(a){a.find(".sub-menu, .children").first().hide().css("visibility","hidden");a.removeClass("dropdown-open").find("> a .sub-arrow").removeClass("open").addClass("closed"); a.trigger("dropdown_close")}a.fn.themifyDropdown=function(c){return this.each(function(){a(this).hasClass("with-sub-arrow")||a(this).addClass("with-sub-arrow").find("li.menu-item-has-children > a:not(.themify_lightbox), li.page_item_has_children > a:not(.themify_lightbox)").append('<span class="sub-arrow closed" />')})};var g,h;a("body").on("touchstart",".sub-arrow, .with-sub-arrow a",function(a){a.stopPropagation();g=c(a,"X");h=c(a,"Y")}).on("click touchend",".sub-arrow",function(b){b.stopPropagation(); if(20>Math.abs(c(b,"X")-g)&&20>Math.abs(c(b,"Y")-h)){b=a(this).closest("li");var d=a(this).parents(".dropdown-open");a(this).closest(".with-sub-arrow").find("li.dropdown-open").not(d).each(function(){k(a(this))});b.hasClass("dropdown-open")?k(b):f(b)}return!1}).on("click touchend",".with-sub-arrow a",function(b){if(20>Math.abs(c(b,"X")-g)&&20>Math.abs(c(b,"Y")-h)&&"#"===a(this).attr("href"))return b.stopPropagation(),a(this).find("> .sub-arrow").click(),!1})})(jQuery,window,document);
Back to File Manager