Responsive EU Cookie Law Notice Plugin For jQuery - Cookies Message

File Size: 8.47 KB
Views Total: 6907
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Responsive EU Cookie Law Notice Plugin For jQuery - Cookies Message

Cookies Message is a jQuery plugin used to show a responsive, highly customizable EU Cookie Law message box with Accept and More Info buttons to the end users.

Features:

  • Easy to implement
  • Fully customizable
  • Easy to change colors and text
  • Multiple button combinations
  • Custom cookie expire time
  • Responsive design

Basic usage:

1. Import the jQuery Cookies Message plugin and jQuery JavaScript library.

<link href="dist/cookies-message.min.css" rel="stylesheet">
<script src="jquery.min.js"></script>
<script src="dist/cookies-message.min.js"></script>

2. Initialize the Cookies Message Plugin and we're done.

$.CookiesMessage(OPTIONS);

3. There are a few options you can use when initializing the plugin.

messageText: "Custom message.",

// Message box background color
messageBg: "#151515",    

// Message box text color           
messageColor: "#FFFFFF",   

// Message box links color         
messageLinkColor: "#F0FFAA",  

// Show the close icon      
closeEnable: true,         

// Close icon color         
closeColor: "#444444",           

// Close icon background color   
closeBgColor: "#000000",         

// Show the Accept button   
acceptEnable: true,                 

// Accept button text
acceptText: "Accept & Close",       

// Show the More Info button
infoEnable: true,          

// More Info button text         
infoText: "More Info",        

// More Info button URL      
infoUrl: "#",                   

 // Cookie expire time (days)    
cookieExpire: 180                  

This awesome jQuery plugin is developed by giuseppegarbin. For more Advanced Usages, please check the demo page or visit the official website.