bluecookies
v1.0.4
Published
Quick and simple cookie consent dialog for websites.
Downloads
386
Readme
BlueCookies
Quick and simple cookie consent dialog for websites
Usage
Add to script
Download index.js / index.min.js or use un unpkg.
<script src="https://unpkg.com/bluecookies/index.js"></script>
<script src="https://unpkg.com/bluecookies/index.min.js"></script>
Init
BlueCookies(mainText, acceptedText, buttonText, customStyle)
- mainText: Legal text to accept.
- acceptedText: If user already approved it shows this text 3 seconds.
- buttonText: Usually "accept".
- customStyle: Minor style configurations added to the main container, like background and color.
Example
<script src="https://unpkg.com/bluecookies/index.min.js"></script>
<script>
BlueCookies("Do you consent to the use of cookies?", "✔ Cookies", "Accept", "background-color: #8bb8e8; color:#fff;")
</script>