Skip to content

Plugin gives you the source code to add cookie on your website.

License

Notifications You must be signed in to change notification settings

manideepami/cookie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cookies

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

How to use

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

<script type="text/javascript" src="js.cookie.js"></script>

How to Use

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);
//});
//}

License

Copyright © Stella Morey

Licensed under the MIT license.

About

Plugin gives you the source code to add cookie on your website.

Resources

License

Stars

Watchers

Forks

Packages

No packages published