Web/main/scripts/cookieinfo.js
Ell 11c00e85b3
All checks were successful
Jenkins
Ellpeck/Web/pipeline/head This commit looks good
switch to local storage
2023-06-13 17:29:52 +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");
});
}