From d481f0e911c38d4f3bf8c6ad736275cbf15bd537 Mon Sep 17 00:00:00 2001 From: Christian Welzel Date: Fri, 26 Jun 2020 12:31:35 +0200 Subject: [PATCH] remove onclick html attributes, add callbacks in code. --- css/tarteaucitron.css | 4 +- tarteaucitron.js | 130 +++++++++++++++++++++++++++++++++++------- 2 files changed, 111 insertions(+), 23 deletions(-) diff --git a/css/tarteaucitron.css b/css/tarteaucitron.css index 701f2fb..fee7c01 100644 --- a/css/tarteaucitron.css +++ b/css/tarteaucitron.css @@ -444,7 +444,8 @@ div#tarteaucitronServices { background-color: #1B870B; opacity: 1; } -#tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied.tarteaucitronIsSelected { +#tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied.tarteaucitronIsSelected, +#tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied2.tarteaucitronIsSelected { background-color: #9C1A1A; opacity: 1; } @@ -516,6 +517,7 @@ div#tarteaucitronServices { #tarteaucitronAlertBig #tarteaucitronCloseAlert, #tarteaucitronAlertBig #tarteaucitronPersonalize, +#tarteaucitronAlertBig #tarteaucitronPersonalize2, .tarteaucitronCTAButton, #tarteaucitron #tarteaucitronPrivacyUrl, #tarteaucitron #tarteaucitronPrivacyUrlDialog, diff --git a/tarteaucitron.js b/tarteaucitron.js index f9c8827..28d8237 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -292,9 +292,9 @@ var tarteaucitron = { // Step 3: prepare the html html += '
'; - html += ''; + html += ''; html += ''; html += '
'; html += '