Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Kill cookie snippet
$$('#cookiePolicy button[type=submit]').addEvent('click', function(evt){
evt.preventDefault();
new Cookie.write('THE_compliance', true, {
path: '/',
duration: 90
});
$$('#cookiePolicy').destroy();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.