Web/scripts/cookieinfo.js

16 lines
701 B
JavaScript
Raw Normal View History

2023-06-13 17:29:52 +02:00
if (localStorage.getItem("notification") !== "true") {
2023-08-07 14:04:06 +02:00
$("#cookieinfo").html( /*html*/ `
2021-03-19 07:55:18 +01:00
<div class="alert alert-danger alert-dismissible fade show" role="alert">
2023-06-13 17:29:52 +02:00
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>.
2021-03-19 07:55:18 +01:00
<br>Have a nice day!
<button type="button" class="close" data-dismiss="alert" id="cookie-notif-close">
2021-03-19 07:55:18 +01:00
<span>&times;</span>
</button>
</div>
`);
$("#cookie-notif-close").on("click", function () {
2023-06-13 17:29:52 +02:00
localStorage.setItem("notification", "true");
2020-04-02 22:14:53 +02:00
});
2023-06-13 17:29:52 +02:00
}