carroussel actus home debugg js
This commit is contained in:
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -1632,6 +1632,7 @@ footer {
 | 
			
		||||
  opacity: 1 !important;
 | 
			
		||||
  transform: none !important;
 | 
			
		||||
  font-family: "gilroy-regular";
 | 
			
		||||
  padding-bottom: 0.5rem;
 | 
			
		||||
}
 | 
			
		||||
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_body p {
 | 
			
		||||
  margin: 0;
 | 
			
		||||
 
 | 
			
		||||
@@ -361,7 +361,7 @@ document.addEventListener('DOMContentLoaded', function() {
 | 
			
		||||
  // Maximum number of characters to display
 | 
			
		||||
  const maxChars = 140; // Adjust this value as needed
 | 
			
		||||
 | 
			
		||||
  document.querySelectorAll('#actus-caroussel .node-type-actualite .field_body p').forEach(function(paragraph) {
 | 
			
		||||
  document.querySelectorAll('#actus-caroussel .node-type-actualite .field_body').forEach(function(paragraph) {
 | 
			
		||||
    let text = paragraph.textContent.trim();
 | 
			
		||||
    if (text.length > maxChars) {
 | 
			
		||||
      let truncatedText = text.slice(0, maxChars) + '...';
 | 
			
		||||
 
 | 
			
		||||
@@ -137,6 +137,7 @@
 | 
			
		||||
                        opacity: 1 !important;
 | 
			
		||||
                        transform: none !important;
 | 
			
		||||
                        font-family: 'gilroy-regular';
 | 
			
		||||
                        padding-bottom: 0.5rem;
 | 
			
		||||
                        p{
 | 
			
		||||
                            margin: 0;
 | 
			
		||||
                            margin-bottom: 1rem;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user