Team:Lyon-INSA/notebook
From 2012.igem.org
(Difference between revisions)
Line 54: | Line 54: | ||
} | } | ||
var jour=x[i].getElementsByTagName("jour"); | var jour=x[i].getElementsByTagName("jour"); | ||
- | |||
- | |||
$(".textContent").append("<div class='dateExp'></div>"); | $(".textContent").append("<div class='dateExp'></div>"); | ||
- | $(".dateExp").append(" - " + jour[day].getElementsByTagName("date")[0].childNodes[0].nodeValue); | + | $(".dateExp").append(" - " + jour[day].getElementsByTagName("date")[0].childNodes[0].nodeValue); |
- | + | ||
+ | for (j=0;j<jour[day].getElementsByTagName("titre").length;j++) | ||
+ | { | ||
+ | $(".textContent").append("<div class='titreExp' id='titreExp'"+j"'></div>"); | ||
+ | $("#titreExp"+j).append(jour[day].getElementsByTagName("titre")[j].childNodes[0].nodeValue); | ||
+ | $(".textContent").append("<div class='descExp' id='descExp'"+j"'></div>"); | ||
+ | $(".descExp").append(jour[day].getElementsByTagName("description")[j].innerHTML); | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
- | |||
} | } | ||
} | } | ||
Line 80: | Line 87: | ||
if (jour.length>newDay) | if (jour.length>newDay) | ||
{ | { | ||
- | + | for (j=0;j<jour[day].getElementsByTagName("titre").length;j++) | |
- | + | { | |
+ | $(".textContent").append("<div class='titreExp' id='titreExp'"+j"'></div>"); | ||
+ | $("#titreExp"+j).append(jour[day].getElementsByTagName("titre")[j].childNodes[0].nodeValue); | ||
+ | $(".textContent").append("<div class='descExp' id='descExp'"+j"'></div>"); | ||
+ | $(".descExp").append(jour[day].getElementsByTagName("description")[j].innerHTML); | ||
+ | } | ||
+ | |||
$(".textContent").append("<div class='dateExp'></div>"); | $(".textContent").append("<div class='dateExp'></div>"); | ||
$(".dateExp").append(" - " + jour[newDay].getElementsByTagName("date")[0].childNodes[0].nodeValue); | $(".dateExp").append(" - " + jour[newDay].getElementsByTagName("date")[0].childNodes[0].nodeValue); | ||
- | |||
- | |||
globalDay=newDay; | globalDay=newDay; | ||
Line 123: | Line 134: | ||
{ | { | ||
var jour=x[i].getElementsByTagName("jour"); | var jour=x[i].getElementsByTagName("jour"); | ||
- | + | ||
- | + | ||
$(".textContent").append("<div class='dateExp'></div>"); | $(".textContent").append("<div class='dateExp'></div>"); | ||
$(".dateExp").append(" - " + jour[newDay].getElementsByTagName("date")[0].childNodes[0].nodeValue); | $(".dateExp").append(" - " + jour[newDay].getElementsByTagName("date")[0].childNodes[0].nodeValue); | ||
- | + | for (j=0;j<jour[day].getElementsByTagName("titre").length;j++) | |
- | + | { | |
- | + | $(".textContent").append("<div class='titreExp' id='titreExp'"+j"'></div>"); | |
+ | $("#titreExp"+j).append(jour[day].getElementsByTagName("titre")[j].childNodes[0].nodeValue); | ||
+ | $(".textContent").append("<div class='descExp' id='descExp'"+j"'></div>"); | ||
+ | $(".descExp").append(jour[day].getElementsByTagName("description")[j].innerHTML); | ||
+ | } | ||
+ | |||
Revision as of 11:09, 4 September 2012
The Notebook
July
August
September
October
Previous day
Next day
Watch us in action !