-
I'm trying to set up cookie consent for the Tailwindcss v2 website. Here is my relevant html code:
Javascript bit : https://paste.debian.net/1310780/ The page loads fine, there are no errors. Please help me understand why it isn't working. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I got it to work by reusing the components from the template; it's not the best solution, but it works for now.
Javascript - https://paste.debian.net/1310899/ |
Beta Was this translation helpful? Give feedback.
I got it to work by reusing the components from the template; it's not the best solution, but it works for now.
<!-- ====== Cookies Consent Banner Start ====== --> <div id="cookieConsentContainer" class="inline-flex items-center gap-[10px] py-2 px-[14px] rounded-lg bg-white dark:bg-dark-2 shadow-2 fixed bottom-8 left-4 sm:left-9 z-[999]"> <span class="text-base font-medium text-dark-3 dark:text-dark-6"> We use cookies to provide you with the best possible experience on our website. </span> <span class="block w-px h-4 bg-stroke dark:bg-dark-3"></span> <span class="block max-w-[88px] w-full"> <button id="acceptCookies" type="button" class="rounded-md py-2 px-6 hover:bg-blue-500 transition-c…