Merci pour ta réponse.
J'ai donc essayé avec le code suivant :
1 2 3 4 5 6 7 8 9 10 11 12 13
| $('body').on("load","#histoire-sr",function(){
$(this).find("#timeline").timeCube({
data: json,
granularity: "year",
startDate: new Date('August 31, 2009 10:20:00 pm GMT+0'),
endDate: new Date('September 30, 2011 02:20:00 am GMT+0'),
transitionAngle: 60,
transitionSpacing: 100,
nextButton: $("#next-link"),
previousButton: $("#prev-link"),
showDate: false
});
}); |
histoire-sr étant un bloc directement codé dans mon index.php
<div id="histoire-sr" class="col-lg-4"></div>
Ca ne fonctionne pas 
EDIT : J'ai l'impression que c'est l’événement "load" qui ne fonctionne pas.
En essayant avec par exemple "mouseover" ou " click", ça fonctionne niquel.
Par contre avec load ça ne fait rien.
Partager