Sha256: 2e1e4656fcc6bd6060232b179bf8d90978a55cd79f8e91619e51e0fb271337ec
Contents?: true
Size: 1.52 KB
Versions: 16
Compression:
Stored size: 1.52 KB
Contents
{%- if site.gtag %} <!-- START Bootstrap-Cookie-Alert --> <div class="alert text-center cookiealert rounded-0" role="alert"> <p> We use cookies to ensure you get the best experience on our website. Read our <a class="fw-bold" href="{{ site.theme_variables.privacy_statement_url | default: '/privacy' | relative_url}}">privacy policy</a> to find out more. </p> <div class="d-flex justify-content-center"> <button type="button" id="acceptcookies" class="btn btn-primary"> Got it! </button> </div> </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
16 entries across 16 versions & 1 rubygems