You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
cosmopet.ae/wp-content/themes/woodmart22/js/scripts/global/ageVerify.min.js

1 lines
824 B

!function(a){woodmartThemeModule.ageVerify=function(){"yes"===woodmart_settings.age_verify&&"confirmed"!==Cookies.get("woodmart_age_verify")&&(a.magnificPopup.open({items:{src:".wd-age-verify"},type:"inline",closeOnBgClick:!1,closeBtnInside:!1,showCloseBtn:!1,enableEscapeKey:!1,removalDelay:500,tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-horizontal wd-promo-popup-wrapper"}}}),a(".wd-age-verify-allowed").on("click",function(){Cookies.set("woodmart_age_verify","confirmed",{expires:parseInt(woodmart_settings.age_verify_expires),path:"/"}),a.magnificPopup.close()}),a(".wd-age-verify-forbidden").on("click",function(){a(".wd-age-verify").addClass("wd-forbidden")}))},a(document).ready(function(){woodmartThemeModule.ageVerify()})}(jQuery);