PageSourceSearch

https://azur.co.nz/js/cookie-warn.min.js

js azur.co.nz collected 2026-10-03 21:18:30 UTC 4,961 bytes, 9 lines download raw bytes

1/**
2 * @preserve cookie-warn - EU cookie warn
3 * 
4 * @version v3.1.19
5 * @link https://schalk.hu/projects/cookie-warn/demo/index.html
6 * @author Tamas Schalk (https://github.com/schalkt)
7 * @license MIT
8 */
9!function(e){"use strict";var t=e+"Box",a="azurlodge.accepted",o=document.getElementById(e);if(o){var c,n=function(){var e=document.documentElement.lang?document.documentElement.lang:"en",t=o.getAttribute("data-lang-"+e),a,c;return a=t?JSON.parse(t.replace(/'/g,'"')):{text:"We use cookies on this site to improve your experience and deliver content tailored to your interest.",accept_text:"Accept",more_text:"Read more",more_link:"/privacy/",reject_text:"Reject",reject_info:null,reject_link:null,close_text:"Close"},(c={delay:parseInt(o.getAttribute("data-delay")),expire:parseInt(o.getAttribute("data-expire")),domain:o.getAttribute("data-domain"),path:o.getAttribute("data-path"),secure:o.getAttribute("data-secure"),debug:o.getAttribute("data-debug"),style:o.getAttribute("data-style"),class:o.getAttribute("data-class"),callback:o.getAttribute("data-callback"),data:a}).path=c.path?c.path:"/",c.delay=c.delay?c.delay:750,c.expire=c.expire?c.expire:365,c.secure="true"==c.secure,c.debug="true"==c.debug,c.debug&&console.log(c),c}(),l=function(e,t,a,o,c,l){if(void 0===t){var r,s,i,d=document.cookie.split(";");for(r=0;r<d.length;r++)if(s=d[r].substr(0,d[r].indexOf("=")),i=d[r].substr(d[r].indexOf("=")+1),(s=s.replace(/^\s+|\s+$/g,""))==e)return i}else{var u=[],p=new Date;a=a||365,p.setDate(p.getDate()+a),null!=a&&null!=a&&u.push("expires="+p.toGMTString()),null!=o&&null!=o&&u.push("path="+o),null!=c&&null!=c&&u.push("domain="+c),null!=l&&null!=l&&l&&u.push("secure"),u.length>0&&(t=t+"; "+u.join("; ")),n.debug&&console.log(e,t),document.cookie=escape(e)+"="+t}};window[e]={accept:function(){l(a,!0,n.expire,n.path,n.domain,n.secure);var e=document.getElementById(t);e.className=e.className+" closed",s(r=!0)},reject:function(){l(a,!1,n.expire,n.path,n.domain,n.secure);var e=document.getElementById(t);n.data.reject_info?e.className=e.className+" reject":e.className=e.className+" closed",s(r=!1)},close:function(){var e=document.getElementById(t);e.className=e.className+" closed"}};var r=l(a),s=function(e){var t="true"==e||!0===e;n.debug&&console.log("status: "+(t?"accepted":"rejected")),n.callback||(n.callback="cookieWarnCallback"),n.callback&&window[n.callback]&&(n.debug&&console.log("call: "+n.callback),window[n.callback](t))},i=function(){if(n.data){var a=window.jQuery&&"function"==typeof $().modal,o;({style:["#cookieWarnBox {transition:all 0.4s ease-in-out;position:fixed;z-index:999999;bottom:-20px;left:0;right:0;opacity:0;text-align:center;padding:10px;background-color:#f0f0f0;border-top:1px solid 8e7c4c}","#cookieWarnBox .btn {white-space:nowrap}","#cookieWarnBox .reject_more {padding:0px 10px;display:none;}","#cookieWarnBox.reject .reject_more {display:block;}","#cookieWarnBox.loaded {opacity:0.9;bottom:0px}","#cookieWarnBox.closed {display:none;}"],style2:["#cookieWarnBox {line-height:24px;color:#2c2c2c;font-size:14px;}","#cookieWarnBox .btn {font-weight:bold;text-transform:uppercase;cursor:pointer;background-color:#8e7c4c;color:#f1f1f1;padding:3px 14px;margin-left:10px;}","#cookieWarnBox .btn:hover {background-color:#8e7c4c;color:#ffffff;}","#cookieWarnBox a {text-decoration:underline;color:#8e7c4c}","#cookieWarnBox a:hover {text-decoration:none;color:#8e7c4c}"],type:"text/css",element:document.createElement("style"),append:function(){a||(this.style=this.style.concat(this.style2)),n.style&&(this.style=this.style.concat(n.style)),this.element.type=this.type,this.element.appendChild(document.createTextNode(this.style.join(" "))),document.head.insertBefore(this.element,document.head.childNodes[0])}}).append();var c=document.createElement("div");c.setAttribute("id",t),n.class&&c.setAttribute("class",n.class);var l=n.data.more_link&&n.data.more_text?' <a target="_blank" href="'+n.data.more_link+'">'+n.data.more_text+"</a> ":"",r='<span class="btn-wrapper"><span class="btn btn-success" id="'+e+'Accept" onclick="'+e+'.accept();">'+n.data.accept_text+"</span> ",s="",i="",d;n.data.reject_text&&(s='<span class="btn btn-warning" onclick="'+e+'.reject();">'+n.data.reject_text+"</span></span> ",(n.data.reject_info||n.data.reject_link)&&(i=' <span class="reject_more">',i+=n.data.reject_info+' <a target="_blank" href="'+n.data.reject_link+'">'+n.data.reject_link+"</a> ",i+=' <span class="btn btn-secondary" id="'+e+'Close" onclick="'+e+'.close();">'+n.data.close_text+"</span> ",i+=" </span> ")),c.innerHTML='<div class="text">'+n.data.text+l+r+s+i+"</div>",document.getElementsByTagName("body")[0].appendChild(c),setTimeout((function(){c.className=c.className+" loaded"}),n.delay)}else console.error("Empty or invalid data-lang parameters")},d=function(){var e=document.readyState;n.debug&&console.log("readyState: "+e),"complete"==e?r?s(r):i():setTimeout((function(){d()}),200)};d()}}("cookieWarn");

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.