Quick and simple cookie consent dialog for websites
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>
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.
<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>