-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab59bc8
commit 34e09df
Showing
6 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
![Size](https://img.shields.io/github/size/danielsitek/dgp-cookie-consent/dist/cookies.min.js) | ||
[![Stable version](https://img.shields.io/github/v/release/danielsitek/dgp-cookie-consent)](https://github.com/danielsitek/dgp-cookie-consent/releases) | ||
[![Monthly downloads](https://img.shields.io/jsdelivr/gh/hm/danielsitek/dgp-cookie-consent)](https://cdn.jsdelivr.net/gh/danielsitek/[email protected].1/dist/cookies.min.js) | ||
[![CDN](https://img.shields.io/badge/CDN-orange?style=flat&logo=jsdelivr&logoColor=white)](https://cdn.jsdelivr.net/gh/danielsitek/[email protected].1/dist/cookies.min.js) | ||
[![Monthly downloads](https://img.shields.io/jsdelivr/gh/hm/danielsitek/dgp-cookie-consent)](https://cdn.jsdelivr.net/gh/danielsitek/[email protected].2/dist/cookies.min.js) | ||
[![CDN](https://img.shields.io/badge/CDN-orange?style=flat&logo=jsdelivr&logoColor=white)](https://cdn.jsdelivr.net/gh/danielsitek/[email protected].2/dist/cookies.min.js) | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/27b5b5b749d18039f303/maintainability)](https://codeclimate.com/github/danielsitek/dgp-cookie-consent/maintainability) | ||
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/65b56152a2a84981b10576ad7081411d)](https://www.codacy.com/gh/danielsitek/dgp-cookie-consent/dashboard) | ||
|
||
|
@@ -60,7 +60,7 @@ Awesome one-of-a-kind Cookie Consent panel. | |
1. Download the latest release or use CDN. | ||
|
||
``` | ||
https://cdn.jsdelivr.net/gh/danielsitek/[email protected].1/dist/cookies.min.js | ||
https://cdn.jsdelivr.net/gh/danielsitek/[email protected].2/dist/cookies.min.js | ||
``` | ||
|
||
1. Insert this code on the bottom of the page, or [inject it via GTM](#gtm-implementation). | ||
|
@@ -148,9 +148,9 @@ window.CookieConsentTranslations = { | |
> **Info**: `perex` and `body` values are rendered as HTML content. | ||
> **Since v1.6.1** | ||
> **Since v1.6.2** | ||
> | ||
> Since version 1.6.1 you can insert anchor links to other tabs in `perex` and `body`. The script will look for anchor elements and if they have `#tab-agree|#tab-details|#tab-about|#allow-all|#reject-all` in href attribute, click on such element will switch to selected tab. | ||
> Since version 1.6.2 you can insert anchor links to other tabs in `perex` and `body`. The script will look for anchor elements and if they have `#tab-agree|#tab-details|#tab-about|#allow-all|#reject-all` in href attribute, click on such element will switch to selected tab. | ||
> | ||
> Examples: | ||
> | ||
|
@@ -676,7 +676,7 @@ window.addEventListener('consent-badge-click', () => { | |
(function cookiesInit() { | ||
var scriptEl = document.createElement('script'); | ||
scriptEl.src = 'https://cdn.jsdelivr.net/gh/danielsitek/[email protected].1/dist/cookies.min.js'; | ||
scriptEl.src = 'https://cdn.jsdelivr.net/gh/danielsitek/[email protected].2/dist/cookies.min.js'; | ||
scriptEl.type = 'text/javascript'; | ||
scriptEl.id = 'cookie-consent'; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,7 @@ | |
|
||
(function cookiesInit() { | ||
var scriptEl = document.createElement('script'); | ||
scriptEl.src = 'https://cdn.jsdelivr.net/gh/danielsitek/[email protected].1/dist/cookies.min.js'; | ||
scriptEl.src = 'https://cdn.jsdelivr.net/gh/danielsitek/[email protected].2/dist/cookies.min.js'; | ||
scriptEl.type = 'text/javascript'; | ||
scriptEl.id = 'cookie-consent-main'; | ||
|
||
|
@@ -184,7 +184,7 @@ | |
|
||
(function cookiesInit() { | ||
var scriptEl = document.createElement('script'); | ||
scriptEl.src = 'https://cdn.jsdelivr.net/gh/danielsitek/[email protected].1/dist/cookies.min.js'; | ||
scriptEl.src = 'https://cdn.jsdelivr.net/gh/danielsitek/[email protected].2/dist/cookies.min.js'; | ||
scriptEl.type = 'text/javascript'; | ||
scriptEl.id = 'cookie-consent-main'; | ||
|
||
|
@@ -289,10 +289,10 @@ | |
|
||
(function cookiesInit() { | ||
var scriptEl = document.createElement('script'); | ||
scriptEl.src = 'https://cdn.jsdelivr.net/gh/danielsitek/[email protected].1/dist/cookies.min.js'; | ||
scriptEl.src = 'https://cdn.jsdelivr.net/gh/danielsitek/[email protected].2/dist/cookies.min.js'; | ||
scriptEl.type = 'text/javascript'; | ||
scriptEl.id = 'cookie-consent'; | ||
|
||
document.body.appendChild(scriptEl); | ||
})(); | ||
</script> | ||
</script> |