Selaa lähdekoodia

correction pb h3 bis

Valentin 10 kuukautta sitten
vanhempi
commit
01f797f369
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      user/themes/carnet-atterrissage/js/layout.js

+ 1 - 1
user/themes/carnet-atterrissage/js/layout.js

@@ -144,7 +144,7 @@ class setMarginTexts extends Paged.Handler {
                 h3.nextSibling.style.position = "absolute";
                 h3.nextSibling.style.top = "5%";
             }
-            if (h3.closest('.pagedjs_page').nextElementSibling.querySelector('.has-children ')?.firstChild.firstChild.firstChild.tagName == "IMG") {
+            if (h3.closest('.pagedjs_page').nextElementSibling?.querySelector('.has-children ')?.firstChild.firstChild.firstChild.tagName == "IMG") {
                 let coverImg = h3.closest('.pagedjs_page').nextElementSibling.querySelector('.has-children ').firstChild.childNodes[0];
                 coverImg.style.position = "absolute";
                 coverImg.style.top = "-22mm";