unjustifyLastSplit.js 549 B

123456789101112131415161718
  1. // éléments justifiés pas nécessaires
  2. if (debug) console.log('start unjustifyLastSplit');
  3. (function() {
  4. let justifiedSplitElements = document.querySelectorAll("[data-align-last-split-element='justify']");
  5. for (let justifiedSplitEl of justifiedSplitElements) {
  6. for (let elChild of justifiedSplitEl.childNodes) {
  7. let elStyle = elChild.style;
  8. if (elStyle != undefined) {
  9. elStyle.textAlignLast = "left";
  10. }
  11. }
  12. }
  13. })();
  14. if (debug) console.log('end unjustifyLastSplit');