A simple, good looking cookie alert built for Bootstrap 4. No dependencies required.
npm install bootstrap-cookie-alertDemo with Bootstrap 5
•
Demo with Bootstrap 4
I unfortunately don't remember 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-alerthead of your document, include cookiealert.css after Bootstrap.html
`#### 2. Add the html markup:
`html
`#### 3. Include the JavaScript after the html markup
`html
`$3
$3
If you need to, you can listen for the cookieAlertAccept event to get notified when the user accepts the cookies.`js
window.addEventListener("cookieAlertAccept", function() {
alert("cookies accepted")
})
``