A simple cookie banner implementation, saving the user's consent in the browser storage to prevent the banner showing on every page load.
- Download and extract this repo.
- Copy the code into your website.
- If you want to make it stick to the bottom of the page, add the classes
position-fixed bottom-0 start-0 w-100
to the alert element in the index.html file (optional).
https://robsd.github.io/js-cookie-banner
If you like this repo or used any of the code, please star ⭐ it and consider supporting me below...