Web/scripts/cookieinfo.js
2024-06-28 12:17:43 +02:00

15 lines
701 B
JavaScript

if (localStorage.getItem("notification") !== "true") {
$("#cookieinfo").html( /*html*/ `
<div class="alert alert-danger alert-dismissible fade show" role="alert">
This site uses your browser's local storage to store information about your browsing activity.
<br>For more information, check out the <a href="/privacy">privacy policy</a>.
<br>Have a nice day!
<button type="button" class="close" data-dismiss="alert" id="cookie-notif-close">
<span>&times;</span>
</button>
</div>
`);
$("#cookie-notif-close").on("click", function () {
localStorage.setItem("notification", "true");
});
}