1/*! js-cookie v3.0.0-rc.1 | MIT */ 2!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,function(){var n=e.Cookies,r=e.Cookies=t();r.noConflict=function(){return e.Cookies=n,r}}())}(this,function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var t={read:function(e){return e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};return function n(r,o){function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),n=r.write(n,t);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n+c}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],o={},i=0;i<n.length;i++){var c=n[i].split("="),u=c.slice(1).join("=");'"'===u[0]&&(u=u.slice(1,-1));try{var f=t.read(c[0]);if(o[f]=r.read(u,f),e===f)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){i(t,"",e({},n,{expires:-1}))},withAttributes:function(t){return n(this.converter,e({},this.attributes,t))},withConverter:function(t){return n(e({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(r)}})}(t,{path:"/"})}); 3 4 5(function( $ ) { 6 'use strict'; 7 8 /** 9 * All of the code for your public-facing JavaScript source 10 * should reside in this file. 11 * 12 * Note: It has been assumed you will write jQuery code here, so the 13 * $ function reference has been prepared for usage within the scope 14 * of this function. 15 * 16 * This enables you to define handlers, for when the DOM is ready: 17 * 18 * $(function() { 19 * 20 * }); 21 * 22 * When the window is loaded: 23 * 24 * $( window ).load(function() { 25 * 26 * }); 27 * 28 * ...and/or other possibilities. 29 * 30 * Ideally, it is not considered best practise to attach more than a 31 * single DOM-ready or window-load handler for a particular page. 32 * Although scripts in the WordPress core, Plugins and Themes may be 33 * practising this, we should strive to set a better example in our own work. 34 */ 35 36 var cookieName = 'modalClosed'; 37 38 if(typeof Cookies.get(cookieName) !== 'undefined') { 39 $('.modal-overlay').remove(); 40 }else{ 41 $('.modal-overlay').css('display', 'flex'); 42 } 43 44 $('.modal, .modal-close').on('click', function(){ 45 //Cookies.set(cookieName, 'ok', { expires: 0.083 }); 46 47 $('.modal-overlay').hide().remove(); 48 }); 49 50})( jQuery );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.