Sha256: 3e578337452cf437f29abea0cd15e067e4b00bc7ecae084e716e7381a07e068e
Contents?: true
Size: 1.53 KB
Versions: 18
Compression:
Stored size: 1.53 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-cente> <button type="button" id="acceptcookies" class="btn btn-primary ms-2"> 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
18 entries across 18 versions & 1 rubygems