Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

No changes between revisions

Ignore whitespace Rev 863 → Rev 864

/trunk/presentations/styles/eflore.css
1284,3 → 1284,9
background: url("../images/fleche_droite.png") no-repeat scroll 100% 0 white;
margin: 0 0 5px;
}
 
/**----------------------- Illustration des résultats ---------------------------------------------**/
 
.illustration_resultat_cel, .illustration_resultat_choro, .illustration_resultat_coste, #synthese_repartition img, #synthese_illustrations img {
cursor: pointer;
}
/trunk/presentations/images/fleche_droite.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/trunk/presentations/images/fleche_droite.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/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) {
/trunk/presentations/scripts/recherche.js
32,6 → 32,7
gererAffichageValeursParDefaut(champs_ts);
afficherValeurParDefaut(champs_ts);
gererAccesFicheFlecheDroite();
gererClicIllustrationsResultats()
});
 
/**------------------- Fonctions de gestion de l'autocompletion ---------------------------------*/
349,6 → 350,37
}
}
 
/**------------ Fonctions de gestion du zoom sur les images affichées dans les résultats de recherche ----------------------*/
function gererClicIllustrationsResultats() {
$('.illustration_resultat_cel').click(function() {
var url = $(this).attr('src')/*.replace('CS','XL')*/;
var titre = $(this).parent().find('a.lien_fiche_eflore').text();
ouvrirFenetreIllustrationResultat(url, titre, 400, 400);
});
$('.illustration_resultat_choro').click(function() {
var url = $(this).attr('src').replace('108x101','432x404');
var titre = 'Chorologie du taxon '+$(this).parent().find('a.lien_fiche_eflore').text();
ouvrirFenetreIllustrationResultat(url, titre, 432, 404);
});
$('.illustration_resultat_coste').click(function() {
var url = $(this).attr('src');
var titre = 'Illustration de Coste du taxon '+$(this).parent().find('a.lien_fiche_eflore').text();
ouvrirFenetreIllustrationResultat(url, titre, 400, 400);
});
}
 
function ouvrirFenetreIllustrationResultat(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();
}
 
/*
* jQuery UI Autocomplete HTML Extension
*