limit characters soustitre

This commit is contained in:
2025-06-05 10:23:49 +02:00
parent 6be557a424
commit 9f4bb50066
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -291,7 +291,7 @@ document.addEventListener('DOMContentLoaded', () => {
document.addEventListener("DOMContentLoaded", function () {
const maxLength = 80;
document.querySelectorAll('.view-base-de-donnees .wrapper-ressource .field--name-field-sous-titre').forEach(function (element) {
document.querySelectorAll('.view-base-de-donnees .wrapper-ressource .field--name-field-sous-titre a').forEach(function (element) {
const fullText = element.textContent.trim();
if (fullText.length > maxLength) {