js fleche toggle actu dan s/home
This commit is contained in:
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -357,21 +357,21 @@ $( document ).ready(function() { | ||||
|  | ||||
| ///////////////////  caracteres  body actus///////////////////////// | ||||
|  | ||||
| document.addEventListener('DOMContentLoaded', function() { | ||||
|   // Maximum number of characters to display | ||||
|   const maxChars = 140; // Adjust this value as needed | ||||
| // 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').forEach(function(paragraph) { | ||||
|     let text = paragraph.textContent.trim(); | ||||
|     if (text.length > maxChars) { | ||||
|       let truncatedText = text.slice(0, maxChars) + '...'; | ||||
|       paragraph.textContent = truncatedText; | ||||
|     } | ||||
|   }); | ||||
| }); | ||||
| //   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) + '...'; | ||||
| //       paragraph.textContent = truncatedText; | ||||
| //     } | ||||
| //   }); | ||||
| // }); | ||||
|  | ||||
|  | ||||
| //////////// start slideshow home  //////////////////////////  | ||||
| //////////// start slideshow actus home  //////////////////////////  | ||||
| // $(document).ready(function(){ | ||||
| //     let actuview = $('.content-actus .view .view-rows-wrapper') | ||||
| //     if (actuview) { | ||||
| @@ -433,7 +433,7 @@ $(document).ready(function () { | ||||
|  | ||||
| } | ||||
| }); | ||||
| ////////////  end slideshow home  //////////////////////////  | ||||
| ////////////  end slideshow actus home  //////////////////////////  | ||||
|  | ||||
|  | ||||
| //////////// start slideshow /actualites  //////////////////////////  | ||||
| @@ -804,9 +804,9 @@ $(document).ready(function () { | ||||
|  | ||||
|  | ||||
|  | ||||
| /////////////////// start voir plus...  actualite dans /actualites //////////////////// | ||||
| /////////////////// start voir plus...  actualite dans /actualites & /home //////////////////// | ||||
| $(document).ready(function () { | ||||
|   if ($("#actualites").length > 0) { | ||||
|   // if ($("#actualites").length > 0) { | ||||
|     $(".node-type-actualite").each(function () { | ||||
|         let article = $(this); | ||||
|  | ||||
| @@ -837,11 +837,11 @@ $(document).ready(function () { | ||||
|             } | ||||
|         }); | ||||
|     }); | ||||
|   } | ||||
|   // } | ||||
| }); | ||||
|  | ||||
|  | ||||
| ///////////////////  end voir plus...  actualite dans /actualites //////////////////// | ||||
| ///////////////////  end voir plus...  actualite dans /actualites & /home //////////////////// | ||||
|  | ||||
|  | ||||
| })(jQuery, window); | ||||
|   | ||||
| @@ -269,14 +269,6 @@ | ||||
|              | ||||
|  | ||||
|         } | ||||
|         // .views-row:nth-child(odd){ | ||||
|         //     position: relative; | ||||
|         //     top: 60px; | ||||
|         //     @media(max-width: 550px){ | ||||
|         //         top: 0; | ||||
|         //     } | ||||
|         // }  | ||||
|  | ||||
|  | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user