Web/main/scripts/cookieinfo.js
Ell 812fe57577
All checks were successful
ci/woodpecker/push/main Pipeline was successful
cool cleanup club
2023-08-07 14:04:06 +02:00

15 lines
687 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="notif-close">
<span>&times;</span>
</button>
</div>
`);
$("#notif-close").on("click", function () {
localStorage.setItem("notification", "true");
});
}