PageSourceSearch

https://www.okavango.com/gdpr-cookie-law/js/gdpr-cookie-law.min.js

js okavango.com collected 2026-09-26 21:03:14 UTC 16,664 bytes, 9 lines download raw bytes

1/*
2=======================================================================
3 * Item Name    : GDPR Cookie Law
4 * Item URL     : https://codecanyon.net/item/gdpr-cookie-law/22061612
5 * Item Version : 1.0.8
6 * Author by    : jablonczay
7=======================================================================
8 */
9!function(t,o){var n,i,e,a,c;function r(o,i){this.element=o,this.options=t.extend({},c,i),this._defaults=c,this._name=n,this.init()}n="gdprCookieLaw",i="gdpr-cookie-law",a=["fade","slide","fade-slide"],c={expire:150,breakpoint:"768px",zIndex:1e9,delay:null,theme:null,animationStatus:!0,animationDuration:1000,animationName:"'fade-slide",position:"bottom",margin:null,padding:"20px",width:"auto",bgColor:"#09a0e1",bgColorOpacity:1,boxShadowStatus:!0,boxShadowHorizonalOffset:"0px",boxShadowVerticalOffset:"0px",boxShadowBlur:"30px",boxShadowSpread:"0px",boxShadowColor:"#000",boxShadowOpacity:.05,fontFamily:null,fontSize:"16px",fontWeight:"normal",color:"#fff",contentWidth:"auto",iconStatus:!0,iconHideBelowBreakpointStatus:!1,iconHorizontalSpace:"1em",iconVerticalSpace:"0.5em",iconSize:"24px",iconColor:"currentColor",desc:"We use cookies to ensure that we give you the best experience on our website. By continuing to use our site, you accept our cookie policy.",contentAndBtnHorizontalSpace:"3em",contentAndBtnVerticalSpace:"2em",customAnchors:null,moreLinkStatus:!0,moreLinkDecorationStatus:!0,moreLinkDecorationType:"dotted",moreLinkText:"More information",moreLinkColor:"#fff",moreLinkFontFamily:null,moreLinkFontSize:"16px",moreLinkFontWeight:"bold",moreLinkHref:null,btnAcceptText:"Accept",btnAcceptPaddingTop:"15px",btnAcceptPaddingRight:"56px",btnAcceptPaddingBottom:"13px",btnAcceptPaddingLeft:"56px",btnAcceptBgColor:"#0780c0",btnAcceptBgColorHover:"#0670b0",btnAcceptBgColorFocus:"#0670b0",btnAcceptBgColorActive:"#0670b0",btnAcceptColor:"#fff",btnAcceptColorHover:"#fff",btnAcceptColorFocus:"#fff",btnAcceptColorActive:"#fff",btnAcceptBorderRadius:"999px",btnAcceptFontFamily:null,btnAcceptFontSize:"14px",btnAcceptFontWeight:"bold"},r.prototype.init=function(){var t,o,n;function i(){t.setStyle(o),t.setTpl(o),t.setAnimationName(e,o,"in"),t.accept(e,o),t.forceSmByWidth(e,o),t.resize(e,o)}o=(t=this).options,(n=parseInt(o.delay,10))?n>0&&setTimeout(i,n):i()},r.prototype.hexToRgba=function(t,o){var n;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(t))return 3===(n=t.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),"rgba("+[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n].join(",")+","+o+")";throw new Error("Bad hex value!")},r.prototype.setAnimationName=function(o,n,e,c){var r,d,l,p,m;n.animationStatus&&(-1!==a.indexOf(n.animationName)&&("fade"===n.animationName?(d="fade-in",l="fade-out"):"slide"===n.animationName?/^top/.test(n.position)?(d="slide-in-down",l="slide-out-up"):/^bottom/.test(n.position)&&(d="slide-in-up",l="slide-out-down"):"fade-slide"===n.animationName&&(/^top/.test(n.position)?(d="fade-in-down",l="fade-out-up"):/^bottom/.test(n.position)&&(d="fade-in-up",l="fade-out-down")),"in"===e?r=d:"out"===e&&(r=l),p=i+"--animation-"+r,m=i+"--animated",[i+"--animation-fade-in",i+"--animation-fade-out",i+"--animation-slide-in-up",i+"--animation-slide-in-down",i+"--animation-slide-out-up",i+"--animation-slide-out-down"].forEach(function(t){o.classList.remove(t)}),o.classList.add(p),o.classList.add(m),t(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){this.classList.remove(p),this.classList.remove(m),c&&"function"==typeof c&&c()})))},r.prototype.setStyle=function(t){var o,n={animation:""};n.animation+=t.animationStatus?" -webkit-animation-duration: "+t.animationDuration+"ms; animation-duration: "+t.animationDuration+"ms;":"",n.zIndex="",n.zIndex+=" z-index: "+t.zIndex+";",n.top="",n.top+="top"===t.position?" top: 0; bottom: initial;":"",n.bottom="",n.bottom+="bottom"===t.position?" bottom: 0; top: initial;":"",n.bottomLeft="",n.bottomLeft+="bottom-left"===t.position?" bottom: "+(t.margin?t.margin+";":"0;")+" top: initial; left: "+(t.margin?t.margin+";":"0;")+" right: initial;":"",n.bottomCenter="",n.bottomCenter+="bottom-center"===t.position?" bottom: "+(t.margin?t.margin+";":"0;")+" top: initial; right: 0; left: 0; margin-left: auto; margin-right: auto;
9":"",n.bottomRight="",n.bottomRight+="bottom-right"===t.position?" bottom: "+(t.margin?t.margin+";":"0;")+" top: initial; right: "+(t.margin?t.margin+";":"0;")+" left: initial;":"",n.topLeft="",n.topLeft+="top-left"===t.position?" top: "+(t.margin?t.margin+";":"0;")+" bottom: initial; left: "+(t.margin?t.margin+";":"0;")+" right: initial; margin-left: auto; margin-right: auto;":"",n.topCenter="",n.topCenter+="top-center"===t.position?" top: "+(t.margin?t.margin+";":"0;")+" bottom: initial; right: 0; left: 0; margin-left: auto; margin-right: auto;":"",n.topRight="",n.topRight+="top-right"===t.position?" top: "+(t.margin?t.margin+";":"0;")+" bottom: initial; right: "+(t.margin?t.margin+";":"0;")+" left: initial;":"",n.padding="",n.padding+=t.padding?" padding: "+t.padding+";":"",n.width="",n.width+=t.width?" width: "+t.width+";":"",n.width+=t.margin?" max-width: -webkit-calc(100% - "+2*window.parseInt(t.margin,10)+"px); max-width: calc(100% - "+2*window.parseInt(t.margin,10)+"px);":"",n.bgColor="",n.bgColor+=t.bgColor?" background-color: "+this.hexToRgba(t.bgColor,t.bgColorOpacity)+";":"",n.boxShadow="",n.boxShadow+=t.boxShadowStatus?" -webkit-box-shadow: "+t.boxShadowHorizonalOffset+" "+t.boxShadowVerticalOffset+" "+t.boxShadowBlur+" "+t.boxShadowSpread+" "+this.hexToRgba(t.boxShadowColor,t.boxShadowOpacity)+";":"",n.boxShadow+=t.boxShadowStatus?" -moz-box-shadow: "+t.boxShadowHorizonalOffset+" "+t.boxShadowVerticalOffset+" "+t.boxShadowBlur+" "+t.boxShadowSpread+" "+this.hexToRgba(t.boxShadowColor,t.boxShadowOpacity)+";":"",n.boxShadow+=t.boxShadowStatus?" box-shadow: "+t.boxShadowHorizonalOffset+" "+t.boxShadowVerticalOffset+" "+t.boxShadowBlur+" "+t.boxShadowSpread+" "+this.hexToRgba(t.boxShadowColor,t.boxShadowOpacity)+";":"",n.fontFamily=t.fontFamily?" font-family: "+t.fontFamily+";":"",n.fontSize="",n.fontSize+=t.fontSize?" font-size: "+t.fontSize+";":"",n.fontWeight="",n.fontWeight+=t.fontWeight?" font-weight: "+t.fontWeight+";":"",n.color="",n.color+=t.color?" color: "+t.color+";":"",t.iconStatus&&(n.iconBoxHide="",n.iconBoxHide+=" display: none;",n.iconBoxSize="",n.iconBoxSize+=" width: "+t.iconSize+";",n.iconBoxSm="",n.iconBoxSm+=" margin-bottom: "+t.iconVerticalSpace+"; margin-left: auto; margin-right: auto;",n.iconBoxLg="",n.iconBoxLg+=" margin-bottom: 0; margin-left: 0; margin-right: "+t.iconHorizontalSpace+";",n.iconColor="",n.iconColor+=" color: "+t.iconColor+";",n.iconSize="",n.iconSize+=" width: "+t.iconSize+"; height: "+t.iconSize+";"),n.contentAndBtnHorizontalSpace="",n.contentAndBtnHorizontalSpace+=t.contentAndBtnHorizontalSpace?" padding-bottom: 0; padding-right: "+t.contentAndBtnHorizontalSpace+";":"",n.contentAndBtnVerticalSpace="",n.contentAndBtnVerticalSpace+=t.contentAndBtnVerticalSpace?" padding-right: 0; padding-bottom: "+t.contentAndBtnVerticalSpace+";":"",n.contentWidth="",n.contentWidth+=t.contentWidth?" width: "+t.contentWidth+";":"",n.moreLinkDecoration="",n.moreLinkDecoration+="none"!==t.moreLinkDecorationType?" border-bottom: 1px "+t.moreLinkDecorationType+" currentColor;":"",n.moreLinkColor="",n.moreLinkColor+=t.moreLinkColor?" color: "+t.moreLinkColor+";":"",n.moreLinkFontFamily="",n.moreLinkFontFamily+=t.moreLinkFontFamily?" font-family: "+t.moreLinkFontFamily+";":"",n.moreLinkFontSize="",n.moreLinkFontSize+=t.moreLinkFontSize?" font-size: "+t.moreLinkFontSize+";":"",n.moreLinkFontWeight="",n.moreLinkFontWeight+=t.moreLinkFontWeight?" font-weight: "+t.moreLinkFontWeight+";":"",n.btnAcceptPaddingTop="",n.btnAcceptPaddingTop+=t.btnAcceptPaddingTop?" padding-top: "+t.btnAcceptPaddingTop+";":"",n.btnAcceptPaddingRight="",n.btnAcceptPaddingRight+=t.btnAcceptPaddingRight?" padding-right: "+t.btnAcceptPaddingRight+";":"",n.btnAcceptPaddingBottom="",n.btnAcceptPaddingBottom+=t.btnAcceptPaddingBottom?" padding-bottom: "+t.btnAcceptPaddingBottom+";":"",n.btnAcceptPaddingLeft="",n.btnAcceptPaddingLeft+=t.btnAcceptPaddingLeft?" padding-left: "+t.btnAcceptPaddingLeft+";":"",n.btnAcceptBgColor="",n.btnAcceptBgColor+=t.btnAcceptBgColor?" background-color: "+t.btnAcceptBgColor+";":"",n.btnAcceptBgColorHover="",n.btnAcceptBgColorHover+=t.btnAcceptBgColorHover?" background-color: "+t.btnAcceptBgColorHover+";":"",n.btnAcceptBgColorFocus="",n.btnAcceptBgColorFocus+=t.btnAcceptBgColorFocus?" background-color: "+t.btnAcceptBgColorFocus+";":"",n.btnAcceptBgColorActive="",n.btnAcceptBgColorActive+=t.btnAcceptBgColorActive?" background-color: "+t.btnAcceptBgColorActive+";":"",n.btnAcceptColor="",n.btnAcceptColor+=t.btnAcceptColor?" color: "+t.btnAcceptColor+";":"",n.btnAcceptColorHover="",n.btnAcceptColorHover+=t.btnAcceptColorHover?" color: "+t.btnAcceptColorHover+";":"",n.btnAcceptColorFocus="",n.btnAcceptColorFocus+=t.btnAcceptColorFocus?" color: "+t.btnAcceptColorFocus+";":"",n.btnAcceptColorActive="",n.btnAcceptColorActive+=t.btnAcceptColorActive?" color: "+t.btnAcceptColorActive+";":"",n.btnAcceptBorderRadius="",n.btnAcceptBorderRadius+=t.btnAcceptBorderRadius?" border-radius: "+t.btnAcceptBorderRadius+";":"",n.btnAcceptFontFamily="",n.btnAcceptFontFamily+=t.btnAcceptFontFamily?" font-family: "+t.btnAcceptFontFamily+";":"",n.btnAcceptFontSize="",n.btnAcceptFontSize+=t.btnAcceptFontSize?" font-size: "+t.btnAcceptFontSize+";":"",n.btnAcceptFontWeight="",n.btnAcceptFontWeight+=t.btnAcceptFontWeight?" font-weight: "+t.btnAcceptFontWeight+";":"",o="",o+="."+i+" {"+n.animation+n.zIndex+n.top+n.bottom+n.bottomLeft+n.bottomCenter+n.bottomRight+n.topLeft+n.topCenter+n.topRight+n.padding+n.width+n.bgColor+n.boxShadow+n.fontFamily+n.fontSize+n.fontWeight+n.color+" }\r\n",t.animationStatus&&"fade"===t.animationName&&(o+="."+i+"--animation-fade-in { -webkit-animation-name: "+i+"-fade-in; animation-name: "+i+"-fade-in; }\r\n",o+="."+i+"--animation-fade-out { -webkit-animation-name: "+i+"-fade-out; animation-name: "+i+"-fade-out; }\r\n"),t.animationStatus&&"slide"===t.animationName&&(o+="."+i+"--animation-fade-slide-in-up { -webkit-animation-name: "+i+"-slide-in-up; animation-name: "+i+"-slide-in-up; }\r\n",o+="."+i+"--animation-fade-slide-in-down { -webkit-animation-name: "+i+"-slide-in-down; animation-name: "+i+"-slide-in-down; }\r\n",o+="."+i+"--animation-fade-slide-out-up { -webkit-animation-name: "+i+"-slide-out-up; animation-name: "+i+"-slide-out-up; }\r\n",o+="."+i+"--animation-fade-slide-out-down { -webkit-animation-name: "+i+"-slide-out-down; animation-name: "+i+"-slide-out-down; }\r\n"),o+="."+i+"__body {"+n.contentWidth+" }
9\r\n",t.iconStatus&&(o+="."+i+"__icon-box {"+n.iconBoxSize+" }\r\n",o+="."+i+"--sm ."+i+"__icon-box, ."+i+"--sm-fix ."+i+"__icon-box {"+n.iconBoxSm+" }\r\n",o+="."+i+":not(."+i+"--sm):not(."+i+"--sm-fix) ."+i+"__icon-box {"+n.iconBoxLg+" }\r\n",o+="."+i+"--sm ."+i+"__icon-box--sm-hide, ."+i+"--sm-fix ."+i+"__icon-box--sm-hide { "+n.iconBoxHide+" }\r\n",o+="."+i+"__icon {"+n.iconSize+n.iconColor+" }\r\n"),o+="."+i+"__desc {"+n.contentAndBtnHorizontalSpace+" }\r\n",o+="."+i+"--sm ."+i+"__desc, ."+i+"--sm-fix ."+i+"__desc {"+n.contentAndBtnVerticalSpace+" }\r\n",o+="."+i+"__link {"+n.moreLinkDecoration+n.moreLinkColor+n.moreLinkFontFamily+n.moreLinkFontSize+n.moreLinkFontWeight+" }\r\n",o+="."+i+"__btn--accept {"+n.btnAcceptPaddingTop+n.btnAcceptPaddingRight+n.btnAcceptPaddingBottom+n.btnAcceptPaddingLeft+n.btnAcceptBgColor+n.btnAcceptColor+n.btnAcceptBorderRadius+n.btnAcceptFontFamily+n.btnAcceptFontSize+n.btnAcceptFontWeight+" }\r\n",o+="."+i+"__btn--accept:hover {"+n.btnAcceptBgColorHover+n.btnAcceptColorHover+" }\r\n",o+="."+i+"__btn--accept:focus {"+n.btnAcceptBgColorFocus+n.btnAcceptColorFocus+" }\r\n",o+="."+i+"__btn--accept:active {"+n.btnAcceptBgColorActive+n.btnAcceptColorActive+" }\r\n",document.querySelector("head").insertAdjacentHTML("beforeend",'<style id="'+i+'-style">'+o+"</style>")},r.prototype.getTpl=function(t){var o="";return o+='<div class="'+i+(null!==this.getCookie(i)?" "+i+"--is-hidden":"")+(null!==t.theme?" "+i+"--"+t.theme:"")+'" id="'+i+'">',o+='<div class="'+i+'__body">',t.iconStatus&&(o+='<div class="'+i+"__icon-box"+(t.iconHideBelowBreakpointStatus?" "+i+"__icon-box--sm-hide":"")+'">',o+='<svg class="'+i+'__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">',o+='<path d="M19.098 11.266a3.809 3.809 0 01-.924-1.577 3.001 3.001 0 01-3.188-.679 3 3 0 01-.678-3.187 3.836 3.836 0 01-1.577-.923c-1.334-1.334-1.438-3.414-.346-4.882C12.259.016 12.131 0 12 0c-.646 0-1.277.063-1.896.165l-.02.003a13.098 13.098 0 00-1.119.234 12.557 12.557 0 00-1.094.343c-.34.124-.672.264-.997.417l-.058.028a12.348 12.348 0 00-1.007.545c-.284.17-.559.352-.827.545-.043.03-.084.063-.126.094-.252.187-.496.382-.732.586-.054.048-.106.098-.161.146-.217.197-.43.4-.633.612-.064.067-.125.138-.188.206-.184.202-.366.408-.537.623-.072.09-.138.185-.208.277-.151.203-.301.408-.441.621-.076.115-.143.236-.215.354-.122.2-.244.4-.354.608-.075.142-.14.29-.209.435-.093.194-.188.387-.271.586-.07.17-.128.347-.191.521-.066.184-.138.366-.195.554-.062.202-.107.41-.158.617-.042.169-.091.336-.126.508-.049.246-.08.498-.114.75-.019.14-.047.276-.062.417C.021 11.191 0 11.594 0 12c0 6.627 5.372 12 12 12 .406 0 .809-.021 1.204-.061.14-.015.272-.043.411-.062.253-.034.508-.065.756-.114.171-.035.337-.084.505-.125.208-.053.417-.099.62-.16.188-.058.369-.127.552-.193.177-.063.354-.121.524-.191.199-.082.389-.178.582-.27.146-.07.297-.137.438-.213.206-.108.404-.229.604-.351.119-.073.242-.142.359-.219.211-.138.414-.287.613-.438.096-.07.191-.139.284-.213.212-.168.416-.348.616-.531.07-.063.144-.127.213-.192.21-.202.41-.412.605-.628.051-.057.103-.109.15-.167.203-.233.396-.476.581-.726.032-.045.067-.088.101-.133.19-.267.371-.539.541-.82.02-.032.041-.064.059-.1.176-.294.338-.597.486-.906l.031-.066c.15-.321.29-.65.413-.987.005-.013.011-.024.015-.039a12.33 12.33 0 00.334-1.076c.094-.365.172-.734.232-1.111l.001-.008c.062-.379.103-.764.127-1.152l.001-.004c.021-.247.042-.493.042-.744 0-.132-.016-.259-.02-.391a3.737 3.737 0 01-4.882-.343zM6.001 15.5a3 3 0 11-.002-6 3 3 0 01.002 6zM7.5 7a1.5 1.5 0 113.001.001A1.5 1.5 0 017.5 7zM12 20a2 2 0 11.001-4.001A2 2 0 0112 20zm1-7a1 1 0 110-2 1 1 0 010 2zm5 4.5a1.5 1.5 0 11.001-3.001A1.5 1.5 0 0118 17.5z"></path>',o+='<circle cx="23" cy="6" r="1"></circle>',o+='<circle cx="18" cy="2" r="2"></circle>',o+="</svg>",o+="</div>"),o+='<div class="'+i+'__desc">',o+=t.desc,t.moreLinkStatus&&(o+=' <a class="'+i+'__link" href="'+(t.moreLinkHref?t.moreLinkHref:"#")+'" target="_blank">'+t.moreLinkText+"</a>"),o+="</div>",o+='<div class="'+i+'__btn-bar">',o+='<button class="'+i+"__btn "+i+'__btn--accept" id="'+i+'-accept-btn" type="button">'+t.btnAcceptText+"</button>",o+="</div>",o+="</div>",o+="</div>"},r.prototype.setCustomAnchors=function(t,o){var n;return o.forEach(function(o){n="<a ",n+='class="'+i+'__link " ',n+='href="'+(o.href?o.href:"#")+'" ',n+='target="'+(o.target?o.target:"_blank")+'" ',n+=o.title?'title="'+o.title+'"':"",n+=">",n+=o.text?o.text:"",n+="</a>",t=t.replace(new RegExp("{{"+o.id+"}}","mg"),n)}),t},r.prototype.setTpl=function(t){var o=this.getTpl(t);/\{\{|\}\}/gm.test(o)&&(o=this.setCustomAnchors(o,t.customAnchors)),document.querySelector("body").insertAdjacentHTML("beforeend",o),e=document.getElementById(i)},r.prototype.getCookie=function(t){var o=document.cookie.match("(^|;) ?"+t+"=([^;]*)(;|$)");return o?o[2]:null},r.prototype.setCookie=function(t,o,n){var i=new Date;i.setTime(i.getTime()+864e5*n),document.cookie=t+"="+o+";path=/;expires="+i.toGMTString()},r.prototype.accept=function(t,o){var n=this;t.querySelector("."+i+"__btn--accept").addEventListener("click",function(){if(this.blur(),o.animationStatus&&-1!==a.indexOf(o.animationName))o.animationStatus&&n.setAnimationName(t,o,"out",function(){t.classList.add(i+"--is-hidden"),null===n.getCookie(i)&&n.setCookie(i,"1",o.expire)});else{if(t.classList.add(i+"--is-hidden"),null!==n.getCookie(i))return;
9n.setCookie(i,"1",o.expire)}})},r.prototype.forceSmByWidth=function(t,o){var n,e;o.width&&"auto"!==o.width&&(n=window.parseInt(o.width,10),e=window.parseInt(o.breakpoint,10),t.classList.remove(i+"--sm-fix"),n>=e||t.classList.add(i+"--sm-fix"))},r.prototype.resize=function(t,o){var n;function e(){n=window.matchMedia("(min-width: "+o.breakpoint+")"),t.classList.remove(i+"--sm"),n.matches||t.classList.add(i+"--sm")}window.addEventListener("resize",e),e()},t.fn[n]=function(o){return this.each(function(){t.data(this,"plugin_"+n)||t.data(this,"plugin_"+n,new r(this,o))})}}(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.