File "ageVerify.min.js"

Full Path: /home/ycoalition/public_html/blog/wp-content/themes/woodmart/js/scripts/global/ageVerify.min.js
File size: 938 bytes
MIME-type: text/plain
Charset: utf-8

!function(o){woodmartThemeModule.ageVerify=function(){"undefined"!=typeof Cookies&&"yes"===woodmart_settings.age_verify&&"confirmed"!==Cookies.get("woodmart_age_verify")&&(o.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"}}}),o(".wd-age-verify-allowed").on("click",function(e){e.preventDefault(),Cookies.set("woodmart_age_verify","confirmed",{expires:parseInt(woodmart_settings.age_verify_expires),path:"/",secure:woodmart_settings.cookie_secure_param}),o.magnificPopup.close()}),o(".wd-age-verify-forbidden").on("click",function(e){e.preventDefault(),o(".wd-age-verify").addClass("wd-forbidden")}))},o(document).ready(function(){woodmartThemeModule.ageVerify()})}(jQuery);