Файловый менеджер - Редактировать - /var/www/html/wp-content/cache/minify/9427a.js
Назад
(function($){let thCompare={init:function(){thCompare.bind();thCompare.containerScroll();if(!$(".th-compare-output-wrap-inner").length){thCompare.openAndaddPopup("refresh",false);} thCompare.popupOpener();},popupOpener:function(){$(document).on("click",".th-footer-up-down",function(){let button=$(this);button.closest(".th-compare-footer-wrap").toggleClass("active");});$(document).on("click",".th-compare-footer-product-opner",function(e){e.preventDefault();let button=$(this);button.toggleClass("active");let popupWrap=$(".th-compare-output-wrap");if(popupWrap.hasClass("active")){popupWrap.addClass("th-compare-output-wrap-close").removeClass("active");$("body").removeClass("th_product_Compare_body_Class");}else{popupWrap.removeClass("th-compare-output-wrap-close").addClass("active");$("body").addClass("th_product_Compare_body_Class");}});},addProduct:function(e){e.preventDefault();let thisBtn=$(this);let getProductId=thisBtn.attr("data-th-product-id");if(parseInt(getProductId)){if(thisBtn.hasClass("th-added-compare")){if($(".product-table-configure").length&&$(".th-compare-footer-wrap").length&&$("[data-product-id='"+getProductId+"']").length){$(".th-compare-footer-wrap").addClass("active");return;}} thisBtn.addClass("loading");if(thisBtn.hasClass("th-single-page")){thCompare.getOrUpdatePRoducts(getProductId,"single_page",thisBtn);}else{thCompare.openAndaddPopup(getProductId,thisBtn);}}},removeProduct:function(e){e.preventDefault();let thisBtn=$(this);let getProductId=thisBtn.attr("data-th-product-id");if(parseInt(getProductId)){thisBtn.closest(".th-compare-output-wrap-inner").stop().animate({scrollTop:0},500,"swing",function(){});thisBtn.closest(".th-compare-output-wrap").addClass("th-loading");thCompare.getOrUpdatePRoducts(getProductId,"remove",thisBtn);}},openAndaddPopup:function(ids="",thisBtn){let ExistCompare=$("#th-compare-output-wrap");if(ExistCompare.length){ExistCompare.remove();} let html='<div class="thcompare-open-by-popup">';html+='<div class="th-compare-output-wrap th-loading" id="th-compare-output-wrap">';html+='<div class="th-compare-output-wrap-inner">';html+='<div class="th-compare-heading">';html+="<span class='heading_'>COMPARE PRODUCTS</span>";html+="<span class='error_'></span>";html+="<div class='th-compare-output-close'><i class='dashicons dashicons-no-alt'></i></div>";html+="</div>";html+=thCompare.loaderIcon();html+='<div class="th-compare-output-product">';html+="</div>";html+="</div>";html+="</div>";html+="</div>";if($(".thcompare-open-by-popup").length){$(".thcompare-open-by-popup").remove();} $("body").append(html);thCompare.getOrUpdatePRoducts(ids,"add",thisBtn);},getOrUpdatePRoducts:function(ids,action_,thisBtn=false){$(".thcompare-open-by-popup .th-compare-output-wrap").addClass("th-loading");$(".th-compare-footer-wrap").addClass("loading");$.ajax({method:"post",url:th_product.th_product_ajax_url,data:{action:"th_get_compare_product",product_id:ids,add_remove:action_,},dataType:"json",success:function(response){if(thisBtn){thisBtn.removeClass("loading");if(!thisBtn.hasClass("th-added-compare")){thisBtn.addClass("th-added-compare");}} if(response.no_product=="1"){let getWrap=$(".thcompare-open-by-popup");getWrap.find(">div").addClass("th-compare-output-wrap-close");setTimeout(()=>{getWrap.remove();$(".th-compare-footer-wrap").remove();$(".th-add-more-product-container").remove();},500);$("body").removeClass("th_product_Compare_body_Class");}else{$(".thcompare-open-by-popup .th-compare-output-product").html(response.html);if(response.footer_bar&&response.footer_bar!=""){let footer_bar=$(".th-compare-footer-wrap");if(footer_bar.length){footer_bar.remove();} $("body").append(response.footer_bar);$(".th-compare-footer-wrap > div").append(thCompare.loaderIcon());if(parseInt(ids)){setTimeout(()=>{$(".th-compare-footer-wrap").addClass("active");},500);}} if(response.product_limit){$(".th-compare-heading .error_").html(response.product_limit);} thCompare.containerScroll();$(".thcompare-open-by-popup .th-compare-output-wrap").removeClass("th-loading");}},});},removeCompare:function(){let closebtn=$(this);let getWrap=closebtn.closest(".thcompare-open-by-popup");getWrap.find(".th-compare-output-wrap").addClass("th-compare-output-wrap-close").removeClass("active");$(".th-compare-footer-product-opner").removeClass("active");$("body").removeClass("th_product_Compare_body_Class");},addMorePopup:function(e){e.preventDefault();let existContainer=$(".th-add-more-product-container");if(!existContainer.length){let popupAddMore='<div class="th-add-more-product-container active">';popupAddMore+='<div class="th-add-more-product-inner">';popupAddMore+='<div class="th-search-product">';popupAddMore+='<span class="remove_search_popup dashicons dashicons-no"></span>';popupAddMore+='<div class="th-search-product-input">';popupAddMore+='<input type="text" placeholder="Product Title...">';popupAddMore+="</div>";popupAddMore+='<div class="th-search-product-input-result">';popupAddMore+="</div>";popupAddMore+="</div>";popupAddMore+="</div>";popupAddMore+="</div>";$("body").append(popupAddMore);thCompare.footerSEarch();thCompare.removeAddmorePopup();}else{existContainer.addClass("active");}},removeAddmorePopup:function(){$(document).mouseup(function(e){let searchWrap=$(".th-add-more-product-container");let inner=searchWrap.find(".th-add-more-product-inner");if(!inner.is(e.target)&&inner.has(e.target).length===0){searchWrap.removeClass("active");}});$(document).on("click",".remove_search_popup",function(){let button_=$(this);let searchWrap=button_.closest(".th-add-more-product-container");searchWrap.removeClass("active");});},footerSEarch:function(){let container_=$(".th-add-more-product-container");if(container_.length){container_.find(".th-search-product-input >input").keyup(function(){let this_input=$(this);thCompare.addPRoduct(this_input);});}},addPRoduct:function(thisInput,type="keyup"){let addProductWrap=thisInput.closest(".th-add-more-product-inner");let putResult=addProductWrap.find(".th-search-product-input-result");let added_product_id=$(".th-compare-footer-wrap .product_image");addProductWrap.addClass("loading");let value_=thisInput.val();value_=value_.length>1?value_:"";let timeOutTimer=type=="keyup"?100:0;setTimeout(()=>{$.ajax({method:"post",url:th_product.th_product_ajax_url,data:{action:"th_compare_filter_product",inputs:value_,},dataType:"json",success:function(response){if(response.success&&response.data&&response.data.length>0){let list_="";response.data.map((key_)=>{let existId=added_product_id.find('[data-product-id="'+key_.id+'"]');let list_class=existId.length?"th-compare-external-popup-open checked":"th-compare-external-popup-open";let Wrapper_='<span class="'+list_class+'" data-id="'+key_.id+'">';if(key_.image_url!=0){Wrapper_+="<div class='img_'><img src='"+ key_.image_url+"'></div>";} Wrapper_+="<span>"+key_.label+"</span>";Wrapper_+="</span>";list_+=Wrapper_;});putResult.html(list_);addProductWrap.removeClass("loading");}},});},timeOutTimer);},addMorePopupClick:function(e){let thisBtn_=$(this);let productId=thisBtn_.attr("data-id");if(productId){thCompare.getOrUpdatePRoducts(productId,"add",thisBtn_);thisBtn_.addClass("checked");}},bind:function(){$(document).on("click",".th-product-compare-btn",thCompare.addProduct);$(document).on("click",".th-compare-product-remove[data-th-product-id]",thCompare.removeProduct);$(document).on("click",".thcompare-open-by-popup .th-compare-output-wrap .th-compare-output-close",thCompare.removeCompare);$(document).on("click",".th-add-product-bar",thCompare.addMorePopup);$(document).on("click",".th-compare-external-popup-open",thCompare.addMorePopupClick);},containerScroll:function(){let heading_=$(".th-compare-heading");if(heading_.length){let height_=heading_.outerHeight();$(".th-compare-output-wrap .th-compare-output-wrap-inner").css("padding-top",height_+"px");} const win_=$(window);let getWindowWidth=win_.innerWidth();if(getWindowWidth<450){$(".th-compare-output-wrap .th-compare-output-wrap-inner,.th-compare-footer-wrap").addClass("th-mobile-view");} let container_=$(".th-compare-output-product");let containerTable=$(".th-compare-output-product > table").innerWidth();if(containerTable>getWindowWidth){container_.css("cursor","grab");} if(!$(".th-mobile-view").length){container_.scroll(function(event){let container=$(this);let getLeft=container.scrollLeft();getLeft=getLeft>1?getLeft-1:getLeft;container.find("td.left-title").css("left",getLeft+"px");});} const slider=document.querySelector(".th-compare-output-product");if(slider){let isDown=false;let startX;let scrollLeft;slider.addEventListener("mousedown",(e)=>{isDown=true;slider.classList.add("active");startX=e.pageX-slider.offsetLeft;scrollLeft=slider.scrollLeft;});slider.addEventListener("mouseleave",()=>{isDown=false;slider.classList.remove("active");});slider.addEventListener("mouseup",()=>{isDown=false;slider.classList.remove("active");});slider.addEventListener("mousemove",(e)=>{if(!isDown)return;e.preventDefault();const x=e.pageX-slider.offsetLeft;const walk=(x-startX)*3;slider.scrollLeft=scrollLeft-walk;});}},loaderIcon:function(){return'<div class="th-compare-loader"><svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 32 32" height="32" viewBox="0 0 32 32" width="32"><path d="m16 6.001v2.999c0 .369.203.708.527.883.147.078.311.118.473.118.193 0 .387-.057.555-.168l6-4.001c.278-.186.445-.497.445-.831 0-.335-.167-.646-.445-.832l-6-4c-.307-.206-.703-.225-1.025-.05-.327.174-.53.513-.53.882v3c-6.617 0-12 5.383-12 12 0 .552.448 1 1 1s1-.448 1-1c0-5.515 4.486-10 10-10zm2-3.132 3.197 2.132-3.197 2.131zm9 12.132c-.552 0-1 .447-1 1 0 5.516-4.486 10-10 10v-3.001c0-.369-.203-.707-.528-.882s-.72-.155-1.026.05l-6 4c-.279.186-.446.498-.446.832s.167.646.445.832l6 4c.168.111.361.168.555.168.162 0 .324-.039.472-.118.325-.174.528-.513.528-.882v-3c6.617 0 12-5.383 12-11.999 0-.553-.448-1-1-1zm-13 14.13-3.197-2.131 3.197-2.131z" fill="#222"/></svg></div>';},};thCompare.init();})(jQuery); ;/*! * jQuery UI Menu 1.13.2 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(a){"use strict";return a.widget("ui.menu",{version:"1.13.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(e){var t=a(e.target),i=a(a.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(e){this._delay(function(){a.contains(this.element[0],a.ui.safeActiveElement(this.document[0]))||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(e){var t,i;this.previousFilter||e.clientX===this.lastMousePosition.x&&e.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:e.clientX,y:e.clientY},t=a(e.target).closest(".ui-menu-item"),i=a(e.currentTarget),t[0]!==i[0])||i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i))},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=a(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var t,i,s,n=!0;switch(e.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(e);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case a.ui.keyCode.HOME:this._move("first","first",e);break;case a.ui.keyCode.END:this._move("last","last",e);break;case a.ui.keyCode.UP:this.previous(e);break;case a.ui.keyCode.DOWN:this.next(e);break;case a.ui.keyCode.LEFT:this.collapse(e);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(e);break;case a.ui.keyCode.ESCAPE:this.collapse(e);break;default:t=this.previousFilter||"",s=n=!1,i=96<=e.keyCode&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),i===t?s=!0:i=t+i,t=this._filterMenuItems(i),(t=s&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(i=String.fromCharCode(e.keyCode),t=this._filterMenuItems(i)),t.length?(this.focus(e,t),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,t,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=a(this),t=e.prev(),i=a("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(e=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=a(this);s._isDivider(e)&&s._addClass(e,"ui-menu-divider","ui-widget-content")}),t=(i=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(t,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){var i;"icons"===e&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,s;this._hasScroll()&&(t=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,t=e.offset().top-this.activeMenu.offset().top-t-i,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),e=e.outerHeight(),t<0?this.activeMenu.scrollTop(i+t):s<t+e&&this.activeMenu.scrollTop(i+t-s+e))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var e=i?this.element:a(t&&t.target).closest(this.element.find(".ui-menu"));e.length||(e=this.element),this._close(e),this.blur(t),this._removeClass(e.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=e},i?0:this.delay)},_close:function(e){(e=e||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!a(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var s;(s=this.active?"first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[t]()),this.focus(i,s)},nextPage:function(e){var t,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(t=a(this)).offset().top-i-s<0}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var t,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(t=a(this)).offset().top-i+s}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||a(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)},_filterMenuItems:function(e){var e=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),t=new RegExp("^"+e,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return t.test(String.prototype.trim.call(a(this).children(".ui-menu-item-wrapper").text()))})}})}); ;/*! * jQuery UI Autocomplete 1.13.2 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","./core"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.13.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){var t;return!!e.length&&("inherit"===(t=e.prop("contentEditable"))?this._isContentEditable(e.parent()):"true"===t)}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete}); ;/*! This file is auto-generated */ /*! * imagesLoaded PACKAGED v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ !function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})), /*! * imagesLoaded v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n})); ;(function($){$.fn.openShopResponsiveMenu=function(options){var defaults={resizeWidth:'',animationSpeed:'fast',accoridonExpAll:false};var options=$.extend(defaults,options),opt=options,$resizeWidth=opt.resizeWidth,$animationSpeed=opt.animationSpeed,$expandAll=opt.accoridonExpAll,$aceMenu=$(this),$menuStyle=$(this).attr('data-menu-style');$aceMenu.find('ul').addClass("sub-menu");$aceMenu.find('ul.social-icon').removeClass("sub-menu");$aceMenu.find('ul').siblings('a').append('<span class="arrow"></span>');if($menuStyle=='accordion'){$(this).addClass('collapse');} if($(window).innerWidth()<=$resizeWidth){menuCollapse();} $(window).resize(function(){menuCollapse();$('body').removeClass('mobile-menu-active');$('body').removeClass('sticky-mobile-menu-active');});$('#menu-btn,#menu-btn-abv,#menu-btn-btm,#menu-btn-stk').click(function(e){e.stopPropagation();});$('body').click(function(evt){if(evt.target.class==".sider") return;if($(evt.target).closest('.sider').length) return;$('body').removeClass('mobile-menu-active');$('body').removeClass('sticky-mobile-menu-active');});function menuCollapse(){var w=$(window).innerWidth();if(w<=$resizeWidth){$aceMenu.find('li.menu-active').removeClass('menu-active');$aceMenu.find('ul.slide').removeClass('slide').removeAttr('style');$aceMenu.addClass('collapse hide-menu');$('.main-header .menu-toggle,.sticky-header .menu-toggle,.below-header .menu-toggle').show();$('.arrow').attr("tabindex","0");}else{$aceMenu.attr('data-menu-style',$menuStyle);$aceMenu.removeClass('collapse hide-menu').removeAttr('style');$('.main-header .menu-toggle,.sticky-header .menu-toggle,.below-header .menu-toggle').hide();if($aceMenu.attr('data-menu-style')=='accordion'){$aceMenu.addClass('collapse');return;} $aceMenu.find('li.menu-active').removeClass('menu-active');$aceMenu.find('ul.slide').removeClass('slide').removeAttr('style');}} return this.each(function(){$aceMenu.on('mouseover','> li a',function(){if($aceMenu.hasClass('collapse')===true){return false;} $(this).off('click','> li a');$(this).parent('li').siblings().children('.sub-menu').stop(true,true).removeClass('slide').removeAttr('style').stop();$(this).parent().addClass('menu-active').children('.sub-menu').addClass('slide');return;});$aceMenu.on('focus','> li a',function(){if($aceMenu.hasClass('collapse')===true){return false;} $(this).off('click','> li a');$(this).parent('li').siblings().children('.sub-menu').stop(true,true).removeClass('slide').removeAttr('style').stop();$(this).parent().addClass('menu-active').children('.sub-menu').addClass('slide');return;});$aceMenu.on('mouseleave','li',function(){if($aceMenu.hasClass('collapse')===true){return false;} $(this).off('click','> li a');$(this).removeClass('menu-active');$(this).children('ul.sub-menu').stop(true,true).removeClass('slide').removeAttr('style');return;});$aceMenu.on('click','li span.arrow',function(e){e.preventDefault();if($aceMenu.hasClass('collapse')==false){} $(this).off('mouseover','> li a');if($(this).parent().parent().hasClass('menu-active')){$(this).parent().parent().children('.sub-menu').slideUp().removeClass('slide');$(this).parent().parent().removeClass('menu-active');}else{if($expandAll==true){$(this).parent().parent().addClass('menu-active').children('.sub-menu').slideDown($animationSpeed).addClass('slide');return;}}});$aceMenu.on('keypress','li span.arrow',function(e){var w=$(window).innerWidth();if(w<=$resizeWidth){e.preventDefault();if($aceMenu.hasClass('collapse')==false){} $(this).off('mouseover','> li a');if($(this).parent().parent().hasClass('menu-active')){$(this).parent().parent().children('.sub-menu').slideUp().removeClass('slide');$(this).parent().parent().removeClass('menu-active');}else{if($expandAll==true){$(this).parent().parent().addClass('menu-active').children('.sub-menu').slideDown($animationSpeed).addClass('slide');return;}}}});});}})(jQuery);;(function($){$.fn.ThunkCatMenu=function(options){var defaults={resizeWidth:'',animationSpeed:'fast',accoridonExpAll:false};var options=$.extend(defaults,options),opt=options,$resizeWidth=opt.resizeWidth,$animationSpeed=opt.animationSpeed,$expandAll=opt.accoridonExpAll,$aceMenu=$(this),$menuStyle=$(this).attr('data-menu-style');$aceMenu.find('ul').addClass("sub-menu");$aceMenu.find('ul').siblings('a').append('<span class="arrow"></span>');if($menuStyle=='accordion'){$(this).addClass('collapse');} if($(window).innerWidth()<=$resizeWidth){menuCollapse();} function menuCollapse(){var w=$(window).innerWidth();if(w<=$resizeWidth){if($aceMenu.attr('data-menu-style')=='vertical'){$aceMenu.attr("data-menu-style","accordion");$aceMenu.addClass('collapse');return;}}else{$aceMenu.attr("data-menu-style","vertical");} $aceMenu.attr('data-menu-style',$menuStyle);$aceMenu.removeClass('collapse hide-menu').removeAttr('style');$('.menu-toggle').hide();if($aceMenu.attr('data-menu-style')=='accordion'){$aceMenu.addClass('collapse');return;} $aceMenu.find('li.menu-active').removeClass('menu-active');$aceMenu.find('ul.slide').removeClass('slide').removeAttr('style');} return this.each(function(){$aceMenu.on('mouseover','> li a',function(){if($aceMenu.hasClass('collapse')===true){return false;} $(this).off('click','> li a');$(this).parent('li').siblings().children('.sub-menu').stop(true,true).removeClass('slide').removeAttr('style').stop();$(this).parent().addClass('menu-active').children('.sub-menu').slideDown($animationSpeed).addClass('slide');return;});$aceMenu.on('mouseleave','li',function(){if($aceMenu.hasClass('collapse')===true){return false;} $(this).off('click','> li a');$(this).removeClass('menu-active');$(this).children('ul.sub-menu').stop(true,true).slideUp($animationSpeed).removeClass('slide').removeAttr('style');return;});$aceMenu.on('click','li span.arrow',function(e){e.preventDefault();if($aceMenu.hasClass('collapse')==false){} $(this).off('mouseover','> li a');if($(this).parent().parent().hasClass('menu-active')){$(this).parent().parent().children('.sub-menu').slideUp().removeClass('slide');$(this).parent().parent().removeClass('menu-active');}else{if($expandAll==true){$(this).parent().parent().addClass('menu-active').children('.sub-menu').slideDown($animationSpeed).addClass('slide');return;}}});$aceMenu.on('keypress','li span.arrow',function(e){var w=$(window).innerWidth();if(w<=$resizeWidth){e.preventDefault();if($aceMenu.hasClass('collapse')==false){} $(this).off('mouseover','> li a');if($(this).parent().parent().hasClass('menu-active')){$(this).parent().parent().children('.sub-menu').slideUp().removeClass('slide');$(this).parent().parent().removeClass('menu-active');}else{if($expandAll==true){$(this).parent().parent().addClass('menu-active').children('.sub-menu').slideDown($animationSpeed).addClass('slide');return;}}}});});}})(jQuery);
| ver. 1.4 |
Github
|
.
| PHP 8.1.2-1ubuntu2.19 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка