wimagguc / jquery-eu-cookie-law-popup Goto Github PK
View Code? Open in Web Editor NEWAn easy-to-install jQuery plugin to create EU Cookie Law popups
License: Other
An easy-to-install jQuery plugin to create EU Cookie Law popups
License: Other
Some web site have a menu bar or other things with a very high z-index.
So, I'd say, either enter a very high z-index in the default cookie-law plugin default CSS file (such as 9999999) or allow it to be overridden with a parameter to the init() method.
wrong version number is mentioned in the latest version of jquery-eu-cookie-law-popup.js. In version 1.1.3 file, I could see version number 1.1.1 is mentioned. Please consider in the next release.
line 174
var c = cookies[i].trim();
maybe
var c = $.trim(cookies[i]);
Even though the documentation says it's possible to enter parameters with code such as this:
(new EuCookieLawPopup()).init({
// ...
});
This actually doesn't work, as EuCookieLawPopup() is not available outside the closure where it's defined. I removed the "var" before its definition, so it's a global variable. Now it works, but there should be a more elegan solution. ;)
Hello,
there is small issue with the plugin, I am not sure if you are aware, but the popup should not be accepted by clicking on the X button.
When that happens, I belive the popup should disappear, but it definitely should not be accepted.
By law it needs to be accepted only by clear consent, which in this case is the "Accept" button.
Are you still maintaining this plugin?
Thank you!
Josef
Hey ,
is there a way to USE AN IFRAME instead a popuptext?
Thanks
I see in the demos there is a check if a user accepted the cookies, but nowhere is an example if a user doesn't accept them. Even if I click the closing X it still says: cookie consent: true. What is needed to get cookie consent: false?
Hello and thank you for sharing this excellent cookies bar that I am using in my Joomla 3.X website.
Because I have to use the cookie message in different languages, I have used the solution with a
Great plugin. But when dynamically loading Google Analytics, the user_cookie_already_accepted can be triggered early.
My work-around was to add an additional public function, so you can check cookie acceptance at any time:
alreadyAccepted : function() {
// No need to display this if user already accepted the policy
return userAlreadyAcceptedCookies();
}
When I use javascript stting I can't set compact Style= true so looking in code something is missing.
I have added inside
if (settings) {
those line
if (typeof settings.compactStyle !== 'undefined') {
_self.params.compactStyle = settings.compactStyle;
}
I tried everything with the demo code on your website blog demo page and nothing worked, till I thought of the often re-occurring irritation that many display scripts have (and a few text-editors) for code when presented in a copy-paste box - namely ticks and quotation characters being wrongly output into the writers versions, not the straight ones. They are invalid for the javascript code posted on the blog page where we can grab the copy-paste code. On the Github pages they are correct. But the blog uses these - โ
- instead of these - "
-. Also the single quotes are being tilted from what should be - '
- into - โ
-. Please change that so no more people have to wonder. Or direct us to the Github for demos only, at least for the copy-paste.
Perhaps you were copy-pasting the code into or out of mac TextEdit, that screws these up all the time. When in Atom, the characters persisted and I got nothing but errors. Works fine now though, when changed.
I just go to the demo pages, and no cookie bar or whatever ever shows up. Not when I delete all cookies, and not when I open them in a Private window.
I'm using Firefox 61, Ghostery (enhanced anti-tracking, enhanced ad blocking, smart blocking all OFF), and AdBlock (subscribed to EasyList and "Dutch"). No proxy or whatever that messes with things.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.