Team:Lyon-INSA/notebook

From 2012.igem.org

(Difference between revisions)
Line 33: Line 33:
function selectMonth(month_name,type)
function selectMonth(month_name,type)
{
{
-
        $(".diapoContent").show();
 
$(".diapoContent").html("");
$(".diapoContent").html("");
         $(".textContent").html("");
         $(".textContent").html("");
Line 55: Line 54:
  $(".textContent").append("<div class='descExp'></div>");
  $(".textContent").append("<div class='descExp'></div>");
  $(".descExp").append(jour[day].getElementsByTagName("description")[0].childNodes[0].nodeValue);    
  $(".descExp").append(jour[day].getElementsByTagName("description")[0].childNodes[0].nodeValue);    
-
  $(".diapoContent").append(" <object width='320' height='240'><param name='allowFullScreen' value='true'></param><param name='allowScriptAccess' value='always'></param> <embed class='diapoExp' src='no' type='application/x-shockwave-flash' width='320' height='240' allowscriptaccess='always' allowfullscreen='true'></embed></object>");
+
     
-
  $(".diapoExp").attr("src","http://pf.kizoa.com/sflite.swf?did="+jour[day].getElementsByTagName('diaporama')[0].getAttribute('did')+"&k="+jour[day].getElementsByTagName('diaporama')[0].getAttribute('pk')+"");      
+
}    
}    
}            
}            
Line 65: Line 63:
function nextDay(month_name,day)
function nextDay(month_name,day)
{
{
-
$(".diapoContent").html("");
 
         $(".textContent").html("");
         $(".textContent").html("");
         var xmlDoc=document.getElementById("xmldata")
         var xmlDoc=document.getElementById("xmldata")
Line 82: Line 79:
$(".dateExp").append(" - " + jour[newDay].getElementsByTagName("date")[0].childNodes[0].nodeValue);    
$(".dateExp").append(" - " + jour[newDay].getElementsByTagName("date")[0].childNodes[0].nodeValue);    
$(".textContent").append("<div class='descExp'></div>");
$(".textContent").append("<div class='descExp'></div>");
-
$(".descExp").append(jour[newDay].getElementsByTagName("description")[0].childNodes[0].nodeValue);  
+
$(".descExp").append(jour[newDay].getElementsByTagName("description")[0].childNodes[0].nodeValue);    
-
$(".diapoContent").append(" <object width='320' height='240'><param name='allowFullScreen' value='true'></param><param name='allowScriptAccess' value='always'></param> <embed class='diapoExp' src='no' type='application/x-shockwave-flash' width='320' height='240' allowscriptaccess='always' allowfullscreen='true'></embed></object>");
+
-
$(".diapoExp").attr("src","http://pf.kizoa.com/sflite.swf?did="+jour[newDay].getElementsByTagName('diaporama')[0].getAttribute('did')+"&k="+jour[newDay].getElementsByTagName('diaporama')[0].getAttribute('pk')+"");      
+
        globalDay=newDay;
        globalDay=newDay;
            
            
Line 110: Line 105:
{
{
-
$(".diapoContent").html("");
 
         $(".textContent").html("");
         $(".textContent").html("");
         var xmlDoc=document.getElementById("xmldata")
         var xmlDoc=document.getElementById("xmldata")
Line 128: Line 122:
  $(".textContent").append("<div class='descExp'></div>");
  $(".textContent").append("<div class='descExp'></div>");
  $(".descExp").append(jour[newDay].getElementsByTagName("description")[0].childNodes[0].nodeValue);    
  $(".descExp").append(jour[newDay].getElementsByTagName("description")[0].childNodes[0].nodeValue);    
-
  $(".diapoContent").append("  <object width='320' height='240'><param name='allowFullScreen' value='true'></param><param name='allowScriptAccess' value='always'></param> <embed class='diapoExp' src='no' type='application/x-shockwave-flash' width='320' height='240' allowscriptaccess='always' allowfullscreen='true'></embed></object>");
+
     
-
  $(".diapoExp").attr("src","http://pf.kizoa.com/sflite.swf?did="+jour[newDay].getElementsByTagName('diaporama')[0].getAttribute('did')+"&k="+jour[newDay].getElementsByTagName('diaporama')[0].getAttribute('pk')+"");      
+
                           globalDay=newDay;
                           globalDay=newDay;
                         }
                         }
Line 231: Line 224:
  <div id="jourPrecedent"><img src="https://static.igem.org/mediawiki/igem.org/8/8c/Precedent.gif" width="30px" height="30px"/></div>
  <div id="jourPrecedent"><img src="https://static.igem.org/mediawiki/igem.org/8/8c/Precedent.gif" width="30px" height="30px"/></div>
                   <div class="textContent"></div>
                   <div class="textContent"></div>
-
                  <div class="diapoContent" style="display:none;width:348px;height:268px;padding-top:14px;background:url('images/kizoafond.png') no-repeat"></div>
 
                   <div id="jourSuivant"><img src="https://static.igem.org/mediawiki/igem.org/0/08/Suivant.gif" width="30px" height="30px"/></div>
                   <div id="jourSuivant"><img src="https://static.igem.org/mediawiki/igem.org/0/08/Suivant.gif" width="30px" height="30px"/></div>
 +
                  <div class="diapoContent" style="display:none;width:348px;height:268px;padding-top:14px;background:url('images/kizoafond.png') no-repeat"></div>
                 </div>
                 </div>
</div>
</div>
</body>
</body>

Revision as of 15:03, 21 August 2012

June
July
August
September
October