Sha256: 27c4443f79070005ba03971e3063a74845662e6a98ad57dd527c7c5b3667ad8e
Contents?: true
Size: 1.39 KB
Versions: 13
Compression:
Stored size: 1.39 KB
Contents
{%- if site.gtag %} <!-- START Bootstrap-Cookie-Alert --> <div class="alert text-center cookiealert rounded-0" role="alert"> We use cookies to ensure you get the best experience on our website. Read our <a class="fw-bold" href="{{ '/privacy.html' | relative_url}}">privacy policy</a> to find out more. <button type="button" id="acceptcookies" class="btn btn-primary ms-2"> Got it! </button> </div> <script> /* * Bootstrap Cookie Alert by Wruczek * https://github.com/Wruczek/Bootstrap-Cookie-Alert * Released under MIT license */ !function () { "use strict"; var n = document.querySelector(".cookiealert"), e = document.querySelector("#acceptcookies"); n && (n.offsetHeight, function (e) { for (var t = e + "=", o = decodeURIComponent(document.cookie).split(";"), c = 0; c < o.length; c++) { for (var n = o[c]; " " === n.charAt(0);)n = n.substring(1); if (0 === n.indexOf(t)) return n.substring(t.length, n.length) } return "" }("acceptCookies") || n.classList.add("show"), e.addEventListener("click", function () { var e, t, o, c; e = "acceptCookies", t = !0, o = 365, (c = new Date).setTime(c.getTime() + 24 * o * 60 * 60 * 1e3), c = "expires=" + c.toUTCString(), document.cookie = e + "=" + t + ";" + c + ";path=/", n.classList.remove("show"), window.dispatchEvent(new Event("cookieAlertAccept")) })) }(); </script> <!-- END Bootstrap-Cookie-Alert --> {%- endif %}
Version data entries
13 entries across 13 versions & 1 rubygems