Wruczek / Bootstrap-Cookie-Alert

A simple, good looking cookie alert built for Bootstrap 3/4. No dependencies required.
https://wruczek.github.io/Bootstrap-Cookie-Alert/demo-bs5.html
MIT License
240 stars 50 forks source link

Make cookie alert remember close action #18

Closed annban closed 4 years ago

annban commented 4 years ago

Thank you for sharing your work, much helpful! I was wondering if there's an easy way to configure the alert so that it remembers that a user has already accepted (closed) the alert. If I'm right currently the alert is triggered on each site load.

Wruczek commented 4 years ago

Hello, currently the alert is remembering the consent with a cookie.

annban commented 4 years ago

Oh this is fantastic! When I tested it locally it was firing on each site load (possibly because of the test environment?).

Wruczek commented 4 years ago

Test it here: https://wruczek.github.io/Bootstrap-Cookie-Alert/demo