mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-18 01:30:08 +01:00
18 lines
750 B
HTML
18 lines
750 B
HTML
|
<div id="cookieinfo"></div>
|
||
|
<script>
|
||
|
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, please check out the <a href="https://ellpeck.de/privacy">privacy policy</a>.
|
||
|
<button type="button" class="close" data-dismiss="alert" id="notif-close">
|
||
|
<span>×</span>
|
||
|
</button>
|
||
|
</div>
|
||
|
`);
|
||
|
$("#notif-close").on("click", function () {
|
||
|
localStorage.setItem("notification", "true");
|
||
|
});
|
||
|
}
|
||
|
</script>
|