���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/elirickard.com/wp-content/themes/micdrop/assets/js/main.min.js
���ѧ٧ѧ�
!function(n){"use strict";window.qodef={},qodef.body=n("body"),qodef.html=n("html"),qodef.window=n(window),qodef.windowWidth=n(window).width(),qodef.windowHeight=n(window).height(),qodef.scroll=0,n(document).ready(function(){qodef.scroll=n(window).scrollTop(),o.init(),i.init(),r.init(),e.init(),t.init(),a.init(),s.init()}),n(window).on("load",function(){q.init()}),n(window).resize(function(){qodef.windowWidth=n(window).width(),qodef.windowHeight=n(window).height()}),n(window).scroll(function(){qodef.scroll=n(window).scrollTop()}),n(document).on("micdrop_trigger_get_new_posts",function(){q.init(),i.init(),e.init(),s.init()}),n(document).on("micdrop_trigger_swiper_is_initialized",function(){s.init()}),n(document).on("added_to_cart",function(){s.init()}),n(document).on("updated_checkout",function(){s.init()}),n(document.body).on("wc_update_cart",function(){s.init()}),n(document).on("payment_method_selected",function(){s.init()}),n(document.body).on("wc_fragments_refreshed",function(){s.init()});var o={init:function(){o.addBodyClassName()},isBrowser:function(e){var t=!1;switch(e){case"chrome":t=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);break;case"safari":t=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor);break;case"firefox":t=-1<navigator.userAgent.toLowerCase().indexOf("firefox");break;case"ie":t=0<window.navigator.userAgent.indexOf("MSIE ")||!!navigator.userAgent.match(/Trident.*rv\:11\./);break;case"edge":t=/Edge\/\d./i.test(navigator.userAgent)}return t},addBodyClassName:function(){n.each(["chrome","safari","firefox","ie","edge"],function(e,t){o.isBrowser(t)&&void 0!==qodef.body&&("ie"===t&&(t="ms-explorer"),qodef.body.addClass("qodef-browser--"+t))})}},q={init:function(e){this.holder=n(".qodef-swiper-container"),n.extend(this.holder,e),this.holder.length&&this.holder.each(function(){q.initSlider(n(this))})},initSlider:function(e){var t=q.getOptions(e),o=q.getEvents(e,t);new Swiper(e,Object.assign(t,o))},getOptions:function(e,t){var o=void 0!==e.data("options")?e.data("options"):{},i=void 0!==o.spaceBetween&&""!==o.spaceBetween?o.spaceBetween:0,n=void 0!==o.slidesPerView&&""!==o.slidesPerView?o.slidesPerView:1,a=void 0!==o.centeredSlides&&""!==o.centeredSlides&&o.centeredSlides,r=void 0!==o.sliderScroll&&""!==o.sliderScroll&&o.sliderScroll,s=void 0===o.loop||""===o.loop||o.loop,d=void 0===o.autoplay||""===o.autoplay||o.autoplay,l=void 0!==o.speed&&""!==o.speed?parseInt(o.speed,10):5e3,c=void 0!==o.speedAnimation&&""!==o.speedAnimation?parseInt(o.speedAnimation,10):800,f=void 0!==o.customStages&&""!==o.customStages&&o.customStages,u=void 0!==o.outsideNavigation&&"yes"===o.outsideNavigation,h=u?".swiper-button-next-"+o.unique:e.find(".swiper-button-next"),p=u?".swiper-button-prev-"+o.unique:e.find(".swiper-button-prev"),g=e.find(".swiper-pagination");!1!==d&&5e3!==l?d={disableOnInteraction:!1,delay:l}:!1!==d&&(d={disableOnInteraction:!1});var m=void 0!==o.slidesPerView1440&&""!==o.slidesPerView1440?parseInt(o.slidesPerView1440,10):5,v=void 0!==o.slidesPerView1366&&""!==o.slidesPerView1366?parseInt(o.slidesPerView1366,10):4,w=void 0!==o.slidesPerView1024&&""!==o.slidesPerView1024?parseInt(o.slidesPerView1024,10):3,u=void 0!==o.slidesPerView768&&""!==o.slidesPerView768?parseInt(o.slidesPerView768,10):2,l=void 0!==o.slidesPerView680&&""!==o.slidesPerView680?parseInt(o.slidesPerView680,10):1,o=void 0!==o.slidesPerView480&&""!==o.slidesPerView480?parseInt(o.slidesPerView480,10):1;return f||(n<2?u=w=v=m=n:n<3?w=v=m=n:n<4?v=m=n:n<5&&(m=n)),Object.assign({slidesPerView:n,centeredSlides:a,sliderScroll:r,spaceBetween:i,autoplay:d,loop:s,speed:c,navigation:{nextEl:h,prevEl:p},pagination:{el:g,type:"bullets",clickable:!0},breakpoints:{0:{slidesPerView:o},481:{slidesPerView:l},681:{slidesPerView:u},769:{slidesPerView:w},1025:{slidesPerView:v},1367:{slidesPerView:m},1441:{slidesPerView:n}}},q.getSliderDatas(e))},getSliderDatas:function(e){var t,o=e.data(),i={};for(t in o)o.hasOwnProperty(t)&&"options"!==t&&void 0!==o[t]&&""!==o[t]&&(i[t]=o[t]);return i},navMovement:function(e,i,n,a){e.on("mousemove",function(e){var t=e.clientX,o=e.clientY,e=n.width()/2;n.add(a).css({top:o,left:t-e}),t<i?(n.css("opacity","1"),a.css("opacity","0")):(t>qodef.windowWidth-i?a.css("opacity","1"):a.css("opacity","0"),n.css("opacity","0"))})},navTrigger:function(e,t,o){t.on("click",function(){e[0].swiper.slidePrev()}),o.on("click",function(){e[0].swiper.slideNext()})},cursorNavigation:function(i){!qodef.html.hasClass("touchevents")&&i.hasClass("qodef-cursor-nav")&&(0===i.find(".qodef-nav-trigger").length&&i.append('<div class="qodef-nav-trigger">\t\t\t\t\t\t <div class="qodef-prev-trigger"></div>\t\t\t\t\t\t <div class="qodef-next-trigger"></div>\t\t\t\t\t\t </div>'),setTimeout(function(){var e=i.find(".qodef-prev-trigger"),t=i.find(".qodef-next-trigger"),o=i.find(".swiper-slide.swiper-slide-active").prev(".swiper-slide").width()-167;1024<qodefCore.windowWidth&&qodefCore.windowWidth<1680&&(o=i.find(".swiper-slide.swiper-slide-active").prev(".swiper-slide").width()),e.width(o),t.width(o),q.navMovement(i,o,i.find(".swiper-button-prev"),i.find(".swiper-button-next")),q.navTrigger(i,i.find(".qodef-prev-trigger"),i.find(".qodef-next-trigger"))},100))},bgText:function(e){var t,o,i,n;e.hasClass("qodef-album-player-slider")&&(t=e.find(".swiper-slide.swiper-slide-active"),o=e.find(".qodef-swiper-bg-text"),i=t.find(".qodef-e-info-content-link").text(),n=e.find(".qodef-swiper-bg-text-prev"),t.length&&(n.removeClass("qodef-animate-out"),o.removeClass("qodef-animate-in"),n.text(o.text()),o.text(i),setTimeout(function(){n.addClass("qodef-animate-out"),o.addClass("qodef-animate-in")},10)))},stopAutoplay:function(t){t.hasClass("qodef-album-player-slider")&&setTimeout(function(){var e=n(".qodef-m-player-controls ul li a");e.length&&e.each(function(){n(this).on("tap click",function(e){t[0].swiper.autoplay.stop()})})},500)},getEvents:function(o,e){return{on:{init:function(){var t;o.addClass("qodef-swiper--initialized"),qodef.body.trigger("micdrop_trigger_swiper_is_initialized",[o,e]),e.sliderScroll&&(t=!1,o.on("mousewheel",function(e){e.preventDefault(),t||(t=!0,e.deltaY<0?o[0].swiper.slideNext():o[0].swiper.slidePrev(),setTimeout(function(){t=!1},1e3))})),q.cursorNavigation(o),q.stopAutoplay(o),n(window).resize(function(){q.cursorNavigation(o)})},slideChangeTransitionStart:function(){q.bgText(o)}}}}};qodef.qodefSwiper=q;var i={init:function(e){this.holder=n(".qodef-magnific-popup"),n.extend(this.holder,e),this.holder.length&&this.holder.each(function(){i.initPopup(n(this))})},initPopup:function(e){e.hasClass("qodef-popup-item")?i.initSingleImagePopup(e):e.hasClass("qodef-popup-gallery")&&i.initGalleryPopup(e)},initSingleImagePopup:function(e){var t=e.data("type");e.magnificPopup({type:t,titleSrc:"title",removalDelay:350,mainClass:"mfp-fade",image:{cursor:null},closeMarkup:'<button title="%title%" type="button" class="mfp-close">'+qodefGlobal.vars.iconClose+"</button>"})},initGalleryPopup:function(e){var e=e.find(".qodef-popup-item"),t=i.generateGalleryItems(e);e.each(function(e){n(this).magnificPopup({items:t,gallery:{enabled:!0,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%">'+qodefGlobal.vars.iconArrowLeft+"</button>"},index:e,type:"image",removalDelay:350,mainClass:"mfp-fade",image:{cursor:null},closeMarkup:'<button title="%title%" type="button" class="mfp-close">'+qodefGlobal.vars.iconClose+"</button>"})})},generateGalleryItems:function(e){var t=[];return e.length&&e.each(function(){var e=n(this),e={src:e.attr("href"),title:e.attr("title"),type:e.data("type")};t.push(e)}),t}};qodef.qodefMagnificPopup=i;var r={items:"",init:function(e){this.holder=n(".qodef-anchor"),n.extend(this.holder,e),this.holder.length&&(r.items=this.holder,r.clickTrigger(),n(window).on("load",function(){r.checkAnchorOnScroll(),r.checkAnchorOnLoad()}))},clickTrigger:function(){r.items.on("click",function(e){var t=r.getAnchorItem(this),o=t.attr("href"),i=t.prop("hash").split("#")[1],n=window.location.href,a=-1<n.indexOf("#")?n.split("#")[1]:0;(o.indexOf("http")<0||o===n||0!==a&&o.substring(0,o.length-i.length-1)===n.substring(0,n.length-a.length-1)||0===a&&o.substring(0,o.length-i.length-1)===n)&&e.preventDefault(),r.animateScroll(t,i)})},checkAnchorOnLoad:function(){var t=window.location.hash.split("#")[1];void 0!==t&&""!==t&&r.items.length&&r.items.each(function(){var e=r.getAnchorItem(this);-1<e.attr("href").indexOf(t)&&r.animateScroll(e,t)})},checkAnchorOnScroll:function(){var e;1024<qodef.windowWidth&&((e=n("#qodef-page-inner *[id]")).length&&e.each(function(){var e=n(this),t=n('[href*="#'+e.attr("id")+'"]');t.length&&(r.isTargetInView(e)&&r.setActiveState(t),n(window).scroll(function(){r.isTargetInView(e)?r.setActiveState(t):t.removeClass(r.getItemClasses(t))}))}))},isTargetInView:function(e){var t=e[0].getBoundingClientRect(),e=window.innerHeight||document.documentElement.clientHeight;return!(Math.floor(100-(0<=t.top?0:t.top)/-+t.height*100)<20||Math.floor(100-(t.bottom-e)/t.height*100)<20)},getAnchorItem:function(e){return"A"===e.tagName?n(e):n(e).children("a")},animateScroll:function(e,t){var o=""!==t?n('[id="'+t+'"]'):"";if(o.length){o=o.offset().top-r.getHeaderHeight()-qodefGlobal.vars.adminBarHeight;return r.setActiveState(e),qodef.html.stop().animate({scrollTop:Math.round(o)},1e3,function(){history.pushState&&history.pushState(null,"","#"+t)}),!1}},getHeaderHeight:function(){var e=0;return e=1024<qodef.windowWidth&&null!==qodefGlobal.vars.headerHeight&&""!==qodefGlobal.vars.headerHeight?parseInt(qodefGlobal.vars.headerHeight,10):e},setActiveState:function(e){var t=!e.parent().hasClass("qodef-anchor"),o=r.getItemClasses(e);r.items.removeClass(o),(t?e:e.parent()).addClass(o)},getItemClasses:function(e){return"qodef-anchor--active"+(e.parents("#qodef-page-header")?" current-menu-item current_page_item":"")}};qodef.qodefAnchor=r;var e={init:function(){this.holder=n(".qodef--has-appear:not(.qodef--has-horizontal-appear), .qodef--has-custom-appear"),this.holder.length&&this.holder.each(function(){var e,t,o=n(this),i=(e=10,t=400,Math.floor(Math.random()*(t-e)+e));o.hasClass("qodef--appear-delay-random")?o.appear(function(){setTimeout(function(){o.addClass("qodef--appeared ")},i)},{accX:0,accY:qodefGlobal.vars.elementAppearAmount}):o.hasClass("qodef--appear-delay")?o.appear(function(){setTimeout(function(){o.addClass("qodef--appeared")},50)},{accX:0,accY:-10}):o.appear(function(){o.addClass("qodef--appeared ")},{accX:0,accY:-50})})}};qodef.qodefAppear=e;var t={init:function(){this.buttons=n(".qodef-button, .button.single_add_to_cart_button"),this.buttons.length&&this.buttons.each(function(){t.initItem(n(this))})},initItem:function(e){t.buttonHoverColor(e),t.buttonHoverBgColor(e),t.buttonHoverBorderColor(e),t.buttonHoverBehavior(e)},buttonHoverColor:function(e){var t,o,i,n,a;void 0!==e.data("hover-color")&&(t=e.css("color"),o=e.data("hover-color"),i=function(e){e.data.button.css("color",e.data.color)},e.hasClass("qodef-btn-simple")&&(e.on("mouseenter",{button:e,color:o},i),e.on("mouseleave",{button:e,color:t},i)),(e.hasClass("qodef-layout--filled")||e.hasClass("qodef-layout--outlined"))&&(n=e.find(".qodef-m-text"),a=e.data("color"),e.hasClass("qodef--button-inited")||n.css("color",a),e.on("mouseenter",function(){e.hasClass("qodef-btn-hovered")||(n.css("color",o),setTimeout(function(){n.css("color",a)},600))})))},buttonHoverBgColor:function(e){var t;void 0!==e.data("hover-background-color")&&(t=e.data("hover-background-color"),e.css("color",t))},buttonHoverBorderColor:function(e){var t,o,i;void 0!==e.data("hover-border-color")&&(t=function(e){e.data.button.css("border-color",e.data.color)},o=e.css("borderTopColor"),i=e.data("hover-border-color"),e.on("mouseenter",{button:e,color:i},t),e.on("mouseleave",{button:e,color:o},t))},buttonHoverBehavior:function(t){t.on("mouseenter",function(){var e;t.hasClass("qodef-btn-hovered")||((e=n(this)).addClass("qodef-btn-hovered"),setTimeout(function(){e.removeClass("qodef-btn-hovered")},1200))})},changeColor:function(e,t,o){e.css(t,o)}};qodef.qodefButton=t;var a={init:function(){var e=n("rs-module");e.length&&e.each(function(){var e=n(this);e.bind("revolution.slide.onloaded",function(){setTimeout(function(){qodefCore.shortcodes.micdrop_core_button.qodefButton.init()},100)}),e.on("revolution.slide.onchange",function(){setTimeout(function(){qodefCore.shortcodes.micdrop_core_button.qodefButton.init()},100)})})}};qodef.qodefRevSliderJs=a;var s={init:function(){var e=n(".woocommerce-message .wc-forward.button,.woocommerce-cart .actions .button,.woocommerce-cart .wc-proceed-to-checkout .button,.woocommerce-checkout .button#place_order, #qodef-woo-page.qodef--checkout .woocommerce-form-coupon>p .button, .qodef-m-action a, .woocommerce-account .button, .woocommerce-page div.woocommerce>.return-to-shop a"),t=n(".qodef-woo-product-content .button, .qodef-woo-product-content .added_to_cart, .qodef-m-action-link");s.addHtmlandInitEvents(e),s.initEvents(t)},addHtmlandInitEvents:function(e){e.length&&e.each(function(){var e=n(this);e.find(".qodef-m-text").length||(e.addClass("qodef-button qodef-hover--custom"),e.wrapInner("<div class='qodef-m-text'></div>"),e.on("mouseenter",function(){e.hasClass("qodef-btn-hovered")||(e.addClass("qodef-btn-hovered"),setTimeout(function(){e.removeClass("qodef-btn-hovered")},1200))}))})},initEvents:function(e){e.length&&e.each(function(){var e=n(this);e.on("mouseenter",function(){e.hasClass("qodef-btn-hovered")||(e.addClass("qodef-btn-hovered"),setTimeout(function(){e.removeClass("qodef-btn-hovered")},1200))})})}};qodef.qodefWooModifiedButton=s,"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var o=arguments[t];if(null!==o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e})}(jQuery),function(i){"use strict";i(document).ready(function(){n.init()}),i(window).resize(function(){n.init()}),i(document).on("micdrop_trigger_get_new_posts",function(e,t){t.hasClass("qodef-blog")&&(o.resize(t),n.resize(t))});var o={init:function(){var e=i(".qodef-blog");e.length&&o.resize(e)},resize:function(e){e=e.find(".wp-video-shortcode, .wp-audio-shortcode").not(".mejs-container");e.length&&e.each(function(){var e=i(this);"function"==typeof e.mediaelementplayer&&e.mediaelementplayer({videoWidth:"100%",videoHeight:"56.5%"})})}};qodef.qodefReInitMediaElementPostFormats=o;var n={init:function(){var e=i(".qodef-blog");e.length&&n.resize(e)},resize:function(e){e=e.find(".qodef-e-media iframe");e.length&&e.each(function(){var e=i(this),t=e.attr("width"),o=e.attr("height"),o=e.width()/t*o;e.css("height",o)})}};qodef.qodefResizeIframes=n}(jQuery),function(i){"use strict";i(document).ready(function(){r.init()}),i(document).on("micdrop_trigger_get_new_posts",function(e,t){t.hasClass("qodef-filter--on")&&t.removeClass("qodef--filter-loading")});var r={customListQuery:{},init:function(e){this.holder=i(".qodef-filter--on"),i.extend(this.holder,e),this.holder.length&&this.holder.each(function(){var e=i(this),t=e.find(".qodef-m-filter-item");r.checkCustomListQuery(e.data("options")),r.clickEvent(e,t),e.hasClass("qodef-filter-show-all-hidden")&&e.find(".qodef-m-filter-item.qodef--init-active").trigger("click")})},checkCustomListQuery:function(e){void 0!==e.additional_query_args&&void 0!==e.additional_query_args.tax_query&&(r.customListQuery=e.additional_query_args.tax_query)},clickEvent:function(t,o){o.on("click",function(e){e.preventDefault();e=i(this);e.hasClass("qodef--active")||(t.hasClass("qodef--filter-loading")||t.addClass("qodef--filter-loading"),t.hasClass("qodef-filter-show-all-hidden-loading")&&t.removeClass("qodef-filter-show-all-hidden-loading"),o.removeClass("qodef--active"),e.addClass("qodef--active"),r.setVisibility(t,e))})},setVisibility:function(e,t){var o=t.data("taxonomy"),i=t.data("filter"),n="*"===i,a=e.data("options"),t={},t=n?r.customListQuery:{0:{taxonomy:o,field:"number"==typeof i?"term_id":"slug",terms:i}};a.additional_query_args={tax_query:t},qodef.body.trigger("micdrop_trigger_load_more",[e,1])},isMasonryLayout:function(e){return e.hasClass("qodef-layout--masonry")},hasLoadMore:function(e){return e.hasClass("qodef-pagination-type--load-more")}};qodef.qodefFilter=r}(jQuery),function(s){"use strict";s(document).ready(function(){t.init()}),s(document).on("micdrop_trigger_get_new_posts",function(){t.init()});var t={init:function(){var e=s(".qodef-layout--justified-gallery");e.length&&e.each(function(){t.setJustifyGallery(s(this))})},setJustifyGallery:function(e){var t=e.data("options"),o=e.children(".qodef-grid-inner"),i=void 0!==t.justified_gallery_row_height&&""!==t.justified_gallery_row_height?t.justified_gallery_row_height:150,n=void 0!==t.justified_gallery_row_height_max&&""!==t.justified_gallery_row_height_max&&t.justified_gallery_row_height_max,a=void 0!==t.space_value?2*t.space_value:0,r=void 0!==t.justified_gallery_treshold&&""!==t.justified_gallery_treshold?t.justified_gallery_treshold:.75;o.waitForImages(function(){"function"==typeof o.justifiedGallery&&o.justifiedGallery({captions:!1,rowHeight:i,maxRowHeight:n,margins:a,border:0,lastRow:"nojustify",justifyThreshold:r,selector:".qodef-grid-item"}).on("jg.complete jg.rowflush",function(){var t=s(this),o=!1;t.find(".qodef-grid-item").addClass("show").each(function(){var e=s(this);e.height(Math.round(e.height())),o||0!==e.width()||(t.height(t.height()-e.height()-a),o=!0)})}),e.addClass("qodef--justified-gallery-init")})}};qodef.qodefJustifiedGallery=t}(jQuery),function(t){"use strict";t(document).ready(function(){n.init()}),t(window).resize(function(){n.reInit()}),t(document).on("micdrop_trigger_get_new_posts",function(e,t){t.hasClass("qodef-layout--masonry")&&n.init()});var n={init:function(e){this.holder=t(".qodef-layout--masonry"),t.extend(this.holder,e),this.holder.length&&this.holder.each(function(){n.createMasonry(t(this))})},reInit:function(e){this.holder=t(".qodef-layout--masonry"),t.extend(this.holder,e),this.holder.length&&this.holder.each(function(){var e=t(this).find(".qodef-grid-inner");"function"==typeof e.isotope&&e.isotope("layout")})},createMasonry:function(t){var o=t.find(".qodef-grid-inner"),i=o.find(".qodef-grid-item");o.waitForImages(function(){var e;"function"==typeof o.isotope&&(o.isotope({layoutMode:"packery",itemSelector:".qodef-grid-item",percentPosition:!0,masonry:{columnWidth:".qodef-grid-masonry-sizer",gutter:".qodef-grid-masonry-gutter"}}),t.hasClass("qodef-items--fixed")&&(e=n.getFixedImageSize(o,i),n.setFixedImageProportionSize(o,i,e)),o.isotope("layout")),o.addClass("qodef--masonry-init")})},getFixedImageSize:function(e,t){var o=e.find(".qodef-item--square");if(o.length){var i=o.find("img"),o=i.width(),i=i.height();return o!==i?i:o}return e.find(".qodef-grid-masonry-sizer").width()-2*parseInt(t.css("paddingLeft"),10)},setFixedImageProportionSize:function(e,t,o){var i=parseInt(t.css("paddingLeft"),10),n=(e.find(".qodef-item--square"),e.find(".qodef-item--landscape")),a=e.find(".qodef-item--portrait"),r=e.find(".qodef-item--huge-square"),e=qodef.windowWidth<=680;t.css("height",o),n.length&&n.css("height",Math.round(o/2)),a.length&&a.css("height",Math.round(2*(o+i))),e||(n.length&&n.css("height",o),r.length&&r.css("height",Math.round(2*(o+i))))}};qodef.qodefMasonryLayout=n}(jQuery),function(t){"use strict";t(document).ready(function(){o.init()});var o={init:function(){var e=t("#qodef-page-mobile-header");e.length&&(o.initMobileHeaderOpener(e),o.initDropDownMobileMenu())},initMobileHeaderOpener:function(e){var t,o=e.find(".qodef-mobile-header-opener");o.length&&(t=e.find(".qodef-mobile-header-navigation"),o.on("tap click",function(e){e.preventDefault(),t.is(":visible")?(t.slideUp(450),o.removeClass("qodef--opened")):(t.slideDown(450),o.addClass("qodef--opened"))}))},initDropDownMobileMenu:function(){var e=t(".qodef-mobile-header-navigation .menu-item-has-children > .qodef-menu-item-arrow, .qodef-mobile-header-navigation .menu-item-has-children.qodef--hide-link > a");e.length&&e.each(function(){var i=t(this);i.on("tap click",function(e){e.preventDefault();var t,o=i.parent(),e=o.siblings(".menu-item-has-children");o.hasClass("menu-item-has-children")&&((t=o.find("ul.sub-menu").first()).is(":visible")?(t.slideUp(450),o.removeClass("qodef--opened")):(o.addClass("qodef--opened"),(0===e.length?o:o.siblings().removeClass("qodef--opened")).find(".sub-menu").slideUp(400,function(){t.slideDown(400)})))})})}}}(jQuery),function(a){a(document).ready(function(){e.init()});var e={init:function(){var e=a(".qodef-header-navigation.qodef-header-navigation-initial > ul > li.qodef-menu-item--narrow.menu-item-has-children");e.length&&e.each(function(){var e,t=a(this),o=t.offset().left,i=t.find(" > ul"),n=i.outerWidth(),o=a(window).width()-o;0<t.find("li.menu-item-has-children").length&&(e=o-n),i.removeClass("qodef-drop-down--right"),(o<n||e<n)&&i.addClass("qodef-drop-down--right")})}}}(jQuery),function(a){"use strict";a(document).ready(function(){r.init()}),a(window).scroll(function(){r.scroll()}),a(document).on("micdrop_trigger_load_more",function(e,t,o){r.triggerLoadMore(t,o)});var r={init:function(e){this.holder=a(".qodef-pagination--on"),a.extend(this.holder,e),this.holder.length&&this.holder.each(function(){var e=a(this);r.initPaginationType(e)})},scroll:function(e){this.holder=a(".qodef-pagination--on"),a.extend(this.holder,e),this.holder.length&&this.holder.each(function(){var e=a(this);e.hasClass("qodef-pagination-type--infinite-scroll")&&r.initInfiniteScroll(e)})},initPaginationType:function(e){e.hasClass("qodef-pagination-type--standard")?r.initStandard(e):e.hasClass("qodef-pagination-type--load-more")?r.initLoadMore(e):e.hasClass("qodef-pagination-type--infinite-scroll")&&r.initInfiniteScroll(e)},initStandard:function(o,e){var t,i=o.find(".qodef-m-pagination-items");i.length&&(t=o.data("options"),e=void 0!==e&&""!==e?parseInt(e,10):1,r.changeStandardState(o,t.max_pages_num,e),i.children().each(function(){var t=a(this);t.on("click",function(e){e.preventDefault(),t.hasClass("qodef--active")||r.getNewPosts(o,t.data("paged"))})}))},changeStandardState:function(e,t,o){var i,n,a;e.hasClass("qodef-pagination-type--standard")&&(n=(i=e.find(".qodef-m-pagination-items")).children(".qodef--number"),a=i.children(".qodef--prev"),e=i.children(".qodef--next"),r.standardPaginationVisibility(i,t),n.removeClass("qodef--active").eq(o-1).addClass("qodef--active"),a.data("paged",o-1),1<o?(a.show(),a.next().removeClass("qodef-prev--hidden")):(a.hide(),a.next().addClass("qodef-prev--hidden")),e.data("paged",o+1),o===t?e.hide():e.show())},standardPaginationVisibility:function(e,t){1===t?e.hide():1<t&&!e.is(":visible")&&e.show()},changeStandardHtml:function(e,t,o,i){var n,a;e.hasClass("qodef-pagination-type--standard")&&(n=e.find(".qodef-m-pagination"),a=e.find(".qodef-m-pagination-spinner"),r.standardPaginationVisibility(n,t),n.remove(),a.remove(),e.append(i),r.initStandard(e,o))},triggerStandardScrollAnimation:function(e){e.hasClass("qodef-pagination-type--standard")&&a("html, body").animate({scrollTop:e.offset().top-100},500)},initLoadMore:function(t){t.find(".qodef-load-more-button").on("click",function(e){e.preventDefault(),r.getNewPosts(t)})},triggerLoadMore:function(e,t){r.getNewPosts(e,t)},loadMoreButtonVisibility:function(e,t){e.hasClass("qodef-pagination-type--load-more")&&(t.next_page>t.max_pages_num||1===t.max_pages_num?e.find(".qodef-load-more-button").hide():1<t.max_pages_num&&t.next_page<=t.max_pages_num&&e.find(".qodef-load-more-button").show())},initInfiniteScroll:function(e){var t=e.outerHeight()+e.offset().top,o=qodef.scroll+qodef.windowHeight,i=e.data("options");!e.hasClass("qodef--loading")&&t<o&&i.max_pages_num>=i.next_page&&r.getNewPosts(e)},getNewPosts:function(t,o){t.addClass("qodef--loading");var i=t.children(".qodef-grid-inner"),n=t.data("options");r.setNextPageValue(n,o,!1),a.ajax({type:"GET",url:qodefGlobal.vars.restUrl+qodefGlobal.vars.paginationRestRoute,data:{options:n},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",qodefGlobal.vars.restNonce)},success:function(e){"success"===e.status?(n.max_pages_num!==e.data.max_pages_num&&(n.max_pages_num=e.data.max_pages_num),r.setNextPageValue(n,o,!0),r.changeStandardHtml(t,n.max_pages_num,o,e.data.pagination_html),i.waitForImages(function(){r.addPosts(i,e.data.html,o),r.reInitMasonryPosts(t,i),setTimeout(function(){qodef.body.trigger("micdrop_trigger_get_new_posts",[t,e.data,o])},300)}),r.triggerStandardScrollAnimation(t),r.loadMoreButtonVisibility(t,n)):console.log(e.message)},complete:function(){t.removeClass("qodef--loading")}})},setNextPageValue:function(e,t,o){void 0===t||""===t||o?o&&(e.next_page=parseInt(e.next_page,10)+1):e.next_page=t},addPosts:function(e,t,o){void 0!==o&&""!==o?e.html(t):e.append(t)},reInitMasonryPosts:function(e,t){e.hasClass("qodef-layout--masonry")&&(t.isotope("reloadItems").isotope({sortBy:"original-order"}),setTimeout(function(){t.isotope("layout")},200))}};qodef.qodefPagination=r}(jQuery),function(d){"use strict";d(document).ready(function(){o.init(),e.init(),t.init(),i.init(),n.init(),a.init(),r.init(),s.init(),l.init(),c.init(),f.init()});var o={init:function(e){this.holder=[],this.holder.push({holder:d("#qodef-woo-page .woocommerce-ordering select"),options:{minimumResultsForSearch:1/0}}),this.holder.push({holder:d("#qodef-woo-page .variations select"),options:{minimumResultsForSearch:1/0}}),this.holder.push({holder:d("#qodef-woo-page #calc_shipping_country"),options:{}}),this.holder.push({holder:d("#qodef-woo-page .shipping select#calc_shipping_state"),options:{}}),this.holder.push({holder:d(".widget.widget_archive select"),options:{}}),this.holder.push({holder:d(".widget.widget_categories select"),options:{}}),this.holder.push({holder:d(".widget.widget_text select"),options:{}}),d.extend(this.holder,e),"object"==typeof this.holder&&d.each(this.holder,function(e,t){o.createSelect2(t.holder,t.options)})},createSelect2:function(e,t){"function"==typeof e.select2&&e.select2(t)}},e={init:function(){d(document).on("click",".qodef-quantity-minus, .qodef-quantity-plus",function(e){e.stopPropagation();var t,o=d(this),i=o.siblings(".qodef-quantity-input"),n=parseFloat(i.data("step")),a=parseFloat(i.data("max")),r=parseFloat(i.data("min")),s=!1,e="function"==typeof Number.isNaN&&Number.isNaN(parseFloat(i.val()))?r:parseFloat(i.val());(s=o.hasClass("qodef-quantity-minus")?!0:s)?r<=(t=e-n)?i.val(t):i.val(r):(t=e+n,void 0!==a&&a<=t?i.val(a):i.val(t)),i.trigger("change")})}},t={init:function(){var e=d(".widget.woocommerce.widget_price_filter .price_slider_amount button");e.length&&e.each(function(){d(this).append('<svg class="qodef-filter-btn-arrow" xmlns="http://www.w3.org/2000/svg" width="11.4959" height="10.1209" viewBox="0 0 11.4959 10.1209"><g><rect y="3.9886" width="10.0417" height="2"></rect><polyline points="5.925 9.593 10.438 5.043 5.925 0.53"></polyline></g><g><rect y="3.9886" width="10.0417" height="2"></rect><polyline points="5.925 9.593 10.438 5.043 5.925 0.53"></polyline></g></svg>')})}};qodef.qodefWooFilterButtonArrow=t;var i={init:function(){var e=d(".qodef-woo-product-list .button:not(.product_type_grouped):not(.product_type_external)");e.length&&e.each(function(){d(this).append('<svg class="qodef-woo-list-btn-icon" xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><rect y="5" width="12" height="2"/><rect y="5" width="12" height="2" transform="translate(0 12) rotate(-90)"/></svg>')})}};qodef.qodefWooListButtonIcon=i;var n={init:function(){var e=d(".qodef-woo-product-list .button.product_type_grouped");e.length&&e.each(function(){d(this).append('<svg class="qodef-woo-list-btn-icon-arrow" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="11.5px" height="10.1px" viewBox="0 0 11.5 10.1" style="enable-background:new 0 0 11.5 10.1;" xml:space="preserve"><rect style="fill: currentColor;" y="4" width="10" height="2"/><polyline style="fill: none; stroke: currentColor; stroke-width: 1.5; stroke-miterlimit: 10;" points="5.9,9.6 10.4,5 5.9,0.5 "/></svg>')})}};qodef.qodefWooListButtonIconGrouped=n;var a={init:function(){var e=d(".qodef-woo-product-list .button.product_type_external");e.length&&e.each(function(){d(this).append('<svg xmlns="http://www.w3.org/2000/svg" width="9.6218" height="9.6218" viewBox="0 0 9.6218 9.6218"><rect style="fill: currentColor;" x="-0.864" y="4.1218" width="10.7281" height="2" transform="translate(-2.3036 4.6822) rotate(-45)"/><polyline style="fill: none; stroke: currentColor; stroke-miterlimit: 10; stroke-width: 2px;" points="1.136 1 8.622 1 8.622 8.345"/></svg>')})}};qodef.qodefWooListButtonIconExternal=a;var r={init:function(){d("body").on("added_to_cart",function(){var e=d(".qodef-woo-product-list .added_to_cart");e.length&&e.each(function(){var e=d(this);e.find(".qodef-woo-list-btn-icon-added").length||e.append('<svg class="qodef-woo-list-btn-icon-added" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="13px" height="9.7px" viewBox="0 0 13 9.7" style="enable-background:new 0 0 13 9.7; fill: currentColor;" xml:space="preserve"><g><path d="M0.2,5.3c-0.3-0.3-0.3-0.7,0-0.9l0.9-0.9c0.3-0.3,0.7-0.3,0.9,0l2.8,2.8L11,0.2c0.3-0.3,0.7-0.3,0.9,0l0.9,0.9 c0.3,0.3,0.3,0.7,0,0.9L5.3,9.5c-0.3,0.3-0.7,0.3-0.9,0L0.2,5.3z"/></g></svg>')})})}};qodef.qodefWooListButtonIconAddedToCart=r;var s={init:function(){var e=d(".button.single_add_to_cart_button");e.length&&e.each(function(){d(this).wrapInner("<span class='qodef-m-text'></span>")})}};qodef.qodefWooButtonsWrapInner=s;var l={init:function(){var e=d("#qodef-woo-page.qodef--single .woocommerce-tabs .wc-tabs li a");e.length&&e.each(function(){d(this).wrapInner("<span class='qodef-tab-title'></span>")})}};qodef.qodefWooTabsWrapInner=l;var c={init:function(){var e=d("#qodef-woo-page .product_meta > .sku_wrapper .qodef-woo-meta-label");e.length&&e.each(function(){var e=d(this);e.text(e.text().toLowerCase())})}};qodef.qodefWooSkuToLowercase=c;var f={init:function(){var e;"object"!=typeof qodef.qodefMagnificPopup||(e=d(".qodef--single.qodef-magnific-popup.qodef-popup-gallery .woocommerce-product-gallery__image")).length&&(e.each(function(){d(this).children("a").attr("data-type","image").addClass("qodef-popup-item")}),qodef.qodefMagnificPopup.init())}};qodef.qodefWooMagnificPopup=f}(jQuery);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.1 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�