f888a9afb9e358944a8ff1f074d9503bf22e1979623020c802fa1b817342d8a8

Source Code:

var CookieScriptClass=function(){this.stateCookiesLoaded=false;this.stateCookiesUnloaded=false;this.cookieconsent_ready=document.createEvent('Event');this.eventEnableCookies=document.createEvent('Event');this.eventDisableCookies=document.createEvent('Event');this.cookieconsent_ready.initEvent('cookieconsent_ready',true,true);this.eventEnableCookies.initEvent('enableNonEssentialCookies',true,true);this.eventDisableCookies.initEvent('disableNonEssentialCookies',true,true);};CookieScriptClass.textTypeInfo="We use cookies to improve your experience on our website. "
+"Some cookies are essential for the functioning of certain parts of the site. "
+"By continuing to use this website, you agree to the use of cookies. "
+"To learn more about how we use cookies, please see our ";CookieScriptClass.textTypeOptIn="This website uses cookies to ensure you get the best experience, however you can disable the non-essential cookies. "
+"To learn more about how we use cookies, please see our ";CookieScriptClass.prototype.cookieConsentConfig={"theme":"block","position":"bottom","type":'opt-in',"dismissOnWindowClick":false,"ignoreClicksFrom":["cc-banner"],"cookie":{"name":"otoy_cookie_status","domain":".otoy.com","secure":true},"palette":{"popup":{"background":"#aa0000","text":"#ffdddd"},"button":{"background":"#ff0000","text":"#f2e1e1"}},"compliance":{'info':'<div class="cc-compliance">{{dismiss}}</div>','opt-in':'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>','opt-in-force':'<div class="cc-compliance cc-highlight"><div></div>{{allow}}</div>','opt-out':'<div class="cc-compliance cc-highlight">{{deny}}{{dismiss}}</div>'},"content":{"message":CookieScriptClass.textTypeInfo,"dismiss":"I Accept","allow":"Allow all cookies","deny":"Disable non-essential cookies","link":"Cookie Notice","href":"https://home.otoy.com/privacy-policy/#COOKIEPOLICY","policy":'Cookie Policy',"target":'_blank'}};CookieScriptClass.prototype.init=function($type,$domain){var self=this;$type=(typeof $type!=='undefined')?$type:'opt-in';$domain=(typeof $domain!=='undefined')?$domain:".otoy.com";if($type==='opt-in-force'){document.cookie="otoy_cookie_status='';path=/;domain=.otoy.com;expires=Thu, 01 Jan 1970 00:00:01 GMT";}
window.addEventListener("load",function(){self.cookieConsentConfig["type"]=$type;self.cookieConsentConfig["cookie"]["domain"]=$domain;self.cookieConsentConfig["onInitialise"]=function(status){self.updateCookieStatus(status,self.cookieConsentConfig["type"]);document.dispatchEvent(self.cookieconsent_ready);};self.cookieConsentConfig["onStatusChange"]=function(status,chosenBefore){self.updateCookieStatus(status,self.cookieConsentConfig["type"]);};if($type==='info'){self.cookieConsentConfig["dismissOnWindowClick"]=true;self.cookieConsentConfig["message"]=self.textTypeInfo;}else{self.cookieConsentConfig["dismissOnWindowClick"]=false;self.cookieConsentConfig["message"]=self.textTypeOptIn;}
global_cookieconsent=window.cookieconsent.initialise(self.cookieConsentConfig);});};CookieScriptClass.prototype.queueJS=function(url,implementationCode){var scriptTag=document.createElement('script');scriptTag.src=url;scriptTag.onload=implementationCode;scriptTag.onreadystatechange=implementationCode;document.body.appendChild(scriptTag);};CookieScriptClass.prototype.functEnableCookies=function(){if(this.stateCookiesLoaded){return;}
this.stateCookiesLoaded=true;console.info('Non-essential cookies are enabled.');document.dispatchEvent(this.eventEnableCookies);if(this.stateCookiesUnloaded){this.stateCookiesUnloaded=false;}};CookieScriptClass.prototype.functDisableCookies=function(){if(this.stateCookiesUnloaded){return;}
this.stateCookiesUnloaded=true;console.warn('Warning: Non-essential cookies are disabled!');document.dispatchEvent(this.eventDisableCookies);if(this.stateCookiesLoaded){this.stateCookiesLoaded=false;location.reload();}};CookieScriptClass.prototype.updateCookieStatus=function(status,type){if(status==='allow'||type==='info'){this.functEnableCookies();}else{this.functDisableCookies();}
document.dispatchEvent(this.cookieconsent_ready);};var cookieScript=new CookieScriptClass();