Skip to content

Instantly share code, notes, and snippets.

@meemal
Forked from bavington/eu_cookie_banner.js
Last active May 23, 2018 08:44
Show Gist options
  • Select an option

  • Save meemal/0cdb21385a2d2b805fcd54aa9d5dd6a3 to your computer and use it in GitHub Desktop.

Select an option

Save meemal/0cdb21385a2d2b805fcd54aa9d5dd6a3 to your computer and use it in GitHub Desktop.
Simple EU Cookie Law Banner JavaScript
@meemal

meemal commented May 23, 2017

Copy link
Copy Markdown
Author

Updated to add in a slide in as the page loads, and a slide out once the policy has been accepted.

I have also maintained a previous change to save cookie only once the user has agreed to accept the policy.

I may add a session cookie so that the browser knows if the slide out animation has already happened as the user browses to other pages so that it doesn't slide out on every page.

@maxmiko

maxmiko commented May 23, 2018

Copy link
Copy Markdown

Hello meemal,
the original code has one problem. It was disappear after refresh, your modification does the same?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment