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');