Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 863 → Rev 864

/trunk/presentations/scripts/fiche-synthese.js
621,8 → 621,32
gererLiensOuvertureOnglets();
gererEvenementsWiki();
gererEvenementsPliage();
gererClicIllustrationsFiche();
});
 
function gererClicIllustrationsFiche() {
$('#synthese_illustrations img').click(function() {
var url = $(this).attr('src')/*.replace('CS','XL')*/;
ouvrirFenetreIllustrationFiche(url, '', 500, 500);
});
$('#synthese_repartition img').click(function() {
var url = $(this).attr('src').replace('min','max');
var url = url.replace('190x178','500x468');
ouvrirFenetreIllustrationFiche(url, '', 500, 500);
});
}
 
function ouvrirFenetreIllustrationFiche(url, titre, hauteur, largeur) {
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));
var tmp = fenetre.document;
tmp.write('<html><head><title>'+titre+'</title>');
tmp.write('</head><body>');
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>');
tmp.write('</body></html>');
tmp.close();
}
 
$(document).ajaxStop(function() {
gererChargementGraphiqueEcologie();
if (document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#BasicStructure', '1.1') == false) {