Team:IIT Madras/Notebook/digestion

From 2011.igem.org

(Difference between revisions)
 
(25 intermediate revisions not shown)
Line 55: Line 55:
<script type="text/javascript">
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(document).ready(function(){
 +
 +
var vector_image_url="https://static.igem.org/mediawiki/2011/6/6f/200px-IIT_Madras_Logo.svg.png";
 +
 +
var comments="Muhahahaha";
 +
var chem_name=new Array();
var chem_name=new Array();
Line 72: Line 77:
chem_value[4]=50;
chem_value[4]=50;
chem_value[5]=60;
chem_value[5]=60;
-
alert(document.getElementById("content_text").innerText);
 
-
document.getElementById("content_text").innerHTML="<table>";
 
var i=0;
var i=0;
-
while(i<chem_name.length){
+
while(i<6){
-
document.getElementById("content_text").innerHTML+="<tr><td>"+chem_name[i]+"</td><td>"+chem_value[i]+"</td></tr>";
+
document.getElementById("content_text").innerHTML=document.getElementById("content_text").innerHTML+chem_name[i]+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+chem_value[i]+"<br/>";
 +
console.log(document.getElementById("content_text").innerHTML);
i++;
i++;
}
}
-
document.getElementById("content_text").innerHTML+="</table>";
+
 
 +
document.getElementById("vector_image").innerHTML="<img src=\'"+vector_image_url+"\' />";
 +
document.getElementById("comments").innerHTML="<p>"+comments+"</p>";
});
});
Line 97: Line 103:
<h1>Exp1</h1>
<h1>Exp1</h1>
-
 
+
<div id="vector_image"></div>
 +
<div id="chem_table></div>
 +
<div id="comments"></div>
</div>
</div>

Latest revision as of 01:47, 29 September 2011

bar iGEM 2011 - Home Page Indian Institute of Technology - Madras