This plugin is a mootools adaptation on how to add cookie section for your website where every browser may or maynot handle cookies.JQuery COOKIE
Source: GreyCampus
Adding the source code to new file and save the file as cookie.js Give the path of cookie.js in your head section where you add all the javascript files. Including it on your page
To set a cookie
//Showing modal form after cookie expired
//if(Cookies.get('hiddenModalShow') === undefined)
//{
Syntax
Cookies.set('name', 'value',{expires:value})
//Cookies.set('hiddenModalShow', '1', { expires: 0.5/48 });
//$(window).load(function()
//{
//setTimeout(function(){
//$('#hiddenModal').modal('show');
//}, 10000);
//});
//}
Copyright © Stella Morey
Licensed under the MIT license.