Mise à niveau de tarteaucitron.js
This commit is contained in:
parent
0976ec5a23
commit
481c375ca5
|
|
@ -391,7 +391,7 @@ var tarteaucitron = {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tarteaucitron.parameters.highPrivacy && !tarteaucitron.parameters.AcceptAllCta) {
|
if (tarteaucitron.parameters.highPrivacy && !tarteaucitron.parameters.AcceptAllCta) {
|
||||||
html += '<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + '">';
|
html += '<div tabindex="-1" id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + '">';
|
||||||
//html += '<div class="tarteaucitronAlertBigWrapper">';
|
//html += '<div class="tarteaucitronAlertBigWrapper">';
|
||||||
html += ' <span id="tarteaucitronDisclaimerAlert">';
|
html += ' <span id="tarteaucitronDisclaimerAlert">';
|
||||||
html += ' ' + tarteaucitron.lang.alertBigPrivacy;
|
html += ' ' + tarteaucitron.lang.alertBigPrivacy;
|
||||||
|
|
@ -411,7 +411,7 @@ var tarteaucitron = {
|
||||||
//html += '</div>';
|
//html += '</div>';
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
} else {
|
} else {
|
||||||
html += '<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + '">';
|
html += '<div tabindex="-1" id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + '">';
|
||||||
//html += '<div class="tarteaucitronAlertBigWrapper">';
|
//html += '<div class="tarteaucitronAlertBigWrapper">';
|
||||||
html += ' <span id="tarteaucitronDisclaimerAlert">';
|
html += ' <span id="tarteaucitronDisclaimerAlert">';
|
||||||
|
|
||||||
|
|
@ -595,11 +595,11 @@ var tarteaucitron = {
|
||||||
}, 1500);
|
}, 1500);
|
||||||
}
|
}
|
||||||
if(tarteaucitron.parameters.closePopup === true){
|
if(tarteaucitron.parameters.closePopup === true){
|
||||||
let element = document.getElementById('tarteaucitronAlertBig');
|
var closeElement = document.getElementById('tarteaucitronAlertBig'),
|
||||||
let span = document.createElement('span')
|
closeSpan = document.createElement('span');
|
||||||
span.textContent = 'X';
|
closeSpan.textContent = 'X';
|
||||||
span.setAttribute('id', "tarteaucitronCloseCross")
|
closeSpan.setAttribute('id', "tarteaucitronCloseCross");
|
||||||
element.insertBefore(span, element.firstElementChild)
|
closeElement.insertBefore(closeSpan, closeElement.firstElementChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1247,8 +1247,8 @@ var tarteaucitron = {
|
||||||
}
|
}
|
||||||
//end ie compatibility
|
//end ie compatibility
|
||||||
|
|
||||||
if (document.getElementById('tarteaucitronPersonalize2') !== null) {
|
if (document.getElementById('tarteaucitronAlertBig') !== null) {
|
||||||
document.getElementById('tarteaucitronPersonalize2').focus();
|
document.getElementById('tarteaucitronAlertBig').focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
window.dispatchEvent(tacOpenAlertEvent);
|
window.dispatchEvent(tacOpenAlertEvent);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue