cookie-consent-js
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "cookie-consent-js", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A simple dialog and framework to handle the German and EU law (may 2020) about cookies in a website", | ||
"main": "index.js", | ||
"main": "src/cookie-consent.js", | ||
"scripts": { | ||
@@ -15,3 +15,5 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
"cookie", | ||
"cookie consent", | ||
"eu", | ||
"law", | ||
"js", | ||
@@ -18,0 +20,0 @@ "javascript" |
# cookie-consent-js | ||
A simple dialog and framework to handle the German and EU law (may 2020) about cookies in a website | ||
[Demo Page](https://shaack.com/projekte/cookie-consent-js/index.html) |
@@ -13,2 +13,3 @@ /** | ||
buttonSecondaryClass: "btn btn-secondary", | ||
linkPrivacyPolicy: "privacy-policy.html", | ||
content: { | ||
@@ -21,3 +22,2 @@ de: { | ||
privacyPolicy: "Datenschutzerklärung", | ||
linkPrivacyPolicy: "privacy-policy.html", | ||
buttonAcceptAll: "Alle Cookies akzeptieren", | ||
@@ -32,3 +32,2 @@ buttonAcceptTechnical: "Nur technisch notwendige Cookies akzeptieren" | ||
privacyPolicy: "privacy policy", | ||
linkPrivacyPolicy: "privacy-policy.html", | ||
buttonAcceptAll: "Accept all cookies", | ||
@@ -51,3 +50,3 @@ buttonAcceptTechnical: "Only accept technically necessary cookies" | ||
var _t = this.props.content[this.lang] | ||
var linkPrivacyPolicy = '<a href="' + _t.linkPrivacyPolicy + '">' + _t.privacyPolicy + '</a>' | ||
var linkPrivacyPolicy = '<a href="' + this.props.linkPrivacyPolicy + '">' + _t.privacyPolicy + '</a>' | ||
this.modalContent = '<div class="cookie-consent-modal">' + | ||
@@ -54,0 +53,0 @@ '<div class="modal-content">' + |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
13700
191
4