dernières modifs

This commit is contained in:
Valentin
2024-06-28 01:03:20 +02:00
parent 648c737925
commit 18bcbf0562
6 changed files with 98 additions and 30 deletions
+13 -2
View File
@@ -96,11 +96,11 @@ domReady(async () => {
// et privacy policy
let loginPopupText = document.getElementById('content_login_popup');
let privacyText = document.getElementById('content_privacy').innerHTML;
loginPopupText = loginPopupText.innerText;
loginPopupText = loginPopupText.innerHTML;
let loginPopupTextWrapper = document.getElementsByClassName('xoo-el-sidebar');
if (loginPopupTextWrapper[0]) {
loginPopupTextWrapper[0].innerHTML = `<div>Espace collaboratif du site</div>`;
loginPopupTextWrapper[0].innerHTML += `<p style="padding-top: 15px;">${loginPopupText}</p>`;
loginPopupTextWrapper[0].innerHTML += loginPopupText;
}
let loginPopupHeader = document.querySelector('.xoo-el-sidebar div:first-of-type');
if (loginPopupHeader !== null) {
@@ -140,11 +140,20 @@ domReady(async () => {
loginPopupTextWrapper[0].style.overflowY = "scroll";
loginPopupTextWrapper[0].appendChild(privacyPolicyContent);
}
const privacyCheck = document.querySelector(".xoo-aff-required.xoo-aff-checkbox_single label");
if (privacyCheck) {
privacyCheck.innerHTML = `
<input type="checkbox" name="xoo_el_reg_terms" class="xoo-aff-required xoo-aff-checkbox_single" value="yes">
J'accepte les <a>Conditions d'utilisation de la license et la politique de confidentialité</a>.
`;
}
const privacyLink = document.querySelector('.xoo-aff-checkbox_single a');
if (privacyLink) {
privacyLink.addEventListener('click', function (e) {
e.preventDefault();
e.target.style.cursor = "pointer";
togglePolicy();
});
}
@@ -168,6 +177,8 @@ domReady(async () => {
// désactive le loading quand les éléments sont affichés correctement
setTimeout(() => {
let appEl = document.getElementById('app');
appEl.style.opacity = 1;
let loadingEl = document.getElementById('loading');
loadingEl.style.opacity = "0";
setTimeout(() => {