JSFiddle - React, Tailwind, and code Playground
JavaScript
{
"function": "__jsm",
"vtp_javascript": ["template", "(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={};\nf.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\u0026\u0026(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,\n{\"padding-top\":\"0px\"}).then(function(){f=0}))}}}}()};(function(){window.CookieConsent=f.EventEmitter.extend(function(r,h){return h.instance=null,h.defaults=null,h.getCssRules=null,h.configure=function(d){var g;d=d||{};var a=CookieConsent.defaults||{};if(CookieConsent.instance)throw Error(\"cookie consent already started, cannot configure\");if(d\u0026\u0026d.constructor===Object)for(g in d)switch(g){case \"length\":a.timers.length=d.length;break;case \"delay\":a.timers.delay=d.delay;break;case \"approvalLength\":a.approvalLength=\nd.approvalLength;break;case \"mode\":if(d.mode\u0026\u0026d.mode.constructor!==Object)break;a.mode=d.mode.name;CookieConsent.Bar.modes[d.mode.name]=d.mode.bar;break;case \"items\":!function(a){var b;if(f.isArray(d.items)){var k=0;for(b=d.items.length;b\u003Ek;k++)a[k]=d.items[k]}else...