Skip to content

Commit

Permalink
Hide manage cookies button and script (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellemaxwell authored Feb 28, 2025
1 parent 4c8245b commit 549256c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/site-footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ <h5 class="mb-3 font-extrabold">{{ .title }}</h5>
<ul class="sm:mt-0 mt-4 flex gap-x-8">
<li><a href="/privacy/">{{ i18n "privacyPolicy" }}</a></li>
<li><a href="/terms/">{{ i18n "termsOfUse" }}</a></li>
<li>
<!-- <li>
<button id="hs_show_banner_button" class="cookie-bttn" type="button">
{{ i18n "manageCookies" }}
</button>
</li>
</li> -->
</ul>
</div>
</div>
Expand Down
5 changes: 3 additions & 2 deletions static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ if (emblaRoot) {
});
};

// TODO: Debug cookie banner script.
// Display cookie banner on user click.
const cookieBttn = document.querySelector('.cookie-bttn');
/* const cookieBttn = document.querySelector('.cookie-bttn');
cookieBttn?.addEventListener('click', () => {
const _hsp = window._hsp = window._hsp || [];
_hsp.push(['showBanner']);
})();
})(); */

0 comments on commit 549256c

Please sign in to comment.