You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
461 B
12 lines
461 B
document.addEventListener("DOMContentLoaded", function() {
|
|
const quoteElements = document.querySelectorAll('.citation-container .quote');
|
|
|
|
quoteElements.forEach(quote => {
|
|
let maxLength = 135; // Nombre max de caractères avant la coupure
|
|
if (quote.textContent.length > maxLength) {
|
|
let displayedText = quote.textContent.slice(0, maxLength) + '...\"';
|
|
quote.textContent = displayedText;
|
|
}
|
|
});
|
|
});
|