@demos-europe/dp-consent
Advanced tools
Comparing version 1.1.2 to 1.2.0
{ | ||
"name": "@demos-europe/dp-consent", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"private": false, | ||
@@ -24,3 +24,4 @@ "description": "A cookie consent solution.", | ||
"rollup-plugin-terser": "^7.0.2" | ||
} | ||
}, | ||
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" | ||
} |
@@ -15,4 +15,5 @@ function createButton (textContent, id, type) { | ||
buttons.classList.add('dp-consent-slider__buttons') | ||
buttons.appendChild(createButton('Alle akzeptieren', 'accept_all', 'primary')) | ||
buttons.appendChild(createButton('Einstellungen ändern', 'change_settings')) | ||
buttons.appendChild(createButton('Zustimmen', 'accept_all', 'primary')) | ||
buttons.appendChild(createButton('Ablehnen', 'decline_optional', 'primary')) | ||
buttons.appendChild(createButton('Überprüfen', 'change_settings')) | ||
return buttons | ||
@@ -66,3 +67,3 @@ } | ||
var noticeContainer = document.createElement('div') | ||
noticeContainer.appendChild(document.createTextNode(notice)) | ||
noticeContainer.innerHTML = notice | ||
return noticeContainer | ||
@@ -180,2 +181,8 @@ } | ||
} | ||
if (targetId === 'decline_optional') { | ||
trackingConsent.given = false | ||
removeDpConsentElements() | ||
} | ||
if (targetId === 'change_settings') { | ||
@@ -182,0 +189,0 @@ showSettingsModal() |
Sorry, the diff of this file is not supported yet
16
17946
362