Subversion Repositories eFlore/Applications.cel-consultation

Rev

Rev 3 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 4
1
function initialiserElementsPliables() {
1
function initialiserElementsPliables() {
2
 
-
 
3
	
2
 
4
	$('.conteneur_image_deplie').addClass('conteneur_image');
3
	$('.conteneur_image_deplie').addClass('conteneur_image');
5
	$('.conteneur_image').removeClass('conteneur_image_deplie');
4
	$('.conteneur_image').removeClass('conteneur_image_deplie');
6
 
5
 
7
	$('.image_information').addClass('image_information_pliable');
6
	$('.image_information').addClass('image_information_pliable');
8
	
7
	
9
	$('.lien_pliage_invisible').removeClass('lien_pliage_invisible');
8
	$('.lien_pliage_invisible').removeClass('lien_pliage_invisible');
10
	$('.pliage h4').addClass('lien_pliage');
9
	$('.pliage h4').addClass('lien_pliage');
11
 
10
 
12
	$('.pliage dl').hide();
11
	$('.pliage dl').hide();
13
 
12
 
14
	$('.pliage').bind('click', function() {
13
	$('.pliage').bind('click', function() {
15
		
14
		
16
		$(this).children('h4').toggleClass('lien_pliage_deplie');
15
		$(this).children('h4').toggleClass('lien_pliage_deplie');
17
		$(this).children('dl').slideToggle();
16
		$(this).children('dl').slideToggle();
18
		return false;
17
		return false;
19
	});
18
	});
20
}
19
}
21
 
20
 
22
function reparerLiensDD() {
21
function reparerLiensDD() {
23
	
22
	
24
	$('.image_information a').bind('click', function() {
23
	$('.image_information a').bind('click', function() {
25
		
24
		
26
		window.location = $(this).attr('href');
25
		window.location = $(this).attr('href');
27
		return false;
26
		return false;
28
	});
27
	});	
29
	
-
 
30
}
28
}
31
 
29
 
32
function initialiserZoom() {
30
function initialiserZoom() {
33
	
31
	
34
	$('a.lien_voir_image').fancybox({
32
	$('a.lien_voir_image').fancybox({
35
		'autoDimension'		:	true,
33
		'autoDimension'		:	true,
36
		'showCloseButton'	:	true,
34
		'showCloseButton'	:	true,
37
		'showNavArrows'		:	true,
35
		'showNavArrows'		:	true,
38
		'titlePosition'  	:	'inside',
36
		'titlePosition'  	:	'inside',
39
		'transitionIn'		:	'fade',
37
		'transitionIn'		:	'fade',
40
		'transitionOut'		:	'elastic',
38
		'transitionOut'		:	'elastic',
41
		'cyclic'			:	true,
39
		'cyclic'			:	true,
42
	});
40
	});
43
 
-
 
44
}
41
}
45
 
42
 
46
function initialiserLazyLoading() { 
43
function initialiserLazyLoading() { 
47
	$("img").lazyload();
44
	$("img").lazyload();
48
}
45
}
49
 
46
 
50
function initialiserPanneauRechercheAvancee() {
47
function initialiserPanneauRechercheAvancee() {
-
 
48
	
-
 
49
	$("#ref-rech-opt").hide();
51
	
50
	
52
	$("#afficher_cacher_aide").bind('click', function() {
51
	$("#afficher_cacher_aide").bind('click', function() {
53
		
-
 
54
		if($("#ref-rech-opt").is(':visible')) {
-
 
55
			$('#ref-rech-opt').slideUp('slow', function() {
-
 
56
				$("#afficher_cacher_aide").html("Afficher l'aide")
-
 
57
			});
52
		
58
		} else {
53
		if(!$("#ref-rech-opt").is(':visible')) {
59
			$('#ref-rech-opt').slideDown('slow', function() {
54
			$('#ref-rech-opt').slideDown('slow', function() {
60
				$("#afficher_cacher_aide").html("Cacher l'aide");
55
				$("#afficher_cacher_aide").html("Cacher l'aide");
61
			});
56
			});
-
 
57
		} else {
-
 
58
			$('#ref-rech-opt').slideUp('slow', function() {
-
 
59
				$("#afficher_cacher_aide").html("Afficher l'aide")
-
 
60
			});
62
		}
61
		}
63
	});
62
	});
64
	
-
 
65
	$("#ref-rech-opt").hide();
-
 
66
}
63
}
67
 
64
 
68
$(document).ready(function() {
65
$(document).ready(function() {
-
 
66
	initialiserPanneauRechercheAvancee();
69
	reparerLiensDD();
67
	reparerLiensDD();
70
	initialiserZoom();
68
	initialiserZoom();
71
	initialiserElementsPliables();
69
	initialiserElementsPliables();
72
	initialiserPanneauRechercheAvancee();
-
 
73
	initialiserLazyLoading();
70
	//initialiserLazyLoading();
74
});
71
});
75
72