@vivareal/cookie-notifier
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -1,1 +0,1 @@ | ||
function n(o){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(o)}var o,e;o=this,e=function(n){var o,e,t="cookie-notifier",c=document.createElement("div"),a="\n .".concat(t," {\n background: #FFFFFF;\n position: fixed;\n bottom: 0;\n width: 100%;\n padding: 16px 32px;\n left: 0;\n box-sizing: border-box;\n box-shadow: 0px 2px 24px rgba(0, 0, 0, 0.16);\n z-index: 100;\n }\n\n .").concat(t,"__wrapper {\n max-width: 1032px;\n margin: 0 auto;\n display: grid;\n grid-template-columns: 1fr;\n grid-row-gap: 16px;\n }\n\n .").concat(t,"__paragraph {\n font-size: 14px;\n line-height: 20px\n font-weight: regular;\n margin: 0px;\n color: #474747;\n }\n\n .").concat(t,"__cta {\n background: ").concat(n.cta.background,";\n color: ").concat(n.cta.color,";\n cursor: pointer;\n display: inline-block;\n text-decoration: none;\n font-size: 1rem;\n font-weight: bold;\n line-height: 1.5;\n text-align: center;\n border-radius: 4px;\n height: 40px;\n padding: 8px 24px;\n border: none;\n }\n\n .").concat(t,"__link {\n color: ").concat(n.cta.background,";\n text-decoration: underline;\n }\n\n @media screen and (min-width: 600px) {\n .").concat(t," {\n padding: 8px 24px;\n }\n\n .").concat(t,"__wrapper {\n align-items: center;\n grid-template-columns: 1fr auto;\n grid-column-gap: 16px;\n }\n }\n "),i='\n <div class="'.concat(t,'">\n <div class="').concat(t,'__wrapper">\n <p class="').concat(t,'__paragraph">\n Usamos cookies para personalizar conteúdos e melhorar a sua experiência. Ao navegar neste site, você concorda com a nossa\n <a href="').concat(n.link,'" target="_blank" class="').concat(t,'__link">Política de Cookies</a>.\n </p>\n <button class="').concat(t,'__cta" id="').concat(t,'-cta">').concat(n.cta.text,"</button>\n </div>\n </div>\n ");o=document.cookie.match(new RegExp("(?:^|; )"+t.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)")),e=o?decodeURIComponent(o[1]):void 0,Boolean(e)||(function(n){c.innerHTML=n,document.body.appendChild(c)}(i),function(n){var o=document.createElement("style");o.type="text/css",o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),document.getElementsByTagName("head")[0].appendChild(o)}(a),document.getElementById("".concat(t,"-cta")).addEventListener("click",(function(){var n;document.cookie="cookie-notifier=1;domain=".concat((n=window.location.hostname.split(/(\.)(com.*)$/),n[0]=n[0].split(".").pop(),n.join("")),";path=/;expires=").concat(new Date("2041").toUTCString()),c.innerHTML=""}),!1))},"function"==typeof define&&define.amd?define("cookieNotifier",(function(){return e})):"object"===("undefined"==typeof module?"undefined":n(module))&&module.exports?module.exports=e:o.cookieNotifier=e; | ||
function n(o){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},n(o)}var o,e;o=this,e=function(n){var o,e,t="cookie-notifier",c=document.createElement("div"),a="\n .".concat(t," {\n background: #FFFFFF;\n position: fixed;\n bottom: 0;\n width: 100%;\n padding: 16px 32px;\n left: 0;\n box-sizing: border-box;\n box-shadow: 0px 2px 24px rgba(0, 0, 0, 0.16);\n z-index: 100;\n }\n\n .").concat(t,"__wrapper {\n max-width: 1032px;\n margin: 0 auto;\n display: grid;\n grid-template-columns: 1fr;\n grid-row-gap: 16px;\n }\n\n .").concat(t,"__paragraph {\n font-size: 14px;\n line-height: 20px\n font-weight: regular;\n margin: 0px;\n color: #474747;\n }\n\n .").concat(t,"__cta {\n background: ").concat(n.cta.background,";\n color: ").concat(n.cta.color,";\n cursor: pointer;\n display: inline-block;\n text-decoration: none;\n font-size: 1rem;\n font-weight: bold;\n line-height: 1.5;\n text-align: center;\n border-radius: 4px;\n height: 40px;\n padding: 8px 24px;\n border: none;\n }\n\n .").concat(t,"__link {\n color: ").concat(n.cta.background,";\n text-decoration: underline;\n }\n\n @media screen and (min-width: 600px) {\n .").concat(t," {\n padding: 8px 24px;\n }\n\n .").concat(t,"__wrapper {\n align-items: center;\n grid-template-columns: 1fr auto;\n grid-column-gap: 16px;\n }\n }\n "),i='\n <div class="'.concat(t,'">\n <div class="').concat(t,'__wrapper">\n <p class="').concat(t,'__paragraph">\n Usamos cookies para personalizar conteúdos e melhorar a sua experiência. Ao navegar neste site, você concorda com a nossa\n <a href="').concat(n.link,'" target="_blank" class="').concat(t,'__link">Política de Cookies</a>.\n </p>\n <button class="').concat(t,'__cta" id="').concat(t,'-cta">').concat(n.cta.text,"</button>\n </div>\n </div>\n ");o=document.cookie.match(new RegExp("(?:^|; )"+t.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)")),e=o?decodeURIComponent(o[1]):void 0,Boolean(e)||(function(n){c.innerHTML=n,document.body.appendChild(c)}(i),function(n){var o=document.createElement("style");o.type="text/css",o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),document.getElementsByTagName("head")[0].appendChild(o)}(a),document.getElementById("".concat(t,"-cta")).addEventListener("click",(function(){var n;document.cookie="cookie-notifier=1;domain=".concat((n=window.location.hostname.split(/(\.)(com.*)$/),n[0]=n[0].split(".").pop(),n.join("")),";path=/;expires=").concat(new Date("2041").toUTCString()),c.innerHTML=""}),!1))},"function"==typeof define&&define.amd?define("cookieNotifier",(function(){return e})):"object"===("undefined"==typeof module?"undefined":n(module))&&module.exports?module.exports=e:o.cookieNotifier=e; |
{ | ||
"name": "@vivareal/cookie-notifier", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Cookie notifier 🍪", | ||
@@ -52,3 +52,3 @@ "author": "OLX Brasil - ZAP+", | ||
}, | ||
"gitHead": "62035c152561798215d23bfe794ec245f064760b" | ||
"gitHead": "8156cf5f7750e982516049e9facf80fb69fd3b8f" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
405973