|
@@ -312,13 +312,13 @@ var tarteaucitron = {
|
|
// Step 3: prepare the html
|
|
// Step 3: prepare the html
|
|
html += '<div id="tarteaucitronPremium"></div>';
|
|
html += '<div id="tarteaucitronPremium"></div>';
|
|
if (tarteaucitron.reloadThePage) {
|
|
if (tarteaucitron.reloadThePage) {
|
|
- html += '<button type="button" id="tarteaucitronBack" aria-label="' + tarteaucitron.lang.close + ' (' + tarteaucitron.lang.reload + ')"></button>';
|
|
|
|
|
|
+ html += '<button type="button" id="tarteaucitronBack" aria-label="' + tarteaucitron.lang.close + ' (' + tarteaucitron.lang.reload + ')" title="' + tarteaucitron.lang.close + ' (' + tarteaucitron.lang.reload + ')"></button>';
|
|
} else {
|
|
} else {
|
|
- html += '<button type="button" id="tarteaucitronBack" aria-label="' + tarteaucitron.lang.close + '"></button>';
|
|
|
|
|
|
+ html += '<button type="button" id="tarteaucitronBack" aria-label="' + tarteaucitron.lang.close + '" title="' + tarteaucitron.lang.close + '"></button>';
|
|
}
|
|
}
|
|
html += '<div id="tarteaucitron" role="dialog" aria-modal="true" aria-describedby="tarteaucitronInfo" aria-labelledby="dialogTitle" tabindex="-1">';
|
|
html += '<div id="tarteaucitron" role="dialog" aria-modal="true" aria-describedby="tarteaucitronInfo" aria-labelledby="dialogTitle" tabindex="-1">';
|
|
if (tarteaucitron.reloadThePage) {
|
|
if (tarteaucitron.reloadThePage) {
|
|
- html += ' <button type="button" id="tarteaucitronClosePanel" aria-label="' + tarteaucitron.lang.close + ' (' + tarteaucitron.lang.reload + ')">';
|
|
|
|
|
|
+ html += ' <button type="button" id="tarteaucitronClosePanel" aria-label="' + tarteaucitron.lang.close + ' (' + tarteaucitron.lang.reload + ')" title="' + tarteaucitron.lang.close + ' (' + tarteaucitron.lang.reload + ')">';
|
|
} else {
|
|
} else {
|
|
html += ' <button type="button" id="tarteaucitronClosePanel">';
|
|
html += ' <button type="button" id="tarteaucitronClosePanel">';
|
|
}
|
|
}
|
|
@@ -406,7 +406,7 @@ var tarteaucitron = {
|
|
html += ' ' + tarteaucitron.lang.alertBigPrivacy;
|
|
html += ' ' + tarteaucitron.lang.alertBigPrivacy;
|
|
html += ' </span>';
|
|
html += ' </span>';
|
|
//html += ' <span class="tarteaucitronAlertBigBtnWrapper">';
|
|
//html += ' <span class="tarteaucitronAlertBigBtnWrapper">';
|
|
- html += ' <button type="button" id="tarteaucitronPersonalize" aria-label="' + tarteaucitron.lang.personalize + ' ' + tarteaucitron.lang.modalWindow + '">';
|
|
|
|
|
|
+ html += ' <button type="button" id="tarteaucitronPersonalize" aria-label="' + tarteaucitron.lang.personalize + ' ' + tarteaucitron.lang.modalWindow + '" title="' + tarteaucitron.lang.personalize + ' ' + tarteaucitron.lang.modalWindow + '">';
|
|
html += ' ' + tarteaucitron.lang.personalize;
|
|
html += ' ' + tarteaucitron.lang.personalize;
|
|
html += ' </button>';
|
|
html += ' </button>';
|
|
|
|
|
|
@@ -439,7 +439,7 @@ var tarteaucitron = {
|
|
|
|
|
|
if (tarteaucitron.parameters.DenyAllCta) {
|
|
if (tarteaucitron.parameters.DenyAllCta) {
|
|
if (tarteaucitron.reloadThePage) {
|
|
if (tarteaucitron.reloadThePage) {
|
|
- html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" id="tarteaucitronAllDenied2" aria-label="' + tarteaucitron.lang.denyAll + ' (' + tarteaucitron.lang.reload + ')">';
|
|
|
|
|
|
+ html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" id="tarteaucitronAllDenied2" aria-label="' + tarteaucitron.lang.denyAll + ' (' + tarteaucitron.lang.reload + ')" title="' + tarteaucitron.lang.denyAll + ' (' + tarteaucitron.lang.reload + ')">';
|
|
} else {
|
|
} else {
|
|
html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" id="tarteaucitronAllDenied2">';
|
|
html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" id="tarteaucitronAllDenied2">';
|
|
}
|
|
}
|
|
@@ -448,7 +448,7 @@ var tarteaucitron = {
|
|
//html += ' <br/><br/>';
|
|
//html += ' <br/><br/>';
|
|
}
|
|
}
|
|
|
|
|
|
- html += ' <button type="button" id="tarteaucitronCloseAlert" aria-label="' + tarteaucitron.lang.personalize + ' ' + tarteaucitron.lang.modalWindow + '">';
|
|
|
|
|
|
+ html += ' <button type="button" id="tarteaucitronCloseAlert" aria-label="' + tarteaucitron.lang.personalize + ' ' + tarteaucitron.lang.modalWindow + '" title="' + tarteaucitron.lang.personalize + ' ' + tarteaucitron.lang.modalWindow + '">';
|
|
html += ' ' + tarteaucitron.lang.personalize;
|
|
html += ' ' + tarteaucitron.lang.personalize;
|
|
html += ' </button>';
|
|
html += ' </button>';
|
|
|
|
|
|
@@ -474,7 +474,7 @@ var tarteaucitron = {
|
|
|
|
|
|
if (tarteaucitron.parameters.showAlertSmall === true) {
|
|
if (tarteaucitron.parameters.showAlertSmall === true) {
|
|
html += '<div id="tarteaucitronAlertSmall" class="tarteaucitronAlertSmall' + orientation + '">';
|
|
html += '<div id="tarteaucitronAlertSmall" class="tarteaucitronAlertSmall' + orientation + '">';
|
|
- html += ' <button type="button" id="tarteaucitronManager" aria-label="' + tarteaucitron.lang.alertSmall + ' ' + tarteaucitron.lang.modalWindow + '">';
|
|
|
|
|
|
+ html += ' <button type="button" id="tarteaucitronManager" aria-label="' + tarteaucitron.lang.alertSmall + ' ' + tarteaucitron.lang.modalWindow + '" title="' + tarteaucitron.lang.alertSmall + ' ' + tarteaucitron.lang.modalWindow + '">';
|
|
html += ' ' + tarteaucitron.lang.alertSmall;
|
|
html += ' ' + tarteaucitron.lang.alertSmall;
|
|
html += ' <span id="tarteaucitronDot">';
|
|
html += ' <span id="tarteaucitronDot">';
|
|
html += ' <span id="tarteaucitronDotGreen"></span>';
|
|
html += ' <span id="tarteaucitronDotGreen"></span>';
|
|
@@ -486,7 +486,7 @@ var tarteaucitron = {
|
|
html += ' --><button type="button" id="tarteaucitronCookiesNumber" aria-expanded="false" aria-controls="tarteaucitronCookiesListContainer">0</button>';
|
|
html += ' --><button type="button" id="tarteaucitronCookiesNumber" aria-expanded="false" aria-controls="tarteaucitronCookiesListContainer">0</button>';
|
|
html += ' <div id="tarteaucitronCookiesListContainer">';
|
|
html += ' <div id="tarteaucitronCookiesListContainer">';
|
|
if (tarteaucitron.reloadThePage) {
|
|
if (tarteaucitron.reloadThePage) {
|
|
- html += ' <button type="button" id="tarteaucitronClosePanelCookie" aria-label="' + tarteaucitron.lang.close + ' (' + tarteaucitron.lang.reload + ')">';
|
|
|
|
|
|
+ html += ' <button type="button" id="tarteaucitronClosePanelCookie" aria-label="' + tarteaucitron.lang.close + ' (' + tarteaucitron.lang.reload + ')" title="' + tarteaucitron.lang.close + ' (' + tarteaucitron.lang.reload + ')">';
|
|
} else {
|
|
} else {
|
|
html += ' <button type="button" id="tarteaucitronClosePanelCookie">';
|
|
html += ' <button type="button" id="tarteaucitronClosePanelCookie">';
|
|
}
|
|
}
|
|
@@ -978,6 +978,7 @@ var tarteaucitron = {
|
|
if (tarteaucitron.checkIfExist('tarteaucitronClosePanel')) {
|
|
if (tarteaucitron.checkIfExist('tarteaucitronClosePanel')) {
|
|
var ariaCloseValue = document.getElementById('tarteaucitronClosePanel').textContent.trim() + ' (' + tarteaucitron.lang.reload + ')';
|
|
var ariaCloseValue = document.getElementById('tarteaucitronClosePanel').textContent.trim() + ' (' + tarteaucitron.lang.reload + ')';
|
|
document.getElementById('tarteaucitronClosePanel').setAttribute("aria-label", ariaCloseValue);
|
|
document.getElementById('tarteaucitronClosePanel').setAttribute("aria-label", ariaCloseValue);
|
|
|
|
+ document.getElementById('tarteaucitronClosePanel').setAttribute("title", ariaCloseValue);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (tarteaucitron.launch[key] !== true && status === true) {
|
|
if (tarteaucitron.launch[key] !== true && status === true) {
|
|
@@ -1019,6 +1020,7 @@ var tarteaucitron = {
|
|
if (tarteaucitron.checkIfExist('tarteaucitronClosePanel')) {
|
|
if (tarteaucitron.checkIfExist('tarteaucitronClosePanel')) {
|
|
var ariaCloseValue = document.getElementById('tarteaucitronClosePanel').textContent.trim() + ' (' + tarteaucitron.lang.reload + ')';
|
|
var ariaCloseValue = document.getElementById('tarteaucitronClosePanel').textContent.trim() + ' (' + tarteaucitron.lang.reload + ')';
|
|
document.getElementById('tarteaucitronClosePanel').setAttribute("aria-label", ariaCloseValue);
|
|
document.getElementById('tarteaucitronClosePanel').setAttribute("aria-label", ariaCloseValue);
|
|
|
|
+ document.getElementById('tarteaucitronClosePanel').setAttribute("title", ariaCloseValue);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1744,6 +1746,7 @@ var tarteaucitron = {
|
|
if (document.getElementById('tarteaucitronCookiesNumber') !== null) {
|
|
if (document.getElementById('tarteaucitronCookiesNumber') !== null) {
|
|
document.getElementById('tarteaucitronCookiesNumber').innerHTML = nb;
|
|
document.getElementById('tarteaucitronCookiesNumber').innerHTML = nb;
|
|
document.getElementById('tarteaucitronCookiesNumber').setAttribute("aria-label", nb + ' cookie' + s + " - " + tarteaucitron.lang.toggleInfoBox);
|
|
document.getElementById('tarteaucitronCookiesNumber').setAttribute("aria-label", nb + ' cookie' + s + " - " + tarteaucitron.lang.toggleInfoBox);
|
|
|
|
+ document.getElementById('tarteaucitronCookiesNumber').setAttribute("title", nb + ' cookie' + s + " - " + tarteaucitron.lang.toggleInfoBox);
|
|
}
|
|
}
|
|
|
|
|
|
if (document.getElementById('tarteaucitronCookiesNumberBis') !== null) {
|
|
if (document.getElementById('tarteaucitronCookiesNumberBis') !== null) {
|