0 ? 0 : false, "dismissOnTimeout":0 > 0 ? (0 * 1000) : false, "cookie": { "expiryDays":365 !== 0 ? 365 : 365, "secure":0 === 1 ? true : false }, onInitialise: function (status) { var type = this.options.type; var didConsent = this.hasConsented(); if (type == "opt-in" && didConsent) { // enable cookies if (typeof optInCookiesConsented === "function") { optInCookiesConsented(); console.log("Opt in cookies consented"); } else { console.log("Opt in function not defined!"); } } if (type == "opt-out" && !didConsent) { // disable cookies if (typeof optOutCookiesNotConsented === "function") { optOutCookiesNotConsented(); console.log("Opt out cookies not consented"); } else { console.log("Opt out function not defined!"); } } }, onStatusChange: function(status, chosenBefore) { var type = this.options.type; var didConsent = this.hasConsented(); if (type == "opt-in" && didConsent) { // enable cookies if (typeof optInCookiesConsented === "function") { optInCookiesConsented(); console.log("Opt in cookies consented"); } else { console.log("Opt in function not defined!"); } } if (type == "opt-out" && !didConsent) { // disable cookies if (typeof optOutCookiesNotConsented === "function") { optOutCookiesNotConsented(); console.log("Opt out cookies not consented"); } else { console.log("Opt out function not defined!"); } } }, onRevokeChoice: function() { var type = this.options.type; if (type == "opt-in") { // disable cookies if (typeof optInCookiesRevoked === "function") { optInCookiesRevoked(); console.log("Opt in cookies revoked"); } else { console.log("Opt in revoked function not defined!"); } } if (type == "opt-out") { // enable cookies if (typeof optOutCookiesRevoked === "function") { optOutCookiesRevoked(); console.log("Opt out cookies revoked"); } else { console.log("Opt out revoked function not defined!"); } } } }); }); } else if (0) { // disable cookies if (typeof optOutCookiesNotConsented === "function") { optOutCookiesNotConsented(); console.log("Opt out cookies not consented"); } else { console.log("Opt out function not defined!"); } }