Web/scripts/cookies.js

15 lines
865 B
JavaScript
Raw Normal View History

2018-12-30 16:38:14 +01:00
if (cookieNotification) {
let notif = "";
notif += '<div class="alert alert-danger alert-dismissible fade show" role="alert">';
2019-10-03 00:03:40 +02:00
notif += "<strong>This site uses cookies to store information about your browsing activity.</strong>";
notif += "<br>Note that, due to widgets and embeds, additional information might be stored by other sites. Please refer to those sites' privacy policies for more information.";
notif += "<br>Keep in mind that you can review or delete stored cookies for any site at any time in your browser's settings. Have a nice day!";
2018-12-30 16:38:14 +01:00
notif += '<button type="button" class="close" data-dismiss="alert" id="notif-close">';
notif += '<span>&times;</span>';
notif += '</button></div>';
document.write(notif);
$("#notif-close").on("click", function () {
setCookie("notification", "true", 365);
});
}