commit
751ff296ab
|
|
@ -218,7 +218,8 @@ var tarteaucitron = {
|
||||||
"privacyUrl": "",
|
"privacyUrl": "",
|
||||||
"useExternalCss": false,
|
"useExternalCss": false,
|
||||||
"useExternalJs": false,
|
"useExternalJs": false,
|
||||||
"mandatory": true
|
"mandatory": true,
|
||||||
|
"closePopup": false
|
||||||
},
|
},
|
||||||
params = tarteaucitron.parameters;
|
params = tarteaucitron.parameters;
|
||||||
|
|
||||||
|
|
@ -277,7 +278,6 @@ var tarteaucitron = {
|
||||||
}
|
}
|
||||||
document.getElementsByTagName('head')[0].appendChild(customThemeMiddle);
|
document.getElementsByTagName('head')[0].appendChild(customThemeMiddle);
|
||||||
}
|
}
|
||||||
|
|
||||||
var body = document.body,
|
var body = document.body,
|
||||||
div = document.createElement('div'),
|
div = document.createElement('div'),
|
||||||
html = '',
|
html = '',
|
||||||
|
|
@ -578,6 +578,19 @@ var tarteaucitron = {
|
||||||
}
|
}
|
||||||
}, 1500);
|
}, 1500);
|
||||||
}
|
}
|
||||||
|
if(tarteaucitron.parameters.closePopup === true){
|
||||||
|
let element = document.getElementById('tarteaucitronAlertBig');
|
||||||
|
let span = document.createElement('span')
|
||||||
|
span.textContent = 'X';
|
||||||
|
span.style.cssText = 'position:absolute; color: #FFFF; font-size:2rem; cursor: pointer; top: 10px; right: 26px';
|
||||||
|
span.setAttribute('id', "clossCross")
|
||||||
|
element.insertBefore(span, element.firstElementChild)
|
||||||
|
document.getElementById("clossCross").onclick = () =>{
|
||||||
|
tarteaucitron.userInterface.closeAlert();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// add a little timeout to be sure everything is accessible
|
// add a little timeout to be sure everything is accessible
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
<div>
|
||||||
|
<p>AZ</p>
|
||||||
|
<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBigTop" style="display: block; opacity: 1;"><span
|
||||||
|
|
||||||
|
id="tarteaucitronDisclaimerAlert">
|
||||||
|
Ce site utilise des cookies et vous donne le contrôle sur ceux que vous souhaitez activer </span>
|
||||||
|
<button type="button" class="tarteaucitronCTAButton tarteaucitronAllow" id="tarteaucitronPersonalize2"><span
|
||||||
|
class="tarteaucitronCheck"></span> OK, tout accepter
|
||||||
|
</button>
|
||||||
|
<button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" id="tarteaucitronAllDenied2"><span
|
||||||
|
class="tarteaucitronCross"></span> Interdire tous les cookies
|
||||||
|
</button>
|
||||||
|
<button type="button" id="tarteaucitronCloseAlert"> Personnaliser</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Loading…
Reference in New Issue