Skip to content

Quick and simple cookie consent dialog for websites

Notifications You must be signed in to change notification settings

ealbinu/BlueCookies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlueCookies

Quick and simple cookie consent dialog for websites

Preview

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>

About

Quick and simple cookie consent dialog for websites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published