tox82 / cookie-bar Goto Github PK
View Code? Open in Web Editor NEWcookieBAR is a free & easy solution to the EU cookie law.
Home Page: https://cookie-bar.eu/
License: GNU General Public License v2.0
cookieBAR is a free & easy solution to the EU cookie law.
Home Page: https://cookie-bar.eu/
License: GNU General Public License v2.0
Avvio della Cookiebar anche in assenza di Cookies.
Ritorno della Cookiebar al riconoscimento di Cookies anche dopo l'accettazione, quindi eliminare i 30 giorni.
Aggiunta dei link alle Policy per servizi di terze parti tipo Adsense, Analitics, Addthis...
I have made a Danish language file. How can it be integrated?
The char "-" is removed when put a custom Privacy Page with "-" char in the url, so the link became broken in the banner.
The link to the Opera help center https://help.opera.com/Windows/10.00/fr/cookies.html) renders a 404 error.
I found this page about managing cookies: https://help.opera.com/en/latest/web-preferences/#cookies
It seems as the Cookie Banner does not show up in Firefox or Chrome (on Mac) anymore, neither in Safari on iOS. No "cookiebar: CookieAllowed" Cookie is set so far. Maybe you can take a look at that.
Take a look at: https://www.page6.de/cookie.html
NO - Norway should be added to cookieLawStates.
Although not part of the EU they still require cookie consent, see https://www.iabeurope.eu/eucookielaws/no/
My HTML editor complains about the HTML snippet, that was created with your generator at cookie-bar.eu. For example the snippet
<script type="text/javascript" src="//cdn.jsdelivr.net/cookie-bar/1/cookiebar-latest.min.js?forceLang=de&theme=grey&tracking=1&remember=100&privacyPage=%2Fprivacy"></script>
does not have a correctly escaped URL. I guess correct should be:
<script type="text/javascript" src="//cdn.jsdelivr.net/cookie-bar/1/cookiebar-latest.min.js?forceLang=de&theme=grey&tracking=1&remember=100&privacyPage=%2Fprivacy"></script>
The request to https://freegeoip.io/json/ is in error : canceled.
This error can be view on the demo site https://cookie-bar.eu/
Hello, could anybody add the file attached to the lang folder? It's Bulgarian translation. I'm not good in working with github.
bg.zip
It seems Cookie Bar doesn't show up on a popular Bootstrap Theme (Twitter Bootstrap theme); my website is Drupal 7, Cookie bar used to work and still works with another theme, but I recently switched to Bootstrap theme and it doesn't work, if I change theme back, it shows.....
Bootstrap theme is also using cdn.jsdelivr.net;
Cookie-Bar-Master - I have downloaded locally long time ago in a separate folder; it used to work, but now I don't know what to do...
The web configurator uses wrong two-letter code for forcing Czech language. As a result, an English version of the bar is shown. It simply needs to use cs
instead of cz
.
Actual: forceLang=cz
Desired: forceLang=cs
Hi,
I've used version 1.5.33 in the past without any issues. After switching to version 1.6.2, each page containing the cookieBar script is processed at least twice or sometimes three times. It looks like multiple requests are being executed. If I use version 1.5.33 everything is ok. I use the following parameters: forceLang=de&tracking=1&always=1&noGeoIp=1&top=1&privacyPage=Privacy.html
Does anyone have any idea what might be causing this?
It is a bit misleading to link the privacy page from within the top or bottom bar itself. It should be better to always show the "details" link opening the banner, and link the privacy page from there.
Hi!
telize is also timing out most of the time.
When a custom Privacy policy page is configured, the link to this page is place right next to the existing Details link without a clear separation between the two. Without hovering with the mouse it is unclear that there are two links present. Additionally the bar reads awkwardly due to the two phrases not being separated.
Add options to choose an cookie level
Level 1: Only needed Cookies
Level 2: Statistical Cookies
Level 3: Advertising Cookies
and so on
75.0.3770.100 (Official Build) (64-bit)
OSX 10.14.5.
Banner disappears in Safari And Firefox and remembers the choice. Doesn't seem to work in Chrome browsers. Every refresh, the banner reappears.
Attempting to implement:
cookieValue = document.cookie.match(/(;)?cookiebar=([^;]*);?/)[2]; if (cookieValue == 'CookieAllowed') {
The if statement never is entered on Chrome. Works fine in Firefox and Safari.
Update:
Chrome has local cookie setting issues. Once published, the code works fine.
Great script, but the French translation could be much improved with a few quick changes. As a native speaker, here are my suggested changes:
Are there plans to comply with GDPR by 25th May 2018? I see IT Governance have written an article about GDPR affects Cookie Policies here.
Will there be an option to revoke consent?
It's possible to include the attribute rel="nofollow" in the a links?
To not follow by search engines.
Hi,
I've worked on a cookieBAR plugin for Pico (http://picocms.org/). Here it is: https://github.com/bricebou/PicoCookieBAR
It would be great if you made cookieBAR available through PHP composer, through https://packagist.org.
Thanks for your script !
The cookie bar is not displaying on certain devices:
Microsoft Surface, Windows 10, Chrome
iphone 6 ios 12.1
And Microsoft Surface using explorer closes the cookie bar when using the browser back button?
I noticed this lib get auto updated into jsDelivr but there is no minified version.
Please consider offering a minified version for CDN hosting.
Using uglifyjs, there is almost a 50% saving in file size.
cookiebar-latest.js: 11464 bytes
cookiebar-latest.min.js: 6680 bytes
The new one would be https://help.opera.com/en/latest/web-preferences/#cookies
Dopo la chiusura della barra rimane lo spazio precedentemente occupato da questa.
Sorry, to bother you, but CDN still doesn't have Slovenian translation. Can you check what is going on?
Please change in configurator
<script type="text/javascript" src="http://cdn.jsdelivr.net/cookie-bar/1/cookiebar-latest.js"></script>
to:
<script type="text/javascript" src="//cdn.jsdelivr.net/cookie-bar/1/cookiebar-latest.js"></script>
So it will work with HTTP and HTTPS, thanks
When the cookie Bar is displayed in French, the additional information is from "fr.html" -- however, this page includes a link to http://www.cnil.fr/vos-obligations/sites-web-cookies-et-autres-traceurs/ -- Commission Nationale de l'Informatique et des Libertés.
So, while that is right for France, it is not correct for Belgium where the links should point to the "Commission de la protection de la vie privée" or "Commissie voor de bescherming van de persoonlijke levenssfeer" (in English: Commission for the Protection of Privacy).
See information on cookieBAR.eu website: Legal Reading
I think that the Legal Reading link should probably be based on the country where the person is located (similar to GET: //freegeoip.io/json/) -- of course, this is defeated by VPN users, but that is another problem.
As you can see here http://codepen.io/anon/pen/jbEopM After you close the notification from the top - the top of the webpage is truncated - so the top text/graphics are cut or hidden.
(notified by email)
For this links
To improve performance and prevent security vulnerabilities links must have a rel="noopener"
or rel="noreferrer"
to any external links.
Hi,
Looking at the 'Preventive block' tab on the website, is see the option to verify setting of the cookie with f.i.:
<?php
if ($_COOKIE['cookiebar'] == "CookieAllowed") {
// The user has allowed cookies, let's load our external services
}
?>
When is this script executed? As soon as the visitor hit the 'accept' button or when the same visitors visits the site within the time the cookie is valid?
Thanks.
Hi !
Telize has been shut down according to the website.
Hi, on every request the following error message is shown in the chrome console:
cookieBAR - Timeout for freegeoip
In the main banner it should be stated wether the website uses only tecnical cookies or if third party or tracking cookies are in use too.
It is needed to add some configurations to specify which kind of cookies are actually in use.
Cloned the repository in the project and referenced the "cookiebar-latest.min.js" file in the script tag.
How can I confirm that the script is working 100%?
Thanks
seems someone have installed the server to https://freegeoip.io
You can upgrade your core script to use the new service?
Hart
GB is the ISO code for the United Kingdom, not UK.
This means that the U.K. is considered outside of the EU, according to your code :(
The FreeGeoIP team has announced that their API will be discontinued starting from the 1st of July 2018. They are switching to a new geoip service but the free plan will have a 10.000 request limit, so it's not viable for cookiebar. Moreover, an API Key would be needed and I'd like to avoid it.
Do you know another similar service that cookiebar could use? TBH we wouldn't even need precise geolocation, as the cookiebar only needs to detect the user's country code.
Here are some free services that I've found:
http://ip-api.com/
http://geoip.nekudo.com/
...
Any suggestions?
As the cookie law states, if a use declines the use of cookies the website, it should not install any of them on his terminal.
This is impossible to do with a javascript solution, but it could be feasible to delete them AFTER they are set, at every refresh.
Could this be a (partial) solution?
With android firefox mobile tap on button is impossible.
solved
Hi Again !
sorry for all these issues. The Chrome Developer Console brings up this error message:
"URL" was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.telize.com/geoip'. This request has been blocked; the content must be served over HTTPS.
Geolocalizzazione dei soli paesi afflitti dalla normativa, quindi escludere il resto del mondo dalla visualizzazione della barra.
Hi,
I have found three errors in the Czech translation (cs.html).
Here is the correct spelling.
Line 10 (1 word modified)
English: "This website makes use of third party cookies, see the details in the privacy policy."
Correct translation: "Tato webová stránka používá cookies třetích stran, viz podrobnosti v zásadách ochrany osobních údajů."
Line 14 (1 word modified)
English: "This website makes use of tracking cookies, see the details in the privacy policy."
Correct translation: "Tato webová stránka používá sledovací cookies, viz podrobnosti v zásadách ochrany osobních údajů."
Line 45 (2 words modified)
English: "Privacy policy"
Correct translation: "Zásady ochrany osobních údajů"
Maybe I'm understanding this wrong, but on the website the plugin is listed as:
It shows up when needed and stay silent when not: If a website has some cookies or localStorage data set then the bar is shown, otherwhise nothing happens.
For testing purposes I hosted a empty HTML file with nothing except the code produced by the configurator:
<!-- test.html -->
<script src="https://cdn.jsdelivr.net/npm/cookie-bar/cookiebar-latest.min.js?forceLang=de&noGeoIp=1&top=1&hideDetailsBtn=1"></script>
But for some reason I still get the cookie notice no matter what. I would have thought that the bar would now be hidden unless I would set a cookie before.
As in object
Try on www.100asa.it
Hi,
I want to use your plugin on my website, because i like the functions and design. :)
Today I have found some errors, which occur, if the user has switched the cookies off in his browser settings.
The problem occurs while reading "window.localStorage".
Chrome ... accessing window.localStorage throws an exception
Firefox ... reading window.localStorage returns null and then throws an exception
I suggest, you fix this by adding a try-catch block and checking for null.
(Chrome ... chrome://settings/content ; Firefox ... about:preferences#privacy )
Thank you in advance.
When i scroll down in Firefox the cookie bar does not scroll down with to stick to the bottom the browser#s window but stay still.
The snippet
cookieValue = document.cookie.match(/(;)?cookiebar=([^;]*);?/)[2];
throws error Uncaught TypeError: Cannot read property '2' of null
when cookiebar
cookie is not present in Chrome 74.0.3729.108
I'd suggest to change that to the following:
let matches = document.cookie.match(/(;)?cookiebar=([^;]*);?/);
let cookieValue = Array.isArray(matches) ? matches[2] : '';
note this may not be compatible with older browsers...
I am currently using cookie-bar on my website to prevent AdSense ads from showing, because this is required to comply with the AdSense TOS. Because my ads are Opt-In now for all customers, this has largely impacted my page's ad revenue. A large part of my visitors is based in the US and India, so they are not affected by the GDPR and I could show them ads without requiring consent.
Unfortunately, right now cookie-bar is either always showing (no GeoIP) or only showing for EEA visitors (GeoIP). In the latter case, if I want to check if the Opt-In cookie has been set by cookie-bar, this would obviously fail, because cookie-bar has never been loaded, thus no cookie has been set.
I would now have to use an additional GeoIP plugin to determine the visitors location, but since cookie-bar already does GeoIP identification, it would be easiest if cookie-bar still sets the CookieAllowed cookie if the GeoIP verification determined that the visitor is located outside of the EEA, i.e. Opt-In for all non-EEA visitors. I'll gladly help implementing this feature.
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.