home page affichage des programmes actif
This commit is contained in:
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -1,13 +1,20 @@
 | 
			
		||||
import 'slick-carousel';
 | 
			
		||||
 | 
			
		||||
var mobile = false;
 | 
			
		||||
var containers_id  = ["projets-block_1","programmes-block_4","home_themes-block_1"];
 | 
			
		||||
 | 
			
		||||
$(function(){
 | 
			
		||||
	console.log("$ ready !!");
 | 
			
		||||
	
 | 
			
		||||
	if( navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i)){
 | 
			
		||||
		mobile = true;
 | 
			
		||||
   }
 | 
			
		||||
 | 
			
		||||
	if($(".path-frontpage").length > 0){
 | 
			
		||||
 | 
			
		||||
		// $("#"+).fadeIn();
 | 
			
		||||
 | 
			
		||||
		
 | 
			
		||||
		$('.last-news').slick({
 | 
			
		||||
			slidesToShow: 1,
 | 
			
		||||
			slidesToScroll: 1,
 | 
			
		||||
@@ -150,7 +157,7 @@ $(function(){
 | 
			
		||||
			$('.header_container').find("header .arrow").remove();
 | 
			
		||||
			$(this).append('<span class="arrow"><br>▼</span>');
 | 
			
		||||
			$(this).toggleClass('active');
 | 
			
		||||
			var containers_id  = ["projets-block_1","programmes-block_4","home_themes-block_1"];
 | 
			
		||||
			
 | 
			
		||||
			containers_id.forEach((element) => {
 | 
			
		||||
				$("#"+element).fadeOut();
 | 
			
		||||
			});
 | 
			
		||||
@@ -256,9 +263,14 @@ $(function(){
 | 
			
		||||
		 
 | 
			
		||||
		//  let map = $('#villes-block_1').find("#leaflet-map-view-villes-block-1").clone();
 | 
			
		||||
		//  $("#home_map_container").empty().append(map);	 
 | 
			
		||||
 | 
			
		||||
		
 | 
			
		||||
		containers_id.forEach((element) => {
 | 
			
		||||
			$("#"+element).fadeOut();
 | 
			
		||||
		});
 | 
			
		||||
		$("#"+$('.header_container').find(".active").data("dom")).fadeIn();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	
 | 
			
		||||
	
 | 
			
		||||
	//ajout header motif in page static
 | 
			
		||||
	if($(".page-node-type-static").length > 0){
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user