|
@@ -96,11 +96,11 @@ domReady(async () => {
|
|
// et privacy policy
|
|
// et privacy policy
|
|
let loginPopupText = document.getElementById('content_login_popup');
|
|
let loginPopupText = document.getElementById('content_login_popup');
|
|
let privacyText = document.getElementById('content_privacy').innerHTML;
|
|
let privacyText = document.getElementById('content_privacy').innerHTML;
|
|
- loginPopupText = loginPopupText.innerText;
|
|
|
|
|
|
+ loginPopupText = loginPopupText.innerHTML;
|
|
let loginPopupTextWrapper = document.getElementsByClassName('xoo-el-sidebar');
|
|
let loginPopupTextWrapper = document.getElementsByClassName('xoo-el-sidebar');
|
|
if (loginPopupTextWrapper[0]) {
|
|
if (loginPopupTextWrapper[0]) {
|
|
loginPopupTextWrapper[0].innerHTML = `<div>Espace collaboratif du site</div>`;
|
|
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');
|
|
let loginPopupHeader = document.querySelector('.xoo-el-sidebar div:first-of-type');
|
|
if (loginPopupHeader !== null) {
|
|
if (loginPopupHeader !== null) {
|
|
@@ -140,11 +140,20 @@ domReady(async () => {
|
|
loginPopupTextWrapper[0].style.overflowY = "scroll";
|
|
loginPopupTextWrapper[0].style.overflowY = "scroll";
|
|
loginPopupTextWrapper[0].appendChild(privacyPolicyContent);
|
|
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');
|
|
const privacyLink = document.querySelector('.xoo-aff-checkbox_single a');
|
|
if (privacyLink) {
|
|
if (privacyLink) {
|
|
privacyLink.addEventListener('click', function (e) {
|
|
privacyLink.addEventListener('click', function (e) {
|
|
e.preventDefault();
|
|
e.preventDefault();
|
|
|
|
+ e.target.style.cursor = "pointer";
|
|
togglePolicy();
|
|
togglePolicy();
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -168,6 +177,8 @@ domReady(async () => {
|
|
|
|
|
|
// désactive le loading quand les éléments sont affichés correctement
|
|
// désactive le loading quand les éléments sont affichés correctement
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
|
+ let appEl = document.getElementById('app');
|
|
|
|
+ appEl.style.opacity = 1;
|
|
let loadingEl = document.getElementById('loading');
|
|
let loadingEl = document.getElementById('loading');
|
|
loadingEl.style.opacity = "0";
|
|
loadingEl.style.opacity = "0";
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|