Alex-D / Cookies-EU-banner

1kb vanilla JS script which manages cookies consent banner display like asked by GDPR
http://alex-d.github.io/Cookies-EU-banner/
MIT License
441 stars 57 forks source link

Debug option? #16

Closed jenstornell closed 8 years ago

jenstornell commented 8 years ago

I just tried it and it seems to be great but I clicked the buttons on my localhost and I guess it saved the cookies and I can't get the banner back to debug / design it (without wiping out the cookies every time).

It's great that it's so small but I still wish for a debug feature. Maybe something like this?

<div id="cookies-eu-banner" style="display: none;" data-debug="true">

With the debug, the bar always comes back after refresh.

It's not been updated in a while. Do you still consider it an active repo?

Alex-D commented 8 years ago

Do you still consider it an active repo?

Yep. I just didn't need to update it because it works :)

Why do you want a debug option? You just need to change display: none; to display: block; :)

Or add the display: block !important; to your CSS while design it.

jenstornell commented 8 years ago

Agree! Simplicity wins! ☺

jenstornell commented 8 years ago

Just wanted to let you know. One of the biggest advantages with your solution is the size. I also wrote about it here (before I switched to yours):

https://github.com/insites/cookieconsent/issues/154

3.5kb is almost nothing but having a js of more than 17kb just to display a cookie message is quite much, I think.

Alex-D commented 8 years ago

Cookies-EU-banner is a 2.35kb plugin of vanilla JS :) https://github.com/Alex-D/Cookies-EU-banner/blob/c1832d1b19d8cd7de2d47dd75993f8c505bee7b0/dist/cookies-eu-banner.min.js