|
@@ -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) {
|