Bienvenue sur le site de Christophe Capelli!
Bienvenue sur le site de Christophe Capelli!
document.documentElement.className = 'js';
$('#passluth1 p:gt(0)').hide();
setInterval(function(){
$('#passluth1 p:first-child').fadeOut('slow', function() {
$(this).next('p').fadeIn('slow').end().appendTo('#passluth1'); }); },
4000);
$('#passluth2 p:gt(0)').hide();
setInterval(function(){
$('#passluth2 p:first-child').fadeOut('slow', function() {
$(this).next('p').fadeIn('slow').end().appendTo('#passluth2'); });},
4000);
function afficher()
{
document.getElementById("tariftxt").style.fontSize="150%";
var divHeight= document.getElementById('tariftxt').scrollHeight+200;
var tailleEcran = document.body.scrollHeight;
var tailleFin = Math.max(tailleEcran,divHeight);
$(tariffen).css({height:tailleFin+5+'px'});
document.getElementById("tariffen").style.visibility="visible";
return true;
}
function cacher()
{
document.getElementById("tariffen").style.visibility="hidden";
document.getElementById("tariftxt").style.fontSize="1%";
$(tariffen).css({height:300+'px'});
return true;
}
$(document).ready(function(){
$("#menu ul li a").click(function(e){
var pageActuelle = $(document).attr("title");
var lien = $(this).attr("href");
var titre = $(this).attr("title");
if(titre != pageActuelle) {
$.ajax({
url: lien + "?request=ajax",
success: function(data){
$("#contenu").fadeOut("fast", function(){
$("#contenu").html(data);
history.pushState('', titre, lien);
document.title = titre;
document.getElementById("verref").href = "simple"+lien;
document.getElementById("mssmail").href = "mailto:?Subject="+titre+"&body=Je%20pense%20que%20cette%20page%20pourrait%20t'intéresser :%0A%0Awww.capelliluthier.com/"+lien;
$("#contenu").fadeIn("fast");
});
}
});
}
e.preventDefault();
});
window.onpopstate = function(event) {
$.ajax({
url: location.pathname + "?request=ajax",
success: function(data){
$("#contenu").fadeOut("fast", function(){
$("#contenu").html(data);
$("#contenu").fadeIn("fast");
});
}
});
};
});
#galleria{height:600px}