ok

Mini Shell

Direktori : /home2/selectio/public_html/wedding-info/ecart/assets/js/
Upload File :
Current File : /home2/selectio/public_html/wedding-info/ecart/assets/js/main.js

!function(e){"use strict";e(window).on("load",(function(){e(".preloader").fadeOut()})),e(window).on("resize",(function(){e(".slick-slider").slick("refresh")})),e(".preloader").length>0&&e(".preloaderCls").each((function(){e(this).on("click",(function(t){t.preventDefault(),e(".preloader").css("display","none")}))})),e.fn.asmobilemenu=function(t){var s=e.extend({menuToggleBtn:".as-menu-toggle",bodyToggleClass:"as-body-visible",subMenuClass:"as-submenu",subMenuParent:"as-item-has-children",subMenuParentToggle:"as-active",meanExpandClass:"as-mean-expand",appendElement:'<span class="as-mean-expand"></span>',subMenuToggleClass:"as-open",toggleSpeed:400},t);return this.each((function(){var t=e(this);function a(){t.toggleClass(s.bodyToggleClass);var a="."+s.subMenuClass;e(a).each((function(){e(this).hasClass(s.subMenuToggleClass)&&(e(this).removeClass(s.subMenuToggleClass),e(this).css("display","none"),e(this).parent().removeClass(s.subMenuParentToggle))}))}t.find("li").each((function(){var t=e(this).find("ul");t.addClass(s.subMenuClass),t.css("display","none"),t.parent().addClass(s.subMenuParent),t.prev("a").append(s.appendElement),t.next("a").append(s.appendElement)}));var n="."+s.meanExpandClass;e(n).each((function(){e(this).on("click",(function(t){var a;t.preventDefault(),a=e(this).parent(),e(a).next("ul").length>0?(e(a).parent().toggleClass(s.subMenuParentToggle),e(a).next("ul").slideToggle(s.toggleSpeed),e(a).next("ul").toggleClass(s.subMenuToggleClass)):e(a).prev("ul").length>0&&(e(a).parent().toggleClass(s.subMenuParentToggle),e(a).prev("ul").slideToggle(s.toggleSpeed),e(a).prev("ul").toggleClass(s.subMenuToggleClass))}))})),e(s.menuToggleBtn).each((function(){e(this).on("click",(function(){a()}))})),t.on("click",(function(e){e.stopPropagation(),a()})),t.find("div").on("click",(function(e){e.stopPropagation()}))}))},e(".as-menu-wrapper").asmobilemenu();var t="";e(window).on("scroll",(function(){var s,a,n,o,i;s=e(".sticky-active"),a="active",n="will-sticky",o=e(window).scrollTop(),i=s.css("height"),s.parent().css("min-height",i),e(window).scrollTop()>800?(s.parent().addClass(n),o>t?s.removeClass(a):s.addClass(a)):(s.parent().css("min-height","").removeClass(n),s.removeClass(a)),t=o,e(this).scrollTop()>500?e(".scrollToTop").addClass("show"):e(".scrollToTop").removeClass("show")})),e(".scrollToTop").each((function(){e(this).on("click",(function(s){return s.preventDefault(),e("html, body").animate({scrollTop:0},t/3),!1}))})),e("[data-bg-src]").length>0&&e("[data-bg-src]").each((function(){var t=e(this).attr("data-bg-src");e(this).css("background-image","url("+t+")"),e(this).removeAttr("data-bg-src").addClass("background-image")})),e(".as-carousel").each((function(){var t=e(this);function s(e){return t.data(e)}var a='<button type="button" class="slick-prev"><i class="'+s("prev-arrow")+'"></i></button>',n='<button type="button" class="slick-next"><i class="'+s("next-arrow")+'"></i></button>';e("[data-slick-next]").each((function(){e(this).on("click",(function(t){t.preventDefault(),e(e(this).data("slick-next")).slick("slickNext")}))})),e("[data-slick-prev]").each((function(){e(this).on("click",(function(t){t.preventDefault(),e(e(this).data("slick-prev")).slick("slickPrev")}))})),1==s("arrows")&&(t.closest(".arrow-wrap").length||t.closest(".container").parent().addClass("arrow-wrap")),t.slick({dots:!!s("dots"),fade:!!s("fade"),arrows:!!s("arrows"),speed:s("speed")?s("speed"):1e3,asNavFor:!!s("asnavfor")&&s("asnavfor"),autoplay:0!=s("autoplay"),infinite:0!=s("infinite"),slidesToShow:s("slide-show")?s("slide-show"):1,adaptiveHeight:!!s("adaptive-height"),centerMode:!!s("center-mode"),autoplaySpeed:s("autoplay-speed")?s("autoplay-speed"):8e3,centerPadding:s("center-padding")?s("center-padding"):"0",focusOnSelect:0!=s("focuson-select"),pauseOnFocus:!!s("pauseon-focus"),pauseOnHover:!!s("pauseon-hover"),variableWidth:!!s("variable-width"),vertical:!!s("vertical"),verticalSwiping:!!s("vertical"),prevArrow:s("prev-arrow")?a:'<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>',nextArrow:s("next-arrow")?n:'<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>',rtl:"rtl"==e("html").attr("dir"),responsive:[{breakpoint:1600,settings:{arrows:!!s("xl-arrows"),dots:!!s("xl-dots"),slidesToShow:s("xl-slide-show")?s("xl-slide-show"):s("slide-show"),centerMode:!!s("xl-center-mode"),centerPadding:"0"}},{breakpoint:1400,settings:{arrows:!!s("ml-arrows"),dots:!!s("ml-dots"),slidesToShow:s("ml-slide-show")?s("ml-slide-show"):s("slide-show"),centerMode:!!s("ml-center-mode"),centerPadding:0}},{breakpoint:1200,settings:{arrows:!!s("lg-arrows"),dots:!!s("lg-dots"),slidesToShow:s("lg-slide-show")?s("lg-slide-show"):s("slide-show"),centerMode:!!s("lg-center-mode")&&s("lg-center-mode"),centerPadding:0}},{breakpoint:992,settings:{arrows:!!s("md-arrows"),dots:!!s("md-dots"),slidesToShow:s("md-slide-show")?s("md-slide-show"):1,centerMode:!!s("md-center-mode")&&s("md-center-mode"),centerPadding:0}},{breakpoint:768,settings:{arrows:!!s("sm-arrows"),dots:!!s("sm-dots"),slidesToShow:s("sm-slide-show")?s("sm-slide-show"):1,centerMode:!!s("sm-center-mode")&&s("sm-center-mode"),centerPadding:0}},{breakpoint:576,settings:{arrows:!!s("xs-arrows"),dots:!!s("xs-dots"),slidesToShow:s("xs-slide-show")?s("xs-slide-show"):1,centerMode:!!s("xs-center-mode")&&s("xs-center-mode"),centerPadding:0}}]})}));var s=e(".slick-3d-active");s.on("init",(function(t,s,a){var n=e(s.$slides[s.currentSlide]),o=n.next(),i=n.next().next(),r=n.prev(),l=n.prev().prev();r.addClass("slick-3d-prev"),o.addClass("slick-3d-next"),l.addClass("slick-3d-prev2"),i.addClass("slick-3d-next2"),n.removeClass("slick-3d-next").removeClass("slick-3d-prev").removeClass("slick-3d-next2").removeClass("slick-3d-prev2"),s.$prev=r,s.$next=o})).on("beforeChange",(function(t,s,a,n){var o=e(s.$slides[n]);s.$prev.removeClass("slick-3d-prev"),s.$next.removeClass("slick-3d-next"),s.$prev.prev().removeClass("slick-3d-prev2"),s.$next.next().removeClass("slick-3d-next2");var i=o.next(),r=o.prev();r.addClass("slick-3d-prev"),i.addClass("slick-3d-next"),r.prev().addClass("slick-3d-prev2"),i.next().addClass("slick-3d-next2"),s.$prev=r,s.$next=i,o.removeClass("slick-next").removeClass("slick-3d-prev").removeClass("slick-next2").removeClass("slick-3d-prev2")})),s.slick({speed:1e3,arrows:!1,dots:!1,focusOnSelect:!0,prevArrow:'<button type="button" class="slick-prev"><i class="fal fa-arrow-left"></i></button>',nextArrow:'<button type="button" class="slick-next"><i class="fal fa-arrow-right"></i></button>',infinite:!0,centerMode:!0,slidesPerRow:1,slidesToShow:1,slidesToScroll:1,centerPadding:"0",swipe:!0,customPaging:function(e,t){return""},responsive:[{breakpoint:1024,settings:{arrows:!1}}]}),e("[data-ani-duration]").each((function(){var t=e(this).data("ani-duration");e(this).css("animation-duration",t)})),e("[data-ani-delay]").each((function(){var t=e(this).data("ani-delay");e(this).css("animation-delay",t)})),e("[data-ani]").each((function(){var t=e(this).data("ani");e(this).addClass(t),e(".slick-current [data-ani]").addClass("as-animated")})),e(".as-carousel").on("afterChange",(function(t,s,a,n){e(s.$slides).find("[data-ani]").removeClass("as-animated"),e(s.$slides[a]).find("[data-ani]").addClass("as-animated")})),e(".flip-gallery").length>0&&e(".flip-gallery").flipster({style:"carousel",spacing:-.5,nav:!0,buttons:!0,loop:!0,scrollwheel:!1});var a,n,o,i=".ajax-contact",r='[name="email"]',l=e(".form-messages");function c(){var t=e(i).serialize();(function(){var t,s=!0;function a(a){a=a.split(",");for(var n=0;n<a.length;n++)t=i+" "+a[n],e(t).val()?(e(t).removeClass("is-invalid"),s=!0):(e(t).addClass("is-invalid"),s=!1)}a('[name="name"],[name="email"],[name="subject"],[name="number"],[name="message"]'),e(r).val()&&e(r).val().match(/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/)?(e(r).removeClass("is-invalid"),s=!0):(e(r).addClass("is-invalid"),s=!1);return s})()&&jQuery.ajax({url:e(i).attr("action"),data:t,type:"POST"}).done((function(t){l.removeClass("error"),l.addClass("success"),l.text(t),e(i+' input:not([type="submit"]),'+i+" textarea").val("")})).fail((function(e){l.removeClass("success"),l.addClass("error"),""!==e.responseText?l.html(e.responseText):l.html("Oops! An error occured and your message could not be sent.")}))}function d(e){return parseInt(e,10)}e(i).on("submit",(function(e){e.preventDefault(),c()})),a=".popup-search-box",n=".searchClose",o="show",e(".searchBoxToggler").on("click",(function(t){t.preventDefault(),e(a).addClass(o)})),e(a).on("click",(function(t){t.stopPropagation(),e(a).removeClass(o)})),e(a).find("form").on("click",(function(t){t.stopPropagation(),e(a).addClass(o)})),e(n).on("click",(function(t){t.preventDefault(),t.stopPropagation(),e(a).removeClass(o)})),function(t,s,a,n){e(s).on("click",(function(s){s.preventDefault(),e(t).addClass(n)})),e(t).on("click",(function(s){s.stopPropagation(),e(t).removeClass(n)})),e(t+" > div").on("click",(function(s){s.stopPropagation(),e(t).addClass(n)})),e(a).on("click",(function(s){s.preventDefault(),s.stopPropagation(),e(t).removeClass(n)}))}(".sidemenu-wrapper",".sideMenuToggler",".sideMenuCls","show"),e(".popup-image").magnificPopup({type:"image",gallery:{enabled:!0}}),e(".popup-video").magnificPopup({type:"iframe"}),e(".popup-content").magnificPopup({type:"inline",midClick:!0}),e(".popup-content").on("click",(function(){e(".slick-slider").slick("refresh")})),e.fn.sectionPosition=function(t,s){e(this).each((function(){var a,n,o,i,r,l=e(this);a=Math.floor(l.height()/2),n=l.attr(t),o=l.attr(s),i=d(e(o).css("padding-top")),r=d(e(o).css("padding-bottom")),"top-half"===n?(e(o).css("padding-bottom",r+a+"px"),l.css("margin-top","-"+a+"px")):"bottom-half"===n&&(e(o).css("padding-top",i+a+"px"),l.css("margin-bottom","-"+a+"px"))}))};var p;e("[data-sec-pos]").length&&e("[data-sec-pos]").imagesLoaded((function(){e("[data-sec-pos]").sectionPosition("data-sec-pos","data-pos-for")})),e(".filter-active").imagesLoaded((function(){if(e(".filter-active").length>0){var t=e(".filter-active").isotope({itemSelector:".filter-item",filter:"*",masonry:{columnWidth:1}});e(".filter-menu-active").on("click","button",(function(){var s=e(this).attr("data-filter");t.isotope({filter:s})})),e(".filter-menu-active").on("click","button",(function(t){t.preventDefault(),e(this).addClass("active"),e(this).siblings(".active").removeClass("active")}))}})),e(".masonary-active").imagesLoaded((function(){e(".masonary-active").length>0&&e(".masonary-active").isotope({itemSelector:".filter-item",filter:"*",masonry:{columnWidth:1}})})),e(".counter-number").counterUp({delay:10,time:1e3}),e.fn.asTab=function(t){var s=e.extend({sliderTab:!1,tabButton:"button"},t);e(this).each((function(){var t=e(this),a=t.find(s.tabButton);t.append('<span class="indicator"></span>');var n=t.find(".indicator");if(a.on("click",(function(t){t.preventDefault();var a=e(this);a.addClass("active").siblings().removeClass("active"),s.sliderTab?e(o).slick("slickGoTo",a.data("slide-go-to")):r()})),s.sliderTab){var o=t.data("asnavfor"),i=0;a.each((function(){var a=e(this);a.attr("data-slide-go-to",i),i++,a.hasClass("active")&&e(o).slick("slickGoTo",a.data("slide-go-to")),e(o).on("beforeChange",(function(e,a,n,o){t.find(s.tabButton+'[data-slide-go-to="'+o+'"]').addClass("active").siblings().removeClass("active"),r()}))}))}function r(){var o=t.find(s.tabButton+".active"),i=o.css("height"),r=o.css("width"),l=o.position().top+"px",c=o.position().left+"px";n.get(0).style.setProperty("--height-set",i),n.get(0).style.setProperty("--width-set",r),n.get(0).style.setProperty("--pos-y",l),n.get(0).style.setProperty("--pos-x",c),e(a).first().position().left==o.position().left?n.addClass("start").removeClass("center").removeClass("end"):e(a).last().position().left==o.position().left?n.addClass("end").removeClass("center").removeClass("start"):n.addClass("center").removeClass("start").removeClass("end")}r()}))},e(".product-thumb-tab").length&&e(".product-thumb-tab").asTab({sliderTab:!0,tabButton:".tab-btn"}),e(".tab-menu1").length&&e(".tab-menu1").asTab({sliderTab:!0,tabButton:".tab-btn"}),e.fn.shapeMockup=function(){e(this).each((function(){var t=e(this),s=t.data("top"),a=t.data("right"),n=t.data("bottom"),o=t.data("left");t.css({top:s,right:a,bottom:n,left:o}).removeAttr("data-top").removeAttr("data-right").removeAttr("data-bottom").removeAttr("data-left").parent().addClass("shape-mockup-wrap")}))},e(".shape-mockup")&&e(".shape-mockup").shapeMockup(),e.fn.countdown=function(){e(this).each((function(){var t=e(this),s=new Date(t.data("offer-date")).getTime();function a(e){return t.find(e)}var n=setInterval((function(){var e=(new Date).getTime(),o=s-e,i=Math.floor(o/864e5),r=Math.floor(o%864e5/36e5),l=Math.floor(o%36e5/6e4),c=Math.floor(o%6e4/1e3);i<10&&(i="0"+i),r<10&&(r="0"+r),l<10&&(l="0"+l),c<10&&(c="0"+c),o<0?(clearInterval(n),t.addClass("expired"),t.find(".message").css("display","block")):(a(".day").html(i),a(".hour").html(r),a(".minute").html(l),a(".seconds").html(c))}),1e3)}))},e(".counter-list").length&&e(".counter-list").countdown(),e(".progress-bar").waypoint((function(){e(".progress-bar").css({animation:"animate-positive 1.8s",opacity:"1"})}),{offset:"75%"}),e(".price_slider").slider({range:!0,min:10,max:100,values:[10,75],slide:function(t,s){e(".from").text("$"+s.values[0]),e(".to").text("$"+s.values[1])}}),e(".from").text("$"+e(".price_slider").slider("values",0)),e(".to").text("$"+e(".price_slider").slider("values",1)),e(p=".onepage-nav").length>0&&e(p).each((function(){var t=e(this).find("a");e(this).find(t).each((function(){e(this).on("click",(function(){var t=e(this.getAttribute("href"));t.length&&(event.preventDefault(),e("html, body").stop().animate({scrollTop:t.offset().top-10},1e3))}))}))})),e(window).on("scroll",(function(){e(".onepage").length>0&&(e(window).scrollTop()>0?e(".as-header .sticky-active").addClass("sticky"):e(".as-header .sticky-active").removeClass("sticky"))})),e.fn.indicator=function(){var t=e(this),s=t.find("a"),a=t.find("button");t.append('<span class="indicator"></span>');var n=t.find(".indicator");if(s.length)var o=s;else if(a.length)o=a;function i(){var s=t.find(".active"),a=s.css("height"),o=s.css("width"),i=s.position().top+"px",r=s.position().left+"px";e(window).on("resize",(function(){i=s.position().top+"px",r=s.position().left+"px"})),n.get(0).style.setProperty("--height-set",a),n.get(0).style.setProperty("--width-set",o),n.get(0).style.setProperty("--pos-y",i),n.get(0).style.setProperty("--pos-x",r)}o.on("click",(function(t){t.preventDefault(),e(this).addClass("active"),e(this).siblings(".active").removeClass("active"),i()})),i()},e(".indicator-active").length&&e(".indicator-active").indicator(),e("#ship-to-different-address-checkbox").on("change",(function(){e(this).is(":checked")?e("#ship-to-different-address").next(".shipping_address").slideDown():e("#ship-to-different-address").next(".shipping_address").slideUp()})),e(".woocommerce-form-login-toggle a").on("click",(function(t){t.preventDefault(),e(".woocommerce-form-login").slideToggle()})),e(".woocommerce-form-coupon-toggle a").on("click",(function(t){t.preventDefault(),e(".woocommerce-form-coupon").slideToggle()})),e(".shipping-calculator-button").on("click",(function(t){t.preventDefault(),e(this).next(".shipping-calculator-form").slideToggle()})),e('.wc_payment_methods input[type="radio"]:checked').siblings(".payment_box").show(),e('.wc_payment_methods input[type="radio"]').each((function(){e(this).on("change",(function(){e(".payment_box").slideUp(),e(this).siblings(".payment_box").slideDown()}))})),e(".rating-select .stars a").each((function(){e(this).on("click",(function(t){t.preventDefault(),e(this).siblings().removeClass("active"),e(this).parent().parent().addClass("selected"),e(this).addClass("active")}))})),e(".quantity-plus").each((function(){e(this).on("click",(function(t){t.preventDefault();var s=e(this).siblings(".qty-input"),a=parseInt(s.val());isNaN(a)||s.val(a+1)}))})),e(".quantity-minus").each((function(){e(this).on("click",(function(t){t.preventDefault();var s=e(this).siblings(".qty-input"),a=parseInt(s.val());!isNaN(a)&&a>1&&s.val(a-1)}))})),window.addEventListener("contextmenu",(function(e){e.preventDefault()}),!1),document.onkeydown=function(e){return 123!=event.keyCode&&((!e.ctrlKey||!e.shiftKey||e.keyCode!="I".charCodeAt(0))&&((!e.ctrlKey||!e.shiftKey||e.keyCode!="C".charCodeAt(0))&&((!e.ctrlKey||!e.shiftKey||e.keyCode!="J".charCodeAt(0))&&((!e.ctrlKey||e.keyCode!="U".charCodeAt(0))&&void 0))))}}(jQuery);

Zerion Mini Shell 1.0