A simple, good looking cookie alert built for Bootstrap 3/4. No dependencies required.
A simple, good looking cookie alert for Bootstrap. No dependencies required.
We recommend using Bootstrap 4, but Boostrap 3 should work fine as well.
Demo (with Bootstrap 4)
I unfortunately dont remeber the source of the cubes pattern :( If someone know, please email me or create an issue. I would love to credit the author.
npm i bootstrap-cookie-alert
headof your document, include
cookiealert.cssafter Bootstrap.
demo.htmlfor a working example
If you need to, you can listen for the
cookieAlertAcceptevent to get notified when the user accepts the cookies.
window.addEventListener("cookieAlertAccept", function() { alert("cookies accepted") })