12345678910111213141516171819202122232425 |
- // afficher les renvoie de notes des images
- if (debug) console.log('start imgsFootnotes');
- (function() {
- let notesImg = document.querySelectorAll('.note_img');
- for (let noteImg of notesImg) {
- let noteNumber = noteImg.getAttribute('id').split("_");
- noteNumber = noteNumber[noteNumber.length - 1];
- noteImg.innerText = noteNumber;
- noteImg.style.position = "absolute";
- if (noteImg.parentElement.classList.contains('imgsmall_bottom')) {
- noteImg.style.left = '78px'; // hardcoded pas beau
- } else if (noteImg.parentElement.classList.contains('imgfullspreadright_bleed')) {
- noteImg.style.color = "white";
- noteImg.style.top = "0";
- noteImg.style.left = "0.5cm";
- }
- }
- })();
- if (debug) console.log('end imgsFootnotes');
|