diff --git a/dist/cookieconsent.js b/dist/cookieconsent.js index 6e724424..f963aac5 100644 --- a/dist/cookieconsent.js +++ b/dist/cookieconsent.js @@ -1,38 +1,38 @@ /* - CookieConsent v2.6.0 + CookieConsent v2.6.1 https://www.github.com/orestbida/cookieconsent Author Orest Bida Released under the MIT License */ -(function(){function Wa(Xa){function Ga(a,b){return a.classList?a.classList.contains(b):!!a.className.match(new RegExp("(\\s|^)"+b+"(\\s|$)"))}function ta(a,b){a.classList?a.classList.remove(b):a.className=a.className.replace(new RegExp("(\\s|^)"+b+"(\\s|$)")," ")}function F(a,b){a.classList?a.classList.add(b):Ga(a,b)||(a.className+=" "+b)}function ha(a){if("object"===typeof a){var b=[],c=0;for(b[c++]in a);return b}}function G(a,b,c,d){a.addEventListener?d?a.addEventListener(b,c,{passive:!0}):a.addEventListener(b, -c,!1):a.attachEvent("on"+b,c)}function Ha(a,b,c){b=b?b:"/";for(var d=0;d
\x3c!--\x3e
\x3c!--
\x3c!--\x3e
\x3c!-- base64 - * https://stackoverflow.com/questions/30106476/using-javascripts-atob-to-decode-base64-doesnt-properly-decode-utf-8-strings - * @param {string} str - * @returns {string} - */ - function b64EncodeUnicode(str) { - return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function(match, p1) { - return String.fromCharCode(parseInt(p1, 16)) - })) - } - - /** - * Decoding base64 -> UTF8 - * https://stackoverflow.com/questions/30106476/using-javascripts-atob-to-decode-base64-doesnt-properly-decode-utf-8-strings - * @param {string} str - * @returns {string} - */ - function b64DecodeUnicode(str) { - return decodeURIComponent(Array.prototype.map.call(atob(str), function(c) { - return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2) - }).join('')) - } - /** * Append class to the specified dom element * @param {HTMLElement} elem