Skip to content

Commit

Permalink
0.9.5
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
francescomugnai committed May 2, 2022
1 parent 879f8b5 commit a04016f
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes

## 0.9.4 (2022-05-02)

### What's improved

- Bug Fixing

## 0.9.3.5 (2022-04-29)

### What's improved
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<br/>

![npm](https://img.shields.io/badge/Just%20Good%20Cookies-0.9.3.5-%23abe1be) ![jsDelivr hits (GitHub)](https://img.shields.io/jsdelivr/gh/hm/francescomugnai/just-good-cookies?color=b8eecc) ![GitHub top language](https://img.shields.io/github/languages/top/francescomugnai/just-good-cookies?color=%23bbf7d0) ![npm bundle size](https://img.shields.io/bundlephobia/min/just-good-cookies?color=%23bbf7d0) ![NPM](https://img.shields.io/npm/l/just-good-cookies?color=%23bbf7d0) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/francescomugnai/just-good-cookies/CodeQL?color=%23bbf7d0) ![Snyk Vulnerabilities for GitHub Repo](https://img.shields.io/snyk/vulnerabilities/github/francescomugnai/just-good-cookies?color=%23bbf7d0)
![npm](https://img.shields.io/badge/Just%20Good%20Cookies-0.9.4-%23abe1be) ![jsDelivr hits (GitHub)](https://img.shields.io/jsdelivr/gh/hm/francescomugnai/just-good-cookies?color=b8eecc) ![GitHub top language](https://img.shields.io/github/languages/top/francescomugnai/just-good-cookies?color=%23bbf7d0) ![npm bundle size](https://img.shields.io/bundlephobia/min/just-good-cookies?color=%23bbf7d0) ![NPM](https://img.shields.io/npm/l/just-good-cookies?color=%23bbf7d0) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/francescomugnai/just-good-cookies/CodeQL?color=%23bbf7d0) ![Snyk Vulnerabilities for GitHub Repo](https://img.shields.io/snyk/vulnerabilities/github/francescomugnai/just-good-cookies?color=%23bbf7d0)

Just Good Cookies (JGC) is a simple (but delicious) cookie consent solution made in vanilla JavaScript.
It is designed to be fast, painless and easy to use.
Expand Down Expand Up @@ -96,7 +96,7 @@ There are 2 ways to use JGC in your projects:
1. Copy this script and paste it on your site (ideally into the head tag)

```js
<script src="https://cdn.jsdelivr.net/gh/francescomugnai/just-good-cookies@0.9.3.5/dist/justgoodcookies.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/francescomugnai/just-good-cookies@0.9.4/dist/justgoodcookies.min.js"></script>
```

2. Install Tailwind (if you haven't already, see [below](#tailwind))
Expand Down
4 changes: 2 additions & 2 deletions dist/justgoodcookies.esm.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/justgoodcookies.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2022
* Copyright - 2022
* JustGoodCookies
* Created by Francesco Mugnai
* Released under MIT License
Expand Down Expand Up @@ -1144,7 +1144,7 @@
var _JGC$panel, _JGC$customStyle8, _JGC$panel2, _JGC$customStyle9, _JGC$customStyle10, _JGC$text, _JGC$customStyle11, _JGC$text2, _JGC$customStyle12, _JGC$text3;

var cookiePanel = document.createElement("div");
cookiePanel.innerHTML = "\n <div id=\"preferenceDiv\" style=\"background-color: rgba(0,0,0,0.6);z-index:9999 !important;\" class=\"".concat(checkTailwindPrefix('w-full min-h-screen top-0 fixed flex flex-col p-6 shadow-2xl items-center justify-center mx-auto transition duration-700 ease-in-out'), " ").concat(JGC.panelHeader ? '' : null, " \">\n ").concat(JGC.panelHeader ? "<div id=\"jgc-custom-header\" class=\"".concat(checkTailwindPrefix('w-full'), "\"></div>") : '', "\n <div class=\"").concat((_JGC$panel = JGC.panel) !== null && _JGC$panel !== void 0 && _JGC$panel.bgColor ? JGC.panel.bgColor : "".concat((_JGC$customStyle8 = JGC.customStyle) !== null && _JGC$customStyle8 !== void 0 && _JGC$customStyle8.preferenceDiv ? JGC.customStyle.preferenceDiv : checkTailwindPrefix('bg-white dark:bg-gray-800 max-w-3xl w-full')), " ").concat(((_JGC$panel2 = JGC.panel) === null || _JGC$panel2 === void 0 ? void 0 : _JGC$panel2.padding) == false ? '' : "".concat(checkTailwindPrefix('p-2')), "\">\n <div class=\"").concat((_JGC$customStyle9 = JGC.customStyle) !== null && _JGC$customStyle9 !== void 0 && _JGC$customStyle9.panelHeader ? JGC.customStyle.panelHeader : "".concat(checkTailwindPrefix('md:flex justify-between px-4 py-4')), "\">\n <h2 class=\"").concat((_JGC$customStyle10 = JGC.customStyle) !== null && _JGC$customStyle10 !== void 0 && _JGC$customStyle10.panelTitle ? JGC.customStyle.panelTitle : checkTailwindPrefix('dark:text-gray-300 leading-snug text-xl font-bold m-0 p-0'), "\">\n ").concat((_JGC$text = JGC.text) !== null && _JGC$text !== void 0 && _JGC$text.panelTitle ? JGC.text.panelTitle : '', " \n </h2>\n <div class=\"").concat(checkTailwindPrefix('space-x-1 md:mt-0 mt-4'), "\">\n <button role=\"button\" id=\"closePreferencePanel\" type=\"button\" class=\"").concat((_JGC$customStyle11 = JGC.customStyle) !== null && _JGC$customStyle11 !== void 0 && _JGC$customStyle11.saveButton ? JGC.customStyle.saveButton : "".concat(checkTailwindPrefix('px-3 py-1 uppercase font-bold tracking-wide text-xs z-index-10 relative rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer text-green-600 ring-1 ring-green-600')), " \">\n ").concat((_JGC$text2 = JGC.text) !== null && _JGC$text2 !== void 0 && _JGC$text2.saveButton ? JGC.text.saveButton : JGC.locale.saveAndContinue, " \n </button>\n <button role=\"button\" id=\"closePreferencePanelAcceptAll\" type=\"button\" class=\"").concat((_JGC$customStyle12 = JGC.customStyle) !== null && _JGC$customStyle12 !== void 0 && _JGC$customStyle12.saveAllButton ? JGC.customStyle.saveAllButton : "".concat(checkTailwindPrefix('px-3 py-1 uppercase font-bold tracking-wide text-xs z-index-10 relative rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer text-green-600 ring-1 ring-green-600')), " \">\n ").concat((_JGC$text3 = JGC.text) !== null && _JGC$text3 !== void 0 && _JGC$text3.saveAllButton ? JGC.text.saveAllButton : JGC.locale.saveAndContinueAcceptAll, " \n </button>\n </div>\n </div>\n <div>\n <div style=\"overflow-y: scroll; -webkit-overflow-scrolling: touch; max-height: calc(100vh - 400px);\" class=\"").concat(JGC.panel && JGC.panel.stripes ? "".concat(JGC.panel.stripes.odd, " ").concat(JGC.panel.stripes.even) : checkTailwindPrefix('space-y-4 overflow-y-auto'), " ").concat(checkTailwindPrefix('text-sm py-4'), "\"> \n ").concat(generateOptions(), "\n </div> \n </div>\n </div>\n ").concat(JGC.panelFooter ? "<div id=\"jgc-custom-footer\" class=\"".concat(checkTailwindPrefix('w-full'), "\"></div>") : '', "\n </div>\n </div>\n ");
cookiePanel.innerHTML = "\n <div id=\"preferenceDiv\" style=\"background-color: rgba(0,0,0,0.6);z-index:9999 !important;\" class=\"".concat(checkTailwindPrefix('w-full min-h-screen top-0 fixed flex flex-col p-6 shadow-2xl items-center justify-center mx-auto transition duration-700 ease-in-out'), " ").concat(JGC.panelHeader ? '' : null, " \">\n ").concat(JGC.panelHeader ? "<div id=\"jgc-custom-header\" class=\"".concat(checkTailwindPrefix('w-full'), "\"></div>") : '', "\n <div class=\"").concat((_JGC$panel = JGC.panel) !== null && _JGC$panel !== void 0 && _JGC$panel.bgColor ? JGC.panel.bgColor : "".concat((_JGC$customStyle8 = JGC.customStyle) !== null && _JGC$customStyle8 !== void 0 && _JGC$customStyle8.preferenceDiv ? JGC.customStyle.preferenceDiv : checkTailwindPrefix('bg-white dark:bg-gray-800 max-w-3xl w-full')), " ").concat(((_JGC$panel2 = JGC.panel) === null || _JGC$panel2 === void 0 ? void 0 : _JGC$panel2.padding) == false ? '' : "".concat(checkTailwindPrefix('p-2')), "\">\n <div class=\"").concat((_JGC$customStyle9 = JGC.customStyle) !== null && _JGC$customStyle9 !== void 0 && _JGC$customStyle9.panelHeader ? JGC.customStyle.panelHeader : "".concat(checkTailwindPrefix('md:flex justify-between px-4 py-4')), "\">\n <h2 class=\"").concat((_JGC$customStyle10 = JGC.customStyle) !== null && _JGC$customStyle10 !== void 0 && _JGC$customStyle10.panelTitle ? JGC.customStyle.panelTitle : checkTailwindPrefix('dark:text-gray-300 leading-snug text-xl font-bold m-0 p-0'), "\">\n ").concat((_JGC$text = JGC.text) !== null && _JGC$text !== void 0 && _JGC$text.panelTitle ? JGC.text.panelTitle : '', " \n </h2>\n <div class=\"").concat(checkTailwindPrefix('md:space-x-2 md:mt-0 mt-4 flex space-y-2 md:space-y-0 flex-col md:flex-row'), "\">\n <button role=\"button\" id=\"closePreferencePanel\" type=\"button\" class=\"").concat((_JGC$customStyle11 = JGC.customStyle) !== null && _JGC$customStyle11 !== void 0 && _JGC$customStyle11.saveButton ? JGC.customStyle.saveButton : "".concat(checkTailwindPrefix('px-3 py-1 uppercase font-bold tracking-wide text-xs z-index-10 relative rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer text-green-600 ring-1 ring-green-600')), " \">\n ").concat((_JGC$text2 = JGC.text) !== null && _JGC$text2 !== void 0 && _JGC$text2.saveButton ? JGC.text.saveButton : JGC.locale.saveAndContinue, " \n </button>\n <button role=\"button\" id=\"closePreferencePanelAcceptAll\" type=\"button\" class=\"").concat((_JGC$customStyle12 = JGC.customStyle) !== null && _JGC$customStyle12 !== void 0 && _JGC$customStyle12.saveAllButton ? JGC.customStyle.saveAllButton : "".concat(checkTailwindPrefix('px-3 py-1 uppercase font-bold tracking-wide text-xs z-index-10 relative rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer text-green-600 ring-1 ring-green-600')), " \">\n ").concat((_JGC$text3 = JGC.text) !== null && _JGC$text3 !== void 0 && _JGC$text3.saveAllButton ? JGC.text.saveAllButton : JGC.locale.saveAndContinueAcceptAll, " \n </button>\n </div>\n </div>\n <div>\n <div style=\"overflow-y: scroll; -webkit-overflow-scrolling: touch; max-height: calc(100vh - 400px);\" class=\"").concat(JGC.panel && JGC.panel.stripes ? "".concat(JGC.panel.stripes.odd, " ").concat(JGC.panel.stripes.even) : checkTailwindPrefix('space-y-4 overflow-y-auto'), " ").concat(checkTailwindPrefix('text-sm py-4'), "\"> \n ").concat(generateOptions(), "\n </div> \n </div>\n </div>\n ").concat(JGC.panelFooter ? "<div id=\"jgc-custom-footer\" class=\"".concat(checkTailwindPrefix('w-full'), "\"></div>") : '', "\n </div>\n </div>\n ");
document.body.appendChild(cookiePanel);
if (JGC.panelHeader) document.getElementById('jgc-custom-header').innerHTML = JGC.panelHeader;
if (JGC.panelFooter) document.getElementById('jgc-custom-footer').innerHTML = JGC.panelFooter;
Expand Down
4 changes: 2 additions & 2 deletions dist/justgoodcookies.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "just-good-cookies",
"version": "0.9.3.5",
"version": "0.9.4",
"description": "A delicious cookie consent solution for complying with EU cookie law",
"license": "MIT",
"main": "dist/justgoodcookies.esm.js",
Expand Down
2 changes: 1 addition & 1 deletion src/justgoodcookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@license
JustGoodCookies
Created by Francesco Mugnai
2022 - v 0.9.3.5
2022 - v 0.9.4
Released under MIT License
If you use this script, you will always remain the sole responsible party, use it at your own risk
https://github.com/francescomugnai/just-good-cookies
Expand Down
2 changes: 1 addition & 1 deletion src/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export function managePreferences(){
<h2 class="${ JGC.customStyle?.panelTitle ? JGC.customStyle.panelTitle : checkTailwindPrefix('dark:text-gray-300 leading-snug text-xl font-bold m-0 p-0')}">
${ JGC.text?.panelTitle ? JGC.text.panelTitle : '' }
</h2>
<div class="${checkTailwindPrefix('space-x-1 md:mt-0 mt-4')}">
<div class="${checkTailwindPrefix('md:space-x-2 md:mt-0 mt-4 flex space-y-2 md:space-y-0 flex-col md:flex-row')}">
<button role="button" id="closePreferencePanel" type="button" class="${ JGC.customStyle?.saveButton ? JGC.customStyle.saveButton : `${checkTailwindPrefix('px-3 py-1 uppercase font-bold tracking-wide text-xs z-index-10 relative rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer text-green-600 ring-1 ring-green-600')}` } ">
${ JGC.text?.saveButton ? JGC.text.saveButton : JGC.locale.saveAndContinue }
</button>
Expand Down

0 comments on commit a04016f

Please sign in to comment.