Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
CusMeDroid authored Dec 13, 2023
1 parent 001ca96 commit 7bb6a10
Show file tree
Hide file tree
Showing 11 changed files with 982 additions and 0 deletions.
22 changes: 22 additions & 0 deletions assets/cookies/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
let acceptDecline = localStorage.getItem("cookie") ? JSON.parse(localStorage.getItem("cookie")) : "";
const cookiesBanner = document.getElementById("cookies-banner");

// localStorage.clear()

function setCookie(){
acceptDecline = true;
localStorage.setItem("cookie", JSON.stringify(acceptDecline));
cookiesBanner.style.display = "none";
}

if(acceptDecline){
cookiesBanner.style.display = "none";
}

document.getElementById("allow").onclick = function () {
setCookie();
};

document.getElementById("decline").onclick = function () {
setCookie();
};
Loading

0 comments on commit 7bb6a10

Please sign in to comment.