Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New option AcceptOnScroll #22

Merged
merged 2 commits into from Jun 3, 2015
Merged

New option AcceptOnScroll #22

merged 2 commits into from Jun 3, 2015

Conversation

coire1
Copy link
Contributor

@coire1 coire1 commented Jun 1, 2015

Hi, thank you for the script.

In Italy for the cookie law is considered as acceptance every single interaction of the user with the page, including the window scroll. I've just added an option AcceptOnScroll that allows this behaviour.
If the options is set true a listener for the scroll event is added to window.
This option defaults to false.

When this option is set to true, the first window scroll is
considered as acceptance, the banner is closed and cookie is set.
@senko
Copy link
Member

senko commented Jun 3, 2015

Looks good to me. Thanks @coire1 !

senko added a commit that referenced this pull request Jun 3, 2015
New option `AcceptOnScroll`
@senko senko merged commit 418d05c into dobarkod:master Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants