Skip to content

A simple cookie banner implementation, saving the user's consent in the browser storage to prevent the banner showing on every page load.

License

Notifications You must be signed in to change notification settings

robsd/js-cookie-banner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

js-cookie-banner 🍪

A simple cookie banner implementation, saving the user's consent in the browser storage to prevent the banner showing on every page load.

Getting setup

  1. Download and extract this repo.
  2. Copy the code into your website.
  3. 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).

Demo

https://robsd.github.io/js-cookie-banner

Support my work

If you like this repo or used any of the code, please star ⭐ it and consider supporting me below...

ko-fi

Releases

No releases published

Packages

No packages published