padding text incubateur
This commit is contained in:
@@ -301,6 +301,18 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
}
|
||||
}
|
||||
|
||||
document.querySelectorAll(".view-type-ressource-slide").forEach(view => {
|
||||
const h3Content = view.querySelector("h3 > a")?.textContent.trim();
|
||||
|
||||
view.querySelectorAll(".field--name-field-type-de-ressource").forEach(field => {
|
||||
const fieldText = field.textContent.trim();
|
||||
|
||||
if (fieldText === h3Content) {
|
||||
field.style.display = "none";
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
})(jQuery, window);
|
||||
|
||||
Reference in New Issue
Block a user