| Line 352... |
Line 352... |
| 352 |
|
352 |
|
| 353 |
/**------------ Fonctions de gestion du zoom sur les images affichées dans les résultats de recherche ----------------------*/
|
353 |
/**------------ Fonctions de gestion du zoom sur les images affichées dans les résultats de recherche ----------------------*/
|
| 354 |
function gererClicIllustrationsResultats() {
|
354 |
function gererClicIllustrationsResultats() {
|
| 355 |
$('.illustration_resultat_cel').click(function() {
|
355 |
$('.illustration_resultat_cel').click(function() {
|
| - |
|
356 |
var url = $(this).attr('src')/*.replace('CS','XL')*/;
|
| 356 |
var url = $(this).attr('src')/*.replace('CS','XL')*/;
|
357 |
var titre = trouverNomTaxon($(this));
|
| 357 |
var titre = $(this).parent().find('a.lien_fiche_eflore').text();
|
358 |
console.log($(this).parent().parent().find('a.lien_fiche_eflore'));
|
| 358 |
ouvrirFenetreIllustrationResultat(url, titre, 400, 400);
|
359 |
ouvrirFenetreIllustrationResultat(url, titre, 400, 400);
|
| Line 359... |
Line 360... |
| 359 |
});
|
360 |
});
|
| 360 |
|
361 |
|
| 361 |
$('.illustration_resultat_choro').click(function() {
|
362 |
$('.illustration_resultat_choro').click(function() {
|
| 362 |
var url = $(this).attr('src').replace('108x101','432x404');
|
363 |
var url = $(this).attr('src').replace('108x101','432x404');
|
| 363 |
var titre = 'Chorologie du taxon '+$(this).parent().find('a.lien_fiche_eflore').text();
|
364 |
var titre = 'Chorologie du taxon '+trouverNomTaxon($(this));
|
| Line 364... |
Line 365... |
| 364 |
ouvrirFenetreIllustrationResultat(url, titre, 432, 404);
|
365 |
ouvrirFenetreIllustrationResultat(url, titre, 432, 404);
|
| 365 |
});
|
366 |
});
|
| 366 |
|
367 |
|
| 367 |
$('.illustration_resultat_coste').click(function() {
|
368 |
$('.illustration_resultat_coste').click(function() {
|
| 368 |
var url = $(this).attr('src');
|
369 |
var url = $(this).attr('src');
|
| 369 |
var titre = 'Illustration de Coste du taxon '+$(this).parent().find('a.lien_fiche_eflore').text();
|
370 |
var titre = 'Illustration de Coste du taxon '+trouverNomTaxon($(this));
|
| Line -... |
Line 371... |
| - |
|
371 |
ouvrirFenetreIllustrationResultat(url, titre, 400, 400);
|
| - |
|
372 |
});
|
| - |
|
373 |
}
|
| - |
|
374 |
|
| - |
|
375 |
function trouverNomTaxon(objet) {
|
| - |
|
376 |
nom = "";
|
| - |
|
377 |
if(nomVernaculaireEstDemande()) {
|
| - |
|
378 |
nom = objet.parent().parent().find('a.lien_fiche_eflore').text();
|
| - |
|
379 |
} else {
|
| - |
|
380 |
nom = objet.parent().find('a.lien_fiche_eflore').text();
|
| 370 |
ouvrirFenetreIllustrationResultat(url, titre, 400, 400);
|
381 |
}
|
| 371 |
});
|
382 |
return nom;
|
| 372 |
}
|
383 |
}
|
| 373 |
|
384 |
|
| 374 |
function ouvrirFenetreIllustrationResultat(url, titre, hauteur, largeur) {
|
385 |
function ouvrirFenetreIllustrationResultat(url, titre, hauteur, largeur) {
|