Real-time mapping in-game or your browser as you explore.
![]()
A free & easy solution to the EU cookie law. Why cookieBAR?There is a lot of mystery and fuss surrounding the EU cookie legislation, but it's essentially really simple. Cookies are files used to track site activity and most websites use them. Site owners need to make the use of cookies very obvious to visitors.cookieBAR makes it simple and clear to visitors that cookies are in use and tells them how to adjust browser settings if they are concerned.Oh, and if you are using Wordpress, there's a for you too. How it workscookieBAR is drop-in and forget. Written in pure vanilla javascript code, no jQuery or any other dependency needed.
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. This is configurable, anyway.Once the user clicks 'Allow Cookies', cookieBAR will set a cookie for that domain with a name 'cookiebar' that will expire in 30 days. What this means is that the plugin will only show up once per domain (per month).If a user decides to click 'Disallow Cookies', cookieBAR will remove all the cookies and localStorage data (but it will show up again the first time a cookie is detected).Please note that the cookieBAR itself (or similar solutions) can't deal with external services, secure or HTTP-only cookies. You will probably need to deal with them preventively.
Please read more about the preventive block. Why did I write this?Because I needed it. I got the idea from, which was beautiful, but I needed something more configurable, multilanguage and not dependent upon jQuery or any other javascript framework. So I forked the original project on GitHub and started to add what I needed, concluding with a pull-request whose code was completely rewritten.
Sadly, the original project seems stopped and nobody has even probably seen my modifications. Several months later I decided to add even more things and to give this plugin a place to be, which is why it became cookieBAR.
How many languages are supported?Currently, the supported languages for cookieBAR are:. Bulgarian. Catalan.
Czech. Danish. Dutch. English. Finnish. French. German.
![]()
Greek. Hungarian. Italian. Norwegian. Polish. Portuguese.
Romanian. Russian.
Slovak. Slovenian.
![]()
Spanish. Swedish.
SwedishThe user language is automatically detected by the browser, but you can force a specific language by passing an optional parameter (see ).If you want to help me with the translations, or add another language, please fork my repository and make a pull request with your additions. InstallationYou have at least three options if you decide to give cookieBAR a try:. The easy-peasy (and probably better) one: grab the code in the 'Configuration' page and use the hosted version. Or, you can self-host it by yourself:. Checkout the repository and place it somewhere in a folder within your website or your server. All of the files, including images and stylesheets, need to maintain it's relative structure - that is be in the same directory - for the plugin to work correctly. Grab the code you will find below and adjust the path.If you use npm, you can even install the cookieBAR with a simple npm -i cookie-bar.If you need to add some configuration to it, please use the configurator below.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |