Web/scripts/cookieinfo.js

15 lines
651 B
JavaScript
Raw Normal View History

2020-04-02 22:14:53 +02:00
if (getCookie("notification") !== "true") {
2021-03-19 11:42:35 +01:00
$('#cookieinfo').html( /*html*/ `
2021-03-19 07:55:18 +01:00
<div class="alert alert-danger alert-dismissible fade show" role="alert">
This site uses cookies 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>
`);
2020-04-02 22:14:53 +02:00
$("#notif-close").on("click", function () {
setCookie("notification", "true", 365);
});
}