imgsFootnotes.js 828 B

12345678910111213141516171819202122232425
  1. // afficher les renvoie de notes des images
  2. if (debug) console.log('start imgsFootnotes');
  3. (function() {
  4. let notesImg = document.querySelectorAll('.note_img');
  5. for (let noteImg of notesImg) {
  6. let noteNumber = noteImg.getAttribute('id').split("_");
  7. noteNumber = noteNumber[noteNumber.length - 1];
  8. noteImg.innerText = noteNumber;
  9. noteImg.style.position = "absolute";
  10. if (noteImg.parentElement.classList.contains('imgsmall_bottom')) {
  11. noteImg.style.left = '78px'; // hardcoded pas beau
  12. } else if (noteImg.parentElement.classList.contains('imgfullspreadright_bleed')) {
  13. noteImg.style.color = "white";
  14. noteImg.style.top = "0";
  15. noteImg.style.left = "0.5cm";
  16. }
  17. }
  18. })();
  19. if (debug) console.log('end imgsFootnotes');