From ae1a7d9d1848aec76e0fb131e6c89617e1c2922f Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 13 Apr 2019 16:41:39 +0200 Subject: [PATCH] Update 2019-04-13T14:41:34.502Z --- bundle.js | 2 +- index.html | 2 +- sitemap.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bundle.js b/bundle.js index 5d4e59e..47b70ea 100644 --- a/bundle.js +++ b/bundle.js @@ -255,4 +255,4 @@ t.exports=function(t,e){"use strict";function i(t,e){for(var i=0;i=i){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;){this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&(void 0===this._offsets[s+1]||tMath.max(document.documentElement.clientHeight,window.innerHeight||0))&&function(t){return void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,!(t<0)}(e.bottom)}(s[0])){for(var o=i.data,r=o.preloadCount,a=o.elements,l=a.indexOf(e(i.relatedTarget).find("picture")[0]),h=0;h=0},addClass:function(t,e){t.className+=" "+e},removeClass:function(t,e){var i=new RegExp("\\b"+this.escapeRegExp(e)+"\\b");t.className=t.className.replace(i,"")},interpolateString:function(t,e){return t.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,function(t){return e(arguments[1])||""})},getCookie:function(t){var e=("; "+document.cookie).split("; "+t+"=");return e.length<2?void 0:e.pop().split(";").shift()},setCookie:function(t,e,i,n,s,o){var r=new Date;r.setDate(r.getDate()+(i||365));var a=[t+"="+e,"expires="+r.toUTCString(),"path="+(s||"/")];n&&a.push("domain="+n),o&&a.push("secure"),document.cookie=a.join(";")},deepExtend:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(i in t&&this.isPlainObject(t[i])&&this.isPlainObject(e[i])?this.deepExtend(t[i],e[i]):t[i]=e[i]);return t},throttle:function(t,e){var i=!1;return function(){i||(t.apply(this,arguments),i=!0,setTimeout(function(){i=!1},e))}},hash:function(t){var e,i,n=0;if(0===t.length)return n;for(e=0,i=t.length;e=128?"#000":"#fff"},getLuminance:function(t){var e=parseInt(this.normaliseHex(t),16),i=38+(e>>16),n=38+(e>>8&255),s=38+(255&e);return"#"+(16777216+65536*(i<255?i<1?0:i:255)+256*(n<255?n<1?0:n:255)+(s<255?s<1?0:s:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(t){return"object"==typeof t&&null!==t&&t.constructor==Object},traverseDOMPath:function(t,i){return t&&t.parentNode?e.hasClass(t,i)?t:this.traverseDOMPath(t.parentNode,i):null}};t.status={deny:"deny",allow:"allow",dismiss:"dismiss"},t.transitionEnd=function(){var t=document.createElement("div"),e={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var i in e)if(e.hasOwnProperty(i)&&void 0!==t.style[i+"ransition"])return e[i];return""}(),t.hasTransition=!!t.transitionEnd;var i=Object.keys(t.status).map(e.escapeRegExp);t.customStyles={},t.Popup=function(){var n={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(t){},onStatusChange:function(t,e){},onRevokeChoice:function(){},onNoCookieLaw:function(t,e){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://cookiesandyou.com",close:"❌",target:"_blank",policy:"Cookie Policy"},elements:{header:'{{header}} ',message:'{{message}}',messagelink:'{{message}} {{link}}',dismiss:'{{dismiss}}',allow:'{{allow}}',deny:'{{deny}}',link:'{{link}}',close:'{{close}}'},window:'',revokeBtn:'
{{policy}}
',compliance:{info:'
{{dismiss}}
',"opt-in":'
{{deny}}{{allow}}
',"opt-out":'
{{deny}}{{allow}}
'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};function s(){this.initialise.apply(this,arguments)}function o(t){this.openingTimeout=null,e.removeClass(t,"cc-invisible")}function r(e){e.style.display="none",e.removeEventListener(t.transitionEnd,this.afterTransition),this.afterTransition=null}function a(){var t=[];return this.options.position.split("-").forEach(function(e){t.push("cc-"+e)}),t}function l(n){var s=this.options,o=document.createElement("div"),r=s.container&&1===s.container.nodeType?s.container:document.body;o.innerHTML=n;var a=o.children[0];return a.style.display="none",e.hasClass(a,"cc-window")&&t.hasTransition&&e.addClass(a,"cc-invisible"),this.onButtonClick=function(n){var s=e.traverseDOMPath(n.target,"cc-btn")||n.target;if(e.hasClass(s,"cc-btn")){var o=s.className.match(new RegExp("\\bcc-("+i.join("|")+")\\b")),r=o&&o[1]||!1;r&&(this.setStatus(r),this.close(!0))}e.hasClass(s,"cc-close")&&(this.setStatus(t.status.dismiss),this.close(!0)),e.hasClass(s,"cc-revoke")&&this.revokeChoice()}.bind(this),a.addEventListener("click",this.onButtonClick),s.autoAttach&&(r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a)),a}function h(t,e){for(var i=0,n=t.length;i=0;return s&&e(n),s}.call(this)&&(this.options.enabled=!1),h(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),h(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var s=this.options.window.replace("{{classes}}",function(){var i=this.options,n="top"==i.position||"bottom"==i.position?"banner":"floating";e.isMobile()&&(n="floating");var s=["cc-"+n,"cc-type-"+i.type,"cc-theme-"+i.theme];return i.static&&s.push("cc-static"),s.push.apply(s,a.call(this)),function(i){var n=e.hash(JSON.stringify(i)),s="cc-color-override-"+n,o=e.isPlainObject(i);return this.customStyleSelector=o?s:null,o&&function(i,n,s){if(t.customStyles[i])++t.customStyles[i].references;else{var o={},r=n.popup,a=n.button,l=n.highlight;r&&(r.text=r.text?r.text:e.getContrast(r.background),r.link=r.link?r.link:r.text,o[s+".cc-window"]=["color: "+r.text,"background-color: "+r.background],o[s+".cc-revoke"]=["color: "+r.text,"background-color: "+r.background],o[s+" .cc-link,"+s+" .cc-link:active,"+s+" .cc-link:visited"]=["color: "+r.link],a&&(a.text=a.text?a.text:e.getContrast(a.background),a.border=a.border?a.border:"transparent",o[s+" .cc-btn"]=["color: "+a.text,"border-color: "+a.border,"background-color: "+a.background],a.padding&&o[s+" .cc-btn"].push("padding: "+a.padding),"transparent"!=a.background&&(o[s+" .cc-btn:hover, "+s+" .cc-btn:focus"]=["background-color: "+(a.hover||function(t){return"000000"==(t=e.normaliseHex(t))?"#222":e.getLuminance(t)}(a.background))]),l?(l.text=l.text?l.text:e.getContrast(l.background),l.border=l.border?l.border:"transparent",o[s+" .cc-highlight .cc-btn:first-child"]=["color: "+l.text,"border-color: "+l.border,"background-color: "+l.background]):o[s+" .cc-highlight .cc-btn:first-child"]=["color: "+r.text]));var h=document.createElement("style");document.head.appendChild(h),t.customStyles[i]={references:1,element:h.sheet};var c=-1;for(var u in o)o.hasOwnProperty(u)&&h.sheet.insertRule(u+"{"+o[u].join(";")+"}",++c)}}(n,i,"."+s),o}.call(this,this.options.palette),this.customStyleSelector&&s.push(this.customStyleSelector),s}.call(this).join(" ")).replace("{{children}}",function(){var t={},i=this.options;i.showLink||(i.elements.link="",i.elements.messagelink=i.elements.message),Object.keys(i.elements).forEach(function(n){t[n]=e.interpolateString(i.elements[n],function(t){var e=i.content[t];return t&&"string"==typeof e&&e.length?e:""})});var n=i.compliance[i.type];n||(n=i.compliance.info),t.compliance=e.interpolateString(n,function(e){return t[e]});var s=i.layouts[i.layout];return s||(s=i.layouts.basic),e.interpolateString(s,function(e){return t[e]})}.call(this)),o=this.options.overrideHTML;if("string"==typeof o&&o.length&&(s=o),this.options.static){var r=l.call(this,'
'+s+"
");r.style.display="",this.element=r.firstChild,this.element.style.display="none",e.addClass(this.element,"cc-invisible")}else this.element=l.call(this,s);(function(){var i=this.setStatus.bind(this),n=this.close.bind(this),s=this.options.dismissOnTimeout;"number"==typeof s&&s>=0&&(this.dismissTimeout=window.setTimeout(function(){i(t.status.dismiss),n(!0)},Math.floor(s)));var o=this.options.dismissOnScroll;if("number"==typeof o&&o>=0){var r=function(e){window.pageYOffset>Math.floor(o)&&(i(t.status.dismiss),n(!0),window.removeEventListener("scroll",r),this.onWindowScroll=null)};this.options.enabled&&(this.onWindowScroll=r,window.addEventListener("scroll",r))}var a=this.options.dismissOnWindowClick,l=this.options.ignoreClicksFrom;if(a){var h=function(s){for(var o=!1,r=s.path.length,a=l.length,c=0;cs&&(i=!0),i?e.hasClass(n,"cc-active")||e.addClass(n,"cc-active"):e.hasClass(n,"cc-active")&&e.removeClass(n,"cc-active")},200);this.onMouseMove=s,window.addEventListener("mousemove",s)}}}.call(this),this.options.autoOpen&&this.autoOpen()},s.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onWindowClick&&(window.removeEventListener("click",this.onWindowClick),this.onWindowClick=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,function(i){if(e.isPlainObject(i)){var n=e.hash(JSON.stringify(i)),s=t.customStyles[n];if(s&&!--s.references){var o=s.element.ownerNode;o&&o.parentNode&&o.parentNode.removeChild(o),t.customStyles[n]=null}}}(this.options.palette),this.options=null},s.prototype.open=function(e){if(this.element)return this.isOpen()||(t.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},s.prototype.close=function(e){if(this.element)return this.isOpen()&&(t.hasTransition?this.fadeOut():this.element.style.display="none",e&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},s.prototype.fadeIn=function(){var i=this.element;if(t.hasTransition&&i&&(this.afterTransition&&r.call(this,i),e.hasClass(i,"cc-invisible"))){if(i.style.display="",this.options.static){var n=this.element.clientHeight;this.element.parentNode.style.maxHeight=n+"px"}this.openingTimeout=setTimeout(o.bind(this,i),20)}},s.prototype.fadeOut=function(){var i=this.element;t.hasTransition&&i&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),o.bind(this,i)),e.hasClass(i,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=r.bind(this,i),i.addEventListener(t.transitionEnd,this.afterTransition),e.addClass(i,"cc-invisible")))},s.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!t.hasTransition||!e.hasClass(this.element,"cc-invisible"))},s.prototype.toggleRevokeButton=function(t){this.revokeBtn&&(this.revokeBtn.style.display=t?"":"none")},s.prototype.revokeChoice=function(t){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),t||this.autoOpen()},s.prototype.hasAnswered=function(e){return Object.keys(t.status).indexOf(this.getStatus())>=0},s.prototype.hasConsented=function(e){var i=this.getStatus();return i==t.status.allow||i==t.status.dismiss},s.prototype.autoOpen=function(t){!this.hasAnswered()&&this.options.enabled?this.open():this.hasAnswered()&&this.options.revokable&&this.toggleRevokeButton(!0)},s.prototype.setStatus=function(i){var n=this.options.cookie,s=e.getCookie(n.name),o=Object.keys(t.status).indexOf(s)>=0;Object.keys(t.status).indexOf(i)>=0?(e.setCookie(n.name,i,n.expiryDays,n.domain,n.path,n.secure),this.options.onStatusChange.call(this,i,o)):this.clearStatus()},s.prototype.getStatus=function(){return e.getCookie(this.options.cookie.name)},s.prototype.clearStatus=function(){var t=this.options.cookie;e.setCookie(t.name,"",-1,t.domain,t.path)},s}(),t.Location=function(){var t={timeout:5e3,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(t,e){try{var i=JSON.parse(e);return i.error?n(i):{code:i.country}}catch(t){return n({error:"Invalid response ("+t+")"})}}}},ipinfodb:function(t){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(t,e){try{var i=JSON.parse(e);return"ERROR"==i.statusCode?n({error:i.statusMessage}):{code:i.countryCode}}catch(t){return n({error:"Invalid response ("+t+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(t){window.geoip2?geoip2.country(function(e){try{t({code:e.country.iso_code})}catch(e){t(n(e))}},function(e){t(n(e))}):t(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};function i(i){e.deepExtend(this.options={},t),e.isPlainObject(i)&&e.deepExtend(this.options,i),this.currentServiceIndex=-1}function n(t){return new Error("Error ["+(t.code||"UNKNOWN")+"]: "+t.error)}return i.prototype.getNextService=function(){var t;do{t=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex3&&e(o)}),o.send(n)})(this.setupUrl(t),function(n){var s=n?n.responseText:"";t.__JSONP_DATA&&(s=t.__JSONP_DATA,delete t.__JSONP_DATA),i.runServiceCallback.call(i,e,t,s)},this.options.timeout,t.data,t.headers)},i.prototype.runServiceCallback=function(t,e,i){var n=this,s=e.callback(function(e){s||n.onServiceResult.call(n,t,e)},i);s&&this.onServiceResult.call(this,t,s)},i.prototype.onServiceResult=function(t,e){e instanceof Error||e&&e.error?t.call(this,e,null):t.call(this,null,e)},i.prototype.runNextServiceOnError=function(t,e){if(t){this.logError(t);var i=this.getNextService();i?this.runService(i,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,e)},i.prototype.getCurrentServiceOpts=function(){var t=this.options.services[this.currentServiceIndex];return"string"==typeof t?{name:t}:"function"==typeof t?t():e.isPlainObject(t)?t:{}},i.prototype.completeService=function(t,e){this.currentServiceIndex=-1,t&&t(e)},i.prototype.logError=function(t){var e=this.currentServiceIndex,i=this.getServiceByIdx(e);console.warn("The service["+e+"] ("+i.url+") responded with the following error",t)},i}(),t.Law=function(){var t={regionalLaw:!0,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","ES","SE","GB","UK","GR","EU"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};function i(t){this.initialise.apply(this,arguments)}return i.prototype.initialise=function(i){e.deepExtend(this.options={},t),e.isPlainObject(i)&&e.deepExtend(this.options,i)},i.prototype.get=function(t){var e=this.options;return{hasLaw:e.hasLaw.indexOf(t)>=0,revokable:e.revokable.indexOf(t)>=0,explicitAction:e.explicitAction.indexOf(t)>=0}},i.prototype.applyLaw=function(t,e){var i=this.get(e);return i.hasLaw||(t.enabled=!1,"function"==typeof t.onNoCookieLaw&&t.onNoCookieLaw(e,i)),this.options.regionalLaw&&(i.revokable&&(t.revokable=!0),i.explicitAction&&(t.dismissOnScroll=!1,t.dismissOnTimeout=!1)),t},i}(),t.initialise=function(i,n,s){var o=new t.Law(i.law);n||(n=function(){}),s||(s=function(){});var r=Object.keys(t.status),a=e.getCookie("cookieconsent_status");r.indexOf(a)>=0?n(new t.Popup(i)):t.getCountryCode(i,function(e){delete i.law,delete i.location,e.code&&(i=o.applyLaw(i,e.code)),n(new t.Popup(i))},function(e){delete i.law,delete i.location,s(e,new t.Popup(i))})},t.getCountryCode=function(e,i,n){e.law&&e.law.countryCode?i({code:e.law.countryCode}):e.location?new t.Location(e.location).locate(function(t){i(t||{})},n):i({})},t.utils=e,t.hasInitialised=!0,window.cookieconsent=t}}(window.cookieconsent||{})}]); \ No newline at end of file +t.exports=function(t,e){"use strict";function i(t,e){for(var i=0;i=i){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;){this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&(void 0===this._offsets[s+1]||tMath.max(document.documentElement.clientHeight,window.innerHeight||0))&&function(t){return void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,!(t<0)}(e.bottom)}(s[0])){for(var o=i.data,r=o.preloadCount,a=o.elements,l=a.indexOf(e(i.relatedTarget).find("picture")[0]),h=0;h=0},addClass:function(t,e){t.className+=" "+e},removeClass:function(t,e){var i=new RegExp("\\b"+this.escapeRegExp(e)+"\\b");t.className=t.className.replace(i,"")},interpolateString:function(t,e){return t.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,function(t){return e(arguments[1])||""})},getCookie:function(t){var e=("; "+document.cookie).split("; "+t+"=");return e.length<2?void 0:e.pop().split(";").shift()},setCookie:function(t,e,i,n,s,o){var r=new Date;r.setDate(r.getDate()+(i||365));var a=[t+"="+e,"expires="+r.toUTCString(),"path="+(s||"/")];n&&a.push("domain="+n),o&&a.push("secure"),document.cookie=a.join(";")},deepExtend:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(i in t&&this.isPlainObject(t[i])&&this.isPlainObject(e[i])?this.deepExtend(t[i],e[i]):t[i]=e[i]);return t},throttle:function(t,e){var i=!1;return function(){i||(t.apply(this,arguments),i=!0,setTimeout(function(){i=!1},e))}},hash:function(t){var e,i,n=0;if(0===t.length)return n;for(e=0,i=t.length;e=128?"#000":"#fff"},getLuminance:function(t){var e=parseInt(this.normaliseHex(t),16),i=38+(e>>16),n=38+(e>>8&255),s=38+(255&e);return"#"+(16777216+65536*(i<255?i<1?0:i:255)+256*(n<255?n<1?0:n:255)+(s<255?s<1?0:s:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(t){return"object"==typeof t&&null!==t&&t.constructor==Object},traverseDOMPath:function(t,i){return t&&t.parentNode?e.hasClass(t,i)?t:this.traverseDOMPath(t.parentNode,i):null}};t.status={deny:"deny",allow:"allow",dismiss:"dismiss"},t.transitionEnd=function(){var t=document.createElement("div"),e={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var i in e)if(e.hasOwnProperty(i)&&void 0!==t.style[i+"ransition"])return e[i];return""}(),t.hasTransition=!!t.transitionEnd;var i=Object.keys(t.status).map(e.escapeRegExp);t.customStyles={},t.Popup=function(){var n={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(t){},onStatusChange:function(t,e){},onRevokeChoice:function(){},onNoCookieLaw:function(t,e){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://cookiesandyou.com",close:"❌",target:"_blank",policy:"Cookie Policy"},elements:{header:'{{header}} ',message:'{{message}}',messagelink:'{{message}} {{link}}',dismiss:'{{dismiss}}',allow:'{{allow}}',deny:'{{deny}}',link:'{{link}}',close:'{{close}}'},window:'',revokeBtn:'
{{policy}}
',compliance:{info:'
{{dismiss}}
',"opt-in":'
{{deny}}{{allow}}
',"opt-out":'
{{deny}}{{allow}}
'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};function s(){this.initialise.apply(this,arguments)}function o(t){this.openingTimeout=null,e.removeClass(t,"cc-invisible")}function r(e){e.style.display="none",e.removeEventListener(t.transitionEnd,this.afterTransition),this.afterTransition=null}function a(){var t=[];return this.options.position.split("-").forEach(function(e){t.push("cc-"+e)}),t}function l(n){var s=this.options,o=document.createElement("div"),r=s.container&&1===s.container.nodeType?s.container:document.body;o.innerHTML=n;var a=o.children[0];return a.style.display="none",e.hasClass(a,"cc-window")&&t.hasTransition&&e.addClass(a,"cc-invisible"),this.onButtonClick=function(n){var s=e.traverseDOMPath(n.target,"cc-btn")||n.target;if(e.hasClass(s,"cc-btn")){var o=s.className.match(new RegExp("\\bcc-("+i.join("|")+")\\b")),r=o&&o[1]||!1;r&&(this.setStatus(r),this.close(!0))}e.hasClass(s,"cc-close")&&(this.setStatus(t.status.dismiss),this.close(!0)),e.hasClass(s,"cc-revoke")&&this.revokeChoice()}.bind(this),a.addEventListener("click",this.onButtonClick),s.autoAttach&&(r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a)),a}function h(t,e){for(var i=0,n=t.length;i=0;return s&&e(n),s}.call(this)&&(this.options.enabled=!1),h(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),h(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var s=this.options.window.replace("{{classes}}",function(){var i=this.options,n="top"==i.position||"bottom"==i.position?"banner":"floating";e.isMobile()&&(n="floating");var s=["cc-"+n,"cc-type-"+i.type,"cc-theme-"+i.theme];return i.static&&s.push("cc-static"),s.push.apply(s,a.call(this)),function(i){var n=e.hash(JSON.stringify(i)),s="cc-color-override-"+n,o=e.isPlainObject(i);return this.customStyleSelector=o?s:null,o&&function(i,n,s){if(t.customStyles[i])++t.customStyles[i].references;else{var o={},r=n.popup,a=n.button,l=n.highlight;r&&(r.text=r.text?r.text:e.getContrast(r.background),r.link=r.link?r.link:r.text,o[s+".cc-window"]=["color: "+r.text,"background-color: "+r.background],o[s+".cc-revoke"]=["color: "+r.text,"background-color: "+r.background],o[s+" .cc-link,"+s+" .cc-link:active,"+s+" .cc-link:visited"]=["color: "+r.link],a&&(a.text=a.text?a.text:e.getContrast(a.background),a.border=a.border?a.border:"transparent",o[s+" .cc-btn"]=["color: "+a.text,"border-color: "+a.border,"background-color: "+a.background],a.padding&&o[s+" .cc-btn"].push("padding: "+a.padding),"transparent"!=a.background&&(o[s+" .cc-btn:hover, "+s+" .cc-btn:focus"]=["background-color: "+(a.hover||function(t){return"000000"==(t=e.normaliseHex(t))?"#222":e.getLuminance(t)}(a.background))]),l?(l.text=l.text?l.text:e.getContrast(l.background),l.border=l.border?l.border:"transparent",o[s+" .cc-highlight .cc-btn:first-child"]=["color: "+l.text,"border-color: "+l.border,"background-color: "+l.background]):o[s+" .cc-highlight .cc-btn:first-child"]=["color: "+r.text]));var h=document.createElement("style");document.head.appendChild(h),t.customStyles[i]={references:1,element:h.sheet};var c=-1;for(var u in o)o.hasOwnProperty(u)&&h.sheet.insertRule(u+"{"+o[u].join(";")+"}",++c)}}(n,i,"."+s),o}.call(this,this.options.palette),this.customStyleSelector&&s.push(this.customStyleSelector),s}.call(this).join(" ")).replace("{{children}}",function(){var t={},i=this.options;i.showLink||(i.elements.link="",i.elements.messagelink=i.elements.message),Object.keys(i.elements).forEach(function(n){t[n]=e.interpolateString(i.elements[n],function(t){var e=i.content[t];return t&&"string"==typeof e&&e.length?e:""})});var n=i.compliance[i.type];n||(n=i.compliance.info),t.compliance=e.interpolateString(n,function(e){return t[e]});var s=i.layouts[i.layout];return s||(s=i.layouts.basic),e.interpolateString(s,function(e){return t[e]})}.call(this)),o=this.options.overrideHTML;if("string"==typeof o&&o.length&&(s=o),this.options.static){var r=l.call(this,'
'+s+"
");r.style.display="",this.element=r.firstChild,this.element.style.display="none",e.addClass(this.element,"cc-invisible")}else this.element=l.call(this,s);(function(){var i=this.setStatus.bind(this),n=this.close.bind(this),s=this.options.dismissOnTimeout;"number"==typeof s&&s>=0&&(this.dismissTimeout=window.setTimeout(function(){i(t.status.dismiss),n(!0)},Math.floor(s)));var o=this.options.dismissOnScroll;if("number"==typeof o&&o>=0){var r=function(e){window.pageYOffset>Math.floor(o)&&(i(t.status.dismiss),n(!0),window.removeEventListener("scroll",r),this.onWindowScroll=null)};this.options.enabled&&(this.onWindowScroll=r,window.addEventListener("scroll",r))}var a=this.options.dismissOnWindowClick,l=this.options.ignoreClicksFrom;if(a){var h=function(s){for(var o=!1,r=s.path.length,a=l.length,c=0;cs&&(i=!0),i?e.hasClass(n,"cc-active")||e.addClass(n,"cc-active"):e.hasClass(n,"cc-active")&&e.removeClass(n,"cc-active")},200);this.onMouseMove=s,window.addEventListener("mousemove",s)}}}.call(this),this.options.autoOpen&&this.autoOpen()},s.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onWindowClick&&(window.removeEventListener("click",this.onWindowClick),this.onWindowClick=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,function(i){if(e.isPlainObject(i)){var n=e.hash(JSON.stringify(i)),s=t.customStyles[n];if(s&&!--s.references){var o=s.element.ownerNode;o&&o.parentNode&&o.parentNode.removeChild(o),t.customStyles[n]=null}}}(this.options.palette),this.options=null},s.prototype.open=function(e){if(this.element)return this.isOpen()||(t.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},s.prototype.close=function(e){if(this.element)return this.isOpen()&&(t.hasTransition?this.fadeOut():this.element.style.display="none",e&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},s.prototype.fadeIn=function(){var i=this.element;if(t.hasTransition&&i&&(this.afterTransition&&r.call(this,i),e.hasClass(i,"cc-invisible"))){if(i.style.display="",this.options.static){var n=this.element.clientHeight;this.element.parentNode.style.maxHeight=n+"px"}this.openingTimeout=setTimeout(o.bind(this,i),20)}},s.prototype.fadeOut=function(){var i=this.element;t.hasTransition&&i&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),o.bind(this,i)),e.hasClass(i,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=r.bind(this,i),i.addEventListener(t.transitionEnd,this.afterTransition),e.addClass(i,"cc-invisible")))},s.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!t.hasTransition||!e.hasClass(this.element,"cc-invisible"))},s.prototype.toggleRevokeButton=function(t){this.revokeBtn&&(this.revokeBtn.style.display=t?"":"none")},s.prototype.revokeChoice=function(t){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),t||this.autoOpen()},s.prototype.hasAnswered=function(e){return Object.keys(t.status).indexOf(this.getStatus())>=0},s.prototype.hasConsented=function(e){var i=this.getStatus();return i==t.status.allow||i==t.status.dismiss},s.prototype.autoOpen=function(t){!this.hasAnswered()&&this.options.enabled?this.open():this.hasAnswered()&&this.options.revokable&&this.toggleRevokeButton(!0)},s.prototype.setStatus=function(i){var n=this.options.cookie,s=e.getCookie(n.name),o=Object.keys(t.status).indexOf(s)>=0;Object.keys(t.status).indexOf(i)>=0?(e.setCookie(n.name,i,n.expiryDays,n.domain,n.path,n.secure),this.options.onStatusChange.call(this,i,o)):this.clearStatus()},s.prototype.getStatus=function(){return e.getCookie(this.options.cookie.name)},s.prototype.clearStatus=function(){var t=this.options.cookie;e.setCookie(t.name,"",-1,t.domain,t.path)},s}(),t.Location=function(){var t={timeout:5e3,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(t,e){try{var i=JSON.parse(e);return i.error?n(i):{code:i.country}}catch(t){return n({error:"Invalid response ("+t+")"})}}}},ipinfodb:function(t){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(t,e){try{var i=JSON.parse(e);return"ERROR"==i.statusCode?n({error:i.statusMessage}):{code:i.countryCode}}catch(t){return n({error:"Invalid response ("+t+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(t){window.geoip2?geoip2.country(function(e){try{t({code:e.country.iso_code})}catch(e){t(n(e))}},function(e){t(n(e))}):t(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};function i(i){e.deepExtend(this.options={},t),e.isPlainObject(i)&&e.deepExtend(this.options,i),this.currentServiceIndex=-1}function n(t){return new Error("Error ["+(t.code||"UNKNOWN")+"]: "+t.error)}return i.prototype.getNextService=function(){var t;do{t=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex3&&e(o)}),o.send(n)})(this.setupUrl(t),function(n){var s=n?n.responseText:"";t.__JSONP_DATA&&(s=t.__JSONP_DATA,delete t.__JSONP_DATA),i.runServiceCallback.call(i,e,t,s)},this.options.timeout,t.data,t.headers)},i.prototype.runServiceCallback=function(t,e,i){var n=this,s=e.callback(function(e){s||n.onServiceResult.call(n,t,e)},i);s&&this.onServiceResult.call(this,t,s)},i.prototype.onServiceResult=function(t,e){e instanceof Error||e&&e.error?t.call(this,e,null):t.call(this,null,e)},i.prototype.runNextServiceOnError=function(t,e){if(t){this.logError(t);var i=this.getNextService();i?this.runService(i,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,e)},i.prototype.getCurrentServiceOpts=function(){var t=this.options.services[this.currentServiceIndex];return"string"==typeof t?{name:t}:"function"==typeof t?t():e.isPlainObject(t)?t:{}},i.prototype.completeService=function(t,e){this.currentServiceIndex=-1,t&&t(e)},i.prototype.logError=function(t){var e=this.currentServiceIndex,i=this.getServiceByIdx(e);console.warn("The service["+e+"] ("+i.url+") responded with the following error",t)},i}(),t.Law=function(){var t={regionalLaw:!0,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","ES","SE","GB","UK","GR","EU"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};function i(t){this.initialise.apply(this,arguments)}return i.prototype.initialise=function(i){e.deepExtend(this.options={},t),e.isPlainObject(i)&&e.deepExtend(this.options,i)},i.prototype.get=function(t){var e=this.options;return{hasLaw:e.hasLaw.indexOf(t)>=0,revokable:e.revokable.indexOf(t)>=0,explicitAction:e.explicitAction.indexOf(t)>=0}},i.prototype.applyLaw=function(t,e){var i=this.get(e);return i.hasLaw||(t.enabled=!1,"function"==typeof t.onNoCookieLaw&&t.onNoCookieLaw(e,i)),this.options.regionalLaw&&(i.revokable&&(t.revokable=!0),i.explicitAction&&(t.dismissOnScroll=!1,t.dismissOnTimeout=!1)),t},i}(),t.initialise=function(i,n,s){var o=new t.Law(i.law);n||(n=function(){}),s||(s=function(){});var r=Object.keys(t.status),a=e.getCookie("cookieconsent_status");r.indexOf(a)>=0?n(new t.Popup(i)):t.getCountryCode(i,function(e){delete i.law,delete i.location,e.code&&(i=o.applyLaw(i,e.code)),n(new t.Popup(i))},function(e){delete i.law,delete i.location,s(e,new t.Popup(i))})},t.getCountryCode=function(e,i,n){e.law&&e.law.countryCode?i({code:e.law.countryCode}):e.location?new t.Location(e.location).locate(function(t){i(t||{})},n):i({})},t.utils=e,t.hasInitialised=!0,window.cookieconsent=t}}(window.cookieconsent||{})}]); \ No newline at end of file diff --git a/index.html b/index.html index 7ed5e66..9b81bde 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Daniil Gentili
Daniil Gentili
Daniil Gentili - Student and PHP, React, Node developer

Portfolio


Contacts


Enter a subject!
Enter a valid email address!
Input a message!

\ No newline at end of file +Daniil Gentili
Daniil Gentili
Daniil Gentili - Student and PHP, React, Node developer

Portfolio


Contacts


Enter a subject!
Enter a valid email address!
Input a message!

\ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml index 77fb419..f6527a9 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2,6 +2,6 @@ https://daniil.it/ - 2019-04-13T14:33:54.468Z + 2019-04-13T14:39:45.107Z \ No newline at end of file