Add a timer on the closeelement
This commit is contained in:
parent
4cf393cd40
commit
b091e07cc5
|
|
@ -595,11 +595,15 @@ var tarteaucitron = {
|
|||
}, 1500);
|
||||
}
|
||||
if(tarteaucitron.parameters.closePopup === true){
|
||||
var closeElement = document.getElementById('tarteaucitronAlertBig'),
|
||||
closeSpan = document.createElement('span');
|
||||
closeSpan.textContent = 'X';
|
||||
closeSpan.setAttribute('id', "tarteaucitronCloseCross");
|
||||
closeElement.insertBefore(closeSpan, closeElement.firstElementChild);
|
||||
setTimeout(function() {
|
||||
var closeElement = document.getElementById('tarteaucitronAlertBig'),
|
||||
closeSpan = document.createElement('span');
|
||||
if (closeElement) {
|
||||
closeSpan.textContent = 'X';
|
||||
closeSpan.setAttribute('id', "tarteaucitronCloseCross");
|
||||
closeElement.insertBefore(closeSpan, closeElement.firstElementChild);
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue