Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 761 | Rev 884 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 761 Rev 864
Line 619... Line 619...
619
	});
619
	});
Line 620... Line 620...
620
	
620
	
621
	gererLiensOuvertureOnglets();
621
	gererLiensOuvertureOnglets();
622
	gererEvenementsWiki();
622
	gererEvenementsWiki();
-
 
623
	gererEvenementsPliage();
623
	gererEvenementsPliage();
624
	gererClicIllustrationsFiche();
Line -... Line 625...
-
 
625
});
-
 
626
 
-
 
627
function gererClicIllustrationsFiche() {
-
 
628
	$('#synthese_illustrations img').click(function() {
-
 
629
		var url = $(this).attr('src')/*.replace('CS','XL')*/;
-
 
630
		ouvrirFenetreIllustrationFiche(url, '', 500, 500);
-
 
631
	}); 
-
 
632
	
-
 
633
	$('#synthese_repartition img').click(function() {
-
 
634
		var url = $(this).attr('src').replace('min','max');
-
 
635
		var url = url.replace('190x178','500x468');
-
 
636
		ouvrirFenetreIllustrationFiche(url, '', 500, 500);
-
 
637
	});
-
 
638
}
-
 
639
 
-
 
640
function ouvrirFenetreIllustrationFiche(url, titre, hauteur, largeur) {
-
 
641
	var fenetre = window.open('_blank', titre,'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(largeur+17)+', height='+(hauteur+17));
-
 
642
	var tmp = fenetre.document;
-
 
643
	tmp.write('<html><head><title>'+titre+'</title>');
-
 
644
	tmp.write('</head><body>');
-
 
645
	tmp.write('<p style="height='+hauteur+'px;text-align:center;line-height='+hauteur+'px;"><img id="image_agrandie" height="'+hauteur+'" width="'+largeur+'" style="vertical-align:middle;" src="'+url+'" /></p>');
-
 
646
	tmp.write('</body></html>');
-
 
647
	tmp.close();
624
});
648
}
625
 
649
 
626
$(document).ajaxStop(function() {
650
$(document).ajaxStop(function() {
627
	gererChargementGraphiqueEcologie();
651
	gererChargementGraphiqueEcologie();
628
	if (document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#BasicStructure', '1.1') == false) {
652
	if (document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#BasicStructure', '1.1') == false) {