JSFiddle - React, Tailwind, and code Playground
JavaScript
(function() {
return function() {
var f = window._cc;
f.store = document.cookie.match("__55CC\x3d([^;$]*)") ? JSON.parse(document.cookie.match("__55CC\x3d([^;$]*)")[1]) : {};
f.saveCookie = function() {
document.cookie = "__55CC\x3d" + JSON.stringify(f.store) + ";expires\x3d" + (new Date(+new Date + CookieConsent.defaults.approvalLength)).toUTCString() + ";path\x3d" + CookieConsent.defaults.path + ";domain\x3d" + CookieConsent.defaults.domain + ";"
};
f.currMask;
f.hadInteraction = !1;
f.ccCloseSend = !1;
f.hasClickPopin = !1;
f.definitionList = {};
f.predefinedModes = {
push: function() {
var f = 0;
return {
name: "push",
bar: {
onresize: function(f) {
var d = this,
g = document.body || document.getElementsByTagName("body")[0];
d.displayState && (g.style.paddingTop = f.height + "px")
},
show: function() {
var h = this,
d = document.body || document.getElementsByTagName("body")[0];
f || (f = 1, CookieConsent.Bar.slideFx.animate(d, {
"padding-top": h.height() + "px"
}).then(function() {
f = 0
}))
},
hide: function() {
var h = document.body || document.getElementsByTagName("body")[0];
f || (f = 1, CookieConsent.Bar.slideFx.animate(h, {
"padding-top": "0px"
}).then(function() {
f = 0
}))
...