Need help with Bootstrap-Cookie-Alert?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

Wruczek
159 Stars 43 Forks MIT License 35 Commits 5 Opened issues

Description

A simple, good looking cookie alert built for Bootstrap 3/4. No dependencies required.

Services available

!
?

Need anything else?

Contributors list

# 137,068
pypi
teamspe...
Bootstr...
JavaScr...
30 commits
# 297,597
JavaScr...
HTML
Symfony
dropzon...
1 commit
# 564,848
JavaScr...
Shell
HTML
Bootstr...
1 commit
# 472,152
JavaScr...
postgre...
Postgre...
Databas...
1 commit

Bootstrap-Cookie-Alert

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 package

npm i bootstrap-cookie-alert

I try to keep it up-to-date. Let me know if I forget to release an update.

How to use

1. In the
head
of your document, include
cookiealert.css
after Bootstrap.


2. Add the html markup:



3. Include the JavaScript after the html markup


Take a look at
demo.html
for a working example

Accept event

If you need to, you can listen for the

cookieAlertAccept
event to get notified when the user accepts the cookies.
window.addEventListener("cookieAlertAccept", function() {
    alert("cookies accepted")
})

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.