// source --> https://www.highknife.com/wp-content/plugins/dispensary-age-verification/public/js/dispensary-age-verification-public.js?ver=2.5 /* * The Dispensary Age Verification plugin utilizes * the following open source javascript plugin. * * Thanks Michael! * * Plugin: ageCheck.js * Description: A simple plugin to verify user's age. Uses sessionStorage API to store if user is verified - only kept until browser is closed. * Options can be passed for easy customization. * Author: Michael Soriano * Author's website: http://fearlessflyer.com * */ (function ($) { 'use strict'; $.ageCheck = function (options) { const settings = $.extend({ minAge: 18, redirectTo: "", redirectOnFail: "", title: "Age Verification", copy: "You must be [age] years old to enter.", btnYes: "YES", btnNo: "NO", successTitle: "Success!", successText: "You are now being redirected back to the site...", failTitle: "Sorry", failText: "You are not old enough to view this site...", cookieDays: 30, adminDebug: "", beforeContent: "", afterContent: "", }, options); const _this = { age: "", errors: [], setValues() { const month = $(".avwp-av .month").val(); const day = $(".avwp-av .day").val(); _this.month = month; _this.day = day.replace(/^0+/, ''); // remove leading zero _this.year = $(".avwp-av .year").val(); }, validate() { _this.errors = []; if (/^([0-9]|[12]\d|3[0-1])$/.test(_this.day) === false) { _this.errors.push("Day is invalid or empty"); } if (/^(19|20)\d{2}$/.test(_this.year) === false) { _this.errors.push("Year is invalid or empty"); } _this.clearErrors(); _this.displayErrors(); return _this.errors.length < 1; }, clearErrors() { $(".errors").html(""); }, displayErrors() { let html = "
${copy.replace("[age]", `${settings.minAge}`)}`; + `
`; html += ``; if (settings.afterContent !== "") { html += settings.afterContent; } html += "${settings.successText}
`; $(".avwp-av").html(successMsg); setTimeout(() => { $(".avwp-av").animate({ top: "-350px", }, 200, () => { $(".avwp-av-overlay").animate({ opacity: "0", }, 500, () => { if (settings.redirectTo !== '') { window.location.replace(settings.redirectTo); } else { $(".avwp-av-overlay, .avwp-av").remove(); } }); }); }, 2000); }, handleUnderAge() { const underAgeMsg = `${settings.failText}
`; $(".avwp-av").html(underAgeMsg); if (settings.redirectOnFail !== '') { setTimeout(() => { window.location.replace(settings.redirectOnFail); }, 2000); } }, }; // end _this // Check for cookie and reture false if it's set. var cookiereader = readCookie("age-verification"); if (cookiereader) { if (settings.adminDebug !== "") { eraseCookie("age-verification"); } else { return false; } } // Create pop up. _this.buildHtml(); // Successful "YES" button click. $(".avwp-av button.yes").on("click", () => { createCookie("age-verification", "true", settings.cookieDays); _this.handleSuccess(); }); // Successful "NO" button click. $(".avwp-av button.no").on("click", () => { _this.handleUnderAge(); }); $(window).resize(() => { _this.reCenter($(".avwp-av")); setTimeout(() => { _this.reCenter($(".avwp-av")); }, 500); }); }; }(jQuery)); // source --> https://www.highknife.com/wp-content/plugins/revslider/public/assets/js/rbtools.min.js?ver=6.2.21 /******************************************************* - THEMEPUNCH TOOLS Ver. 6.0.2 - Changed with Slider Revolution Version : 6.2.6 Last Update of Tools 07.05.2020 *******************************************************/ !function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e){t.exports=jQuery},function(t,e,n){n(2),n(5),t.exports=n(4)},function(t,e,n){var r,i,u,s; /*! * @fileOverview TouchSwipe - jQuery Plugin @version 1.6.18 / SANDBOXED VERSION FOR TP * @author Matt Bryson http://www.github.com/mattbryson * @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin * @see http://labs.rampinteractive.co.uk/touchSwipe/ * @see http://plugins.jquery.com/project/touchSwipe * @license * Copyright (c) 2010-2015 Matt Bryson * Dual licensed under the MIT or GPL Version 2 licenses. * */s=function(t){"use strict";var e="left",n="right",r="up",i="down",u="none",s="doubletap",a="longtap",o="horizontal",l="vertical",h="all",f="move",D="end",p="cancel",c="ontouchstart"in window,d=window.navigator.msPointerEnabled&&!window.PointerEvent&&!c,g=(window.PointerEvent||window.navigator.msPointerEnabled)&&!c,_="TouchSwipe";function m(m,v){v=t.extend({},v);var y=c||g||!v.fallbackToMouseEvents,C=y?g?d?"MSPointerDown":"pointerdown":"touchstart":"mousedown",x=y?g?d?"MSPointerMove":"pointermove":"touchmove":"mousemove",F=y?g?d?"MSPointerUp":"pointerup":"touchend":"mouseup",w=y?g?"mouseleave":null:"mouseleave",E=g?d?"MSPointerCancel":"pointercancel":"touchcancel",b=0,T=null,A=null,M=0,P=0,B=0,S=1,O=0,k=0,L=null,N=t(m),R="start",I=0,z={},Y=0,j=0,X=0,V=0,U=0,W=null,q=null;try{N.on(C,H),N.on(E,K)}catch(m){t.error("events not supported "+C+","+E+" on jQuery.swipe")}function H(u){if(!0!==N.data(_+"_intouch")&&!(0e)for(r=t._first;r&&r._start<=n;){if(!r._dur&&"isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if(!r._dur&&"isPause"===r.data&&r._start 0||(he(this,d===p?"onComplete":"onReverseComplete",!0),this._prom&&this._prom()))}}else!function(t,e,n,r){var i,u=t._zTime<0?0:1,s=e<0?0:1,a=t._rDelay,o=0;if(a&&t._repeat&&(o=Qt(0,t._tDur,e),It(o,a)!==It(t._tTime,a)&&(u=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),(t._initted||!Vt(t,e,r,n))&&(s!==u||r||1e-8===t._zTime||!e&&t._zTime)){for(t._zTime=e||(n?1e-8:0),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=o,n||he(t,"onStart"),i=t._pt;i;)i.r(s,i.d),i=i._next;!s&&t._startAt&&!t._onUpdate&&t._start&&t._startAt.render(e,!0,r),t._onUpdate&&(n||he(t,"onUpdate")),o&&t._repeat&&!n&&t.parent&&he(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(t.ratio&&kt(t,1),n||(he(t,t.ratio?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e)&&(this._lazy=0,this.parent))return fe(this);if(this.timeline)return this.timeline.killTweensOf(t,e,Ne&&!0!==Ne.vars.overwrite),this;var n,r,i,u,s,a,o,l=this._targets,h=t?te(t):l,f=this._ptLookup,D=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(l,h))return fe(this);for(n=this._op=this._op||[],"all"!==e&&(z(e)&&(s={},vt(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var n,r,i,u,s=t[0]?_t(t[0]).harness:0,a=s&&s.aliases;if(!a)return e;for(r in n=Mt({},e),a)if(r in n)for(i=(u=a[r].split(",")).length;i--;)n[u[i]]=n[r];return n}(l,e)),o=l.length;o--;)if(~h.indexOf(l[o]))for(s in r=f[o],"all"===e?(n[o]=e,u=r,i={}):(i=n[o]=n[o]||{},u=e),u)(a=r&&r[s])&&("kill"in a.d&&!0!==a.d.kill(s)||Ot(this,a,"_pt"),delete r[s]),"all"!==i&&(i[s]=1);return this._initted&&!this._pt&&D&&fe(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,n){return new e(t,xt(arguments,1))},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,n,r){return new e(t,xt(arguments,2))},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return u.killTweensOf(t,e,n)},e}(ke);Tt(Ue.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),vt("staggerTo,staggerFrom,staggerFromTo",(function(t){Ue[t]=function(){var e=new Le,n=Zt.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var We=function(t,e,n){return t[e]=n},qe=function(t,e,n){return t[e](n)},He=function(t,e,n,r){return t[e](r.fp,n)},Ge=function(t,e,n){return t.setAttribute(e,n)},Qe=function(t,e){return Y(t[e])?qe:X(t[e])&&t.setAttribute?Ge:We},Ke=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},Ze=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},$e=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},Je=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},tn=function(t,e,n,r){for(var i,u=this._pt;u;)i=u._next,u.p===r&&u.modifier(t,e,n),u=i},en=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Ot(this,r,"_pt"):r.dep||(e=1),r=n;return!e},nn=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},rn=function(t){for(var e,n,r,i,u=t._pt;u;){for(e=u._next,n=r;n&&n.pr>u.pr;)n=n._next;(u._prev=n?n._prev:i)?u._prev._next=u:r=u,(u._next=n)?n._prev=u:i=u,u=e}t._pt=r},un=function(){function t(t,e,n,r,i,u,s,a,o){this.t=e,this.s=r,this.c=i,this.p=n,this.r=u||Ke,this.d=s||this,this.set=a||We,this.pr=o||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=nn,this.m=t,this.mt=n,this.tween=e},t}();vt(dt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert",(function(t){return ot[t]=1})),et.TweenMax=et.TweenLite=Ue,et.TimelineLite=et.TimelineMax=Le,u=new Le({sortChildren:!1,defaults:B,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),P.stringFilter=ye;var sn={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n1)&&(e=qr(e)),t.length>1){for(s=t.totalLength*e,o=l=0;(o+=t[l++].totalLength)=1?1-1e-9:h||1e-9):p.angle||0),c}function oi(t,e,n,r,i,u,s){for(var a,o,l,h,f,D=t.length;--D>-1;)for(o=(a=t[D]).length,l=0;ll*(E*E+b*b)&&(D=h.length,t(e,n,p,c,v,y,F,w,l,h,f),t(F,w,C,x,_,m,a,o,l,h,f+1+(h.length-D))),h},xi=function(){function t(t,e,n){di||_i(),this.id=t,this.setData(e,n)}var e=t.prototype;return e.setData=function(t,e){e=e||{};var n,r,i,u,s,a,o,l,h,f=(t=t||"0,0,1,1").match(vi),D=1,p=[],c=[],d=e.precision||1,g=d<=1;if(this.data=t,(yi.test(t)||~t.indexOf("M")&&t.indexOf("C")<0)&&(f=hi(t)[0]),4===(n=f.length))f.unshift(0,0),f.push(1,1),n=8;else if((n-2)%6)throw"Invalid CustomEase";for(0==+f[0]&&1==+f[n-2]||function(t,e,n){n||0===n||(n=Math.max(+t[t.length-1],+t[1]));var r,i=-1*+t[0],u=-n,s=t.length,a=1/(+t[s-2]+i),o=-e||(Math.abs(+t[s-1]-+t[1])<.01*(+t[s-2]-+t[0])?function(t){var e,n=t.length,r=1e20;for(e=1;et.clientWidth&&(t.style.width=u-E+"px",t.clientWidth",m=1,v=e.specialChars?"function"==typeof e.specialChars?e.specialChars:hs:null,y=Ju.createElement("div"),C=t.parentNode;for(C.insertBefore(y,t),y.textContent=t.nodeValue,C.removeChild(t),h=-1!==(i=function t(e){var n=e.nodeType,r="";if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=t(e)}else if(3===n||4===n)return e.nodeValue;return r}(t=y)).indexOf("<"),!1!==e.reduceWhiteSpace&&(i=i.replace(is," ").replace(rs,"")),h&&(i=i.split("<").join("{{LT}}")),o=i.length,u=(" "===i.charAt(0)?g:"")+n(),s=0;s
Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin=0?"background:"+h:"background-color:"+h+";background-image:url("+d+");background-repeat:"+m+";background-size:"+f+";background-position:"+v,b="";g=null==g?0:g;var _=e[0].parentNode;if(e.detach(),e.find(".slot").each(function(){jQuery(this).remove()}),"box"===r)for(var w=0,x=0,k=0;k"+t+"
"),o&&s.append(""+o+"
"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(o){if(this[0]===window)return e.blockUI(o),this;var n=e.extend({},e.blockUI.defaults,o||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,t(this,o)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){o(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"Please wait...
",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var p=null,b=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();