Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 965 → Rev 966

/trunk/presentations/scripts/fiche-synthese.js
410,7 → 410,7
// ancienne fonction CEL
function ouvrirPopUpImgCel(event) {
event.preventDefault();
window.open($(this).attr('href'), "Photo "+$(this).children("img").attr("alt"),
window.open($(this).attr('href'), "Photo "+$(this).children("img").attr("title"),
'height= 750, width= 630, top=100, left=100, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=yes, status=no');
}
 
418,11 → 418,11
//Pop Up images
function ouvrirPopUpImg(event) {
event.preventDefault();
window.open($(this).attr('href'),"Photo "+$(this).children("img").attr("alt"),
'height='+ event.data.h +', width='+ event.data.w +', top='+ event.data.t +', left='+ event.data.l
+', toolbar='+ event.data.toolbar +', menubar='+ event.data.menubar +', location='
+ event.data.location +', resizable='+ event.data.resizable +', scrollbars='+ event.data.scrollbars
+', status='+ event.data.status );
window.open($(this).attr('href'),"Photo_"+$(this).children("img").attr("title"),
'"'+'height='+event.data.h+',width='+event.data.w+',top='+event.data.t+',left='+event.data.l
+',toolbar='+event.data.toolbar+',menubar='+event.data.menubar +',location='
+event.data.location+',resizable='+event.data.resizable+',scrollbars='+event.data.scrollbars
+',status='+event.data.status+'"');
}
 
//+----------------------------------------------------------------------------------------------------------+
490,8 → 490,38
$('#onglet_synthese a').click();
event.preventDefault();
});
$(window).resize(function() {
redimensionnerOnglets();
});
redimensionnerOnglets();
});
 
function redimensionnerOnglets() {
var largeurTotale = $('#zone_onglets').width();
var largeurOnglets = 0;
var largeurDernierOnglet = 0;
$('#onglets li').each(function() {
largeurDernierOnglet = $(this).outerWidth();
largeurOnglets += $(this).outerWidth();
});
var espaceRestant = largeurTotale - largeurOnglets;
if(espaceRestant < largeurDernierOnglet) {
var pxALiberer = (largeurDernierOnglet - espaceRestant)/ $('#onglets li').size();
$('#onglets li').each(function() {
$(this).width($(this).width() - (pxALiberer - 4));
$(this).css("font-size", "0.9em");
});
} else {
$('#onglets li').each(function() {
$(this).css("width", "auto");
$(this).css("font-size", "1em");
});
}
}
 
function gererClicIllustrationsFiche() {
$('.illustration_cel').live('click', function() {
var url_image = $(this).attr('src');
/trunk/modules/popup_galerie/squelettes/popup_galerie_illustrations.tpl.html
112,7 → 112,7
$("#lien-voir-meta").html('Informations sur cette image / Contacter l\'auteur');
metadonneesOuvertes = false;
}
$(document).ready(function() {
$('#precedent').click(function() {
imagePrecedente();
121,6 → 121,17
$('#suivant').click(function() {
imageSuivante();
});
 
if(!Array.indexOf){
Array.indexOf = function(array, search){
for(var i=0; i<array.length; i++){
if(array[i]==search){
return i;
}
}
return -1;
}
}
if(urlImage != "null" && urlImage != "") {
indexImage = Array.indexOf(urls, urlImage);
/trunk/modules/fiche/squelettes/fiche_illustrations.tpl.html
30,7 → 30,7
<?php foreach($cel['images'] as $id => $image) : ?>
<li><div>
<a class="lien-image-cel" href="<?=$image['urlDetailImg'];?>">
<img src="<?= $image['src']; ?>" alt="Photographie n°<?=$id;?> du taxon <?=$image['nomSci']?>" />
<img src="<?= $image['src']; ?>" alt="Photographie n°<?=$id;?> du taxon <?=$image['nomSci']?>" title="<?=$id;?>" />
</a>
<p>
à <strong class="localisation"><?= $image['commune']; ?></strong><br />