Skip to content

Commit

Permalink
Quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PleatherStarfish committed Dec 5, 2024
1 parent 5cc5ec0 commit cdd0104
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions backend/templates/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,16 @@ <h3 class="text-lg font-medium leading-6 text-white">Cookie Consent</h3>
const banner = document.getElementById("cookie-consent-banner");
const acceptButton = document.getElementById("allow-cookies");
const denyButton = document.getElementById("deny-cookies");

document.getElementById('cookie-consent-banner').style = `
display: block;
position: fixed;
bottom: 4rem;
right: 2rem;
background-color: #1f2937;
color: white;
z-index: 50;
`;

if (!localStorage.getItem(COOKIE_CONSENT_KEY)) {
banner.style.display = "block";
Expand Down

0 comments on commit cdd0104

Please sign in to comment.