|
@@ -275,7 +275,7 @@ var tarteaucitron = {
|
|
html += ' </button>';
|
|
html += ' </button>';
|
|
html += ' <div id="tarteaucitronServices">';
|
|
html += ' <div id="tarteaucitronServices">';
|
|
html += ' <div class="tarteaucitronLine tarteaucitronMainLine" id="tarteaucitronMainLineOffset">';
|
|
html += ' <div class="tarteaucitronLine tarteaucitronMainLine" id="tarteaucitronMainLineOffset">';
|
|
- html += ' <h1 id="dialogTitle">'+ tarteaucitron.lang.title + '</h1>';
|
|
|
|
|
|
+ html += ' <span id="dialogTitle" class="tarteaucitronH1">'+ tarteaucitron.lang.title + '</span>';
|
|
html += ' <div id="tarteaucitronInfo" class="tarteaucitronInfoBox">';
|
|
html += ' <div id="tarteaucitronInfo" class="tarteaucitronInfoBox">';
|
|
html += ' ' + tarteaucitron.lang.disclaimer;
|
|
html += ' ' + tarteaucitron.lang.disclaimer;
|
|
if (tarteaucitron.parameters.privacyUrl !== "") {
|
|
if (tarteaucitron.parameters.privacyUrl !== "") {
|
|
@@ -286,7 +286,7 @@ var tarteaucitron = {
|
|
}
|
|
}
|
|
html += ' </div>';
|
|
html += ' </div>';
|
|
html += ' <div class="tarteaucitronName">';
|
|
html += ' <div class="tarteaucitronName">';
|
|
- html += ' <h2>' + tarteaucitron.lang.all + '</h2>';
|
|
|
|
|
|
+ html += ' <span class="tarteaucitronH2">' + tarteaucitron.lang.all + '</span>';
|
|
html += ' </div>';
|
|
html += ' </div>';
|
|
html += ' <div class="tarteaucitronAsk" id="tarteaucitronScrollbarAdjust">';
|
|
html += ' <div class="tarteaucitronAsk" id="tarteaucitronScrollbarAdjust">';
|
|
html += ' <button id="tarteaucitronAllAllowed" class="tarteaucitronAllow" onclick="tarteaucitron.userInterface.respondAll(true);">';
|
|
html += ' <button id="tarteaucitronAllAllowed" class="tarteaucitronAllow" onclick="tarteaucitron.userInterface.respondAll(true);">';
|
|
@@ -347,7 +347,7 @@ var tarteaucitron = {
|
|
} else {
|
|
} else {
|
|
html += ' ' + tarteaucitron.lang.alertBigClick + ' ' + tarteaucitron.lang.alertBig;
|
|
html += ' ' + tarteaucitron.lang.alertBigClick + ' ' + tarteaucitron.lang.alertBig;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
html += ' </span>';
|
|
html += ' </span>';
|
|
html += ' <button id="tarteaucitronPersonalize" onclick="tarteaucitron.userInterface.respondAll(true);">';
|
|
html += ' <button id="tarteaucitronPersonalize" onclick="tarteaucitron.userInterface.respondAll(true);">';
|
|
html += ' ✓ ' + tarteaucitron.lang.acceptAll;
|
|
html += ' ✓ ' + tarteaucitron.lang.acceptAll;
|
|
@@ -383,7 +383,7 @@ var tarteaucitron = {
|
|
html += ' ' + tarteaucitron.lang.close;
|
|
html += ' ' + tarteaucitron.lang.close;
|
|
html += ' </button>';
|
|
html += ' </button>';
|
|
html += ' <div class="tarteaucitronCookiesListMain" id="tarteaucitronCookiesTitle">';
|
|
html += ' <div class="tarteaucitronCookiesListMain" id="tarteaucitronCookiesTitle">';
|
|
- html += ' <h2 id="tarteaucitronCookiesNumberBis">0 cookie</h2>';
|
|
|
|
|
|
+ html += ' <span id="tarteaucitronCookiesNumberBis" class="tarteaucitronH2">0 cookie</span>';
|
|
html += ' </div>';
|
|
html += ' </div>';
|
|
html += ' <div id="tarteaucitronCookiesList"></div>';
|
|
html += ' <div id="tarteaucitronCookiesList"></div>';
|
|
html += ' </div>';
|
|
html += ' </div>';
|
|
@@ -399,7 +399,7 @@ var tarteaucitron = {
|
|
// create a wrapper container at the same level than tarteaucitron so we can add an aria-hidden when tarteaucitron is opened
|
|
// create a wrapper container at the same level than tarteaucitron so we can add an aria-hidden when tarteaucitron is opened
|
|
/*var wrapper = document.createElement('div');
|
|
/*var wrapper = document.createElement('div');
|
|
wrapper.id = "contentWrapper";
|
|
wrapper.id = "contentWrapper";
|
|
-
|
|
|
|
|
|
+
|
|
while (document.body.firstChild)
|
|
while (document.body.firstChild)
|
|
{
|
|
{
|
|
wrapper.appendChild(document.body.firstChild);
|
|
wrapper.appendChild(document.body.firstChild);
|
|
@@ -470,7 +470,7 @@ var tarteaucitron = {
|
|
// create wrapper container
|
|
// create wrapper container
|
|
/*var wrapper = document.createElement('div');
|
|
/*var wrapper = document.createElement('div');
|
|
wrapper.id = "contentWrapper";
|
|
wrapper.id = "contentWrapper";
|
|
-
|
|
|
|
|
|
+
|
|
while (document.body.firstChild)
|
|
while (document.body.firstChild)
|
|
{
|
|
{
|
|
wrapper.appendChild(document.body.firstChild);
|
|
wrapper.appendChild(document.body.firstChild);
|
|
@@ -516,7 +516,7 @@ var tarteaucitron = {
|
|
|
|
|
|
html += '<li id="' + service.key + 'Line" class="tarteaucitronLine">';
|
|
html += '<li id="' + service.key + 'Line" class="tarteaucitronLine">';
|
|
html += ' <div class="tarteaucitronName">';
|
|
html += ' <div class="tarteaucitronName">';
|
|
- html += ' <h3>' + service.name + '</h3>';
|
|
|
|
|
|
+ html += ' <span class="tarteaucitronH3">' + service.name + '</span>';
|
|
html += ' <span id="tacCL' + service.key + '" class="tarteaucitronListCookies"></span><br/>';
|
|
html += ' <span id="tacCL' + service.key + '" class="tarteaucitronListCookies"></span><br/>';
|
|
if (tarteaucitron.parameters.moreInfoLink == true) {
|
|
if (tarteaucitron.parameters.moreInfoLink == true) {
|
|
html += ' <a href="https://opt-out.ferank.eu/service/' + service.key + '/" target="_blank" rel="noopener" title="'+ tarteaucitron.lang.cookieDetail + ' ' + service.name + ' ' + tarteaucitron.lang.ourSite + ' ' + tarteaucitron.lang.newWindow +'">';
|
|
html += ' <a href="https://opt-out.ferank.eu/service/' + service.key + '/" target="_blank" rel="noopener" title="'+ tarteaucitron.lang.cookieDetail + ' ' + service.name + ' ' + tarteaucitron.lang.ourSite + ' ' + tarteaucitron.lang.newWindow +'">';
|
|
@@ -782,7 +782,7 @@ var tarteaucitron = {
|
|
}
|
|
}
|
|
//document.getElementById('contentWrapper').setAttribute("aria-hidden", "false");
|
|
//document.getElementById('contentWrapper').setAttribute("aria-hidden", "false");
|
|
document.getElementsByTagName('body')[0].classList.remove('modal-open');
|
|
document.getElementsByTagName('body')[0].classList.remove('modal-open');
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
"focusTrap": function() {
|
|
"focusTrap": function() {
|
|
"use strict";
|
|
"use strict";
|
|
@@ -800,23 +800,23 @@ var tarteaucitron = {
|
|
if (focusableEls[i].offsetHeight > 0) {
|
|
if (focusableEls[i].offsetHeight > 0) {
|
|
filtered.push(focusableEls[i]);
|
|
filtered.push(focusableEls[i]);
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
|
|
- firstFocusableEl = filtered[0];
|
|
|
|
|
|
+ firstFocusableEl = filtered[0];
|
|
lastFocusableEl = filtered[filtered.length - 1];
|
|
lastFocusableEl = filtered[filtered.length - 1];
|
|
|
|
|
|
//loop focus inside tarteaucitron
|
|
//loop focus inside tarteaucitron
|
|
document.getElementById('tarteaucitron').addEventListener("keydown", function (evt) {
|
|
document.getElementById('tarteaucitron').addEventListener("keydown", function (evt) {
|
|
-
|
|
|
|
|
|
+
|
|
if ( evt.key === 'Tab' || evt.keyCode === 9 ) {
|
|
if ( evt.key === 'Tab' || evt.keyCode === 9 ) {
|
|
-
|
|
|
|
|
|
+
|
|
if ( evt.shiftKey ) /* shift + tab */ {
|
|
if ( evt.shiftKey ) /* shift + tab */ {
|
|
if (document.activeElement === firstFocusableEl) {
|
|
if (document.activeElement === firstFocusableEl) {
|
|
lastFocusableEl.focus();
|
|
lastFocusableEl.focus();
|
|
evt.preventDefault();
|
|
evt.preventDefault();
|
|
}
|
|
}
|
|
} else /* tab */ {
|
|
} else /* tab */ {
|
|
- if (document.activeElement === lastFocusableEl) {
|
|
|
|
|
|
+ if (document.activeElement === lastFocusableEl) {
|
|
firstFocusableEl.focus();
|
|
firstFocusableEl.focus();
|
|
evt.preventDefault();
|
|
evt.preventDefault();
|
|
}
|
|
}
|
|
@@ -1175,16 +1175,16 @@ var tarteaucitron = {
|
|
if (tarteaucitron.cookie.owner[name] !== undefined && tarteaucitron.cookie.owner[name].join(' // ') !== savedname) {
|
|
if (tarteaucitron.cookie.owner[name] !== undefined && tarteaucitron.cookie.owner[name].join(' // ') !== savedname) {
|
|
savedname = tarteaucitron.cookie.owner[name].join(' // ');
|
|
savedname = tarteaucitron.cookie.owner[name].join(' // ');
|
|
html += '<div class="tarteaucitronHidden">';
|
|
html += '<div class="tarteaucitronHidden">';
|
|
- html += ' <h3 class="tarteaucitronTitle">';
|
|
|
|
|
|
+ html += ' <span class="tarteaucitronTitle tarteaucitronH3">';
|
|
html += ' ' + tarteaucitron.cookie.owner[name].join(' // ');
|
|
html += ' ' + tarteaucitron.cookie.owner[name].join(' // ');
|
|
- html += ' </h3>';
|
|
|
|
|
|
+ html += ' </span>';
|
|
html += '</div><ul class="cookie-list">';
|
|
html += '</div><ul class="cookie-list">';
|
|
} else if (tarteaucitron.cookie.owner[name] === undefined && host !== savedname) {
|
|
} else if (tarteaucitron.cookie.owner[name] === undefined && host !== savedname) {
|
|
savedname = host;
|
|
savedname = host;
|
|
html += '<div class="tarteaucitronHidden">';
|
|
html += '<div class="tarteaucitronHidden">';
|
|
- html += ' <h3 class="tarteaucitronTitle">';
|
|
|
|
|
|
+ html += ' <span class="tarteaucitronTitle tarteaucitronH3">';
|
|
html += ' ' + host;
|
|
html += ' ' + host;
|
|
- html += ' </h3>';
|
|
|
|
|
|
+ html += ' </span>';
|
|
html += '</div><ul class="cookie-list">';
|
|
html += '</div><ul class="cookie-list">';
|
|
}
|
|
}
|
|
html += '<li class="tarteaucitronCookiesListMain">';
|
|
html += '<li class="tarteaucitronCookiesListMain">';
|