// composition des pages titres if (debug) console.log('start titlePages'); (function() { let h3s = document.querySelectorAll('h3'); for (let h3 of h3s) { if (/^\d/.test(h3.innerText)) { h3.innerHTML = h3.innerHTML.replace(/[^\s]*/, function(match) { return `
${match}
`; }); } h3.innerHTML = h3.innerHTML.replace(/ \«/g, '
«'); } let dessinsPreH3 = document.querySelectorAll('h3 + p img'); for (let dessin of dessinsPreH3) { dessin.style.width = '0px'; dessin.style.height = '0px'; } // pour les serpentins let h4s = document.querySelectorAll('h4'); for (let h4 of h4s) { if (h4.innerText === "Serpentin") { let serpentin = h4.nextElementSibling.nextElementSibling; serpentin.nextElementSibling.remove(); h4.remove(); } } })(); if (debug) console.log('end titlePages');