Team:IIT Madras/Notebook/digestion

From 2011.igem.org

(Difference between revisions)
 
(30 intermediate revisions not shown)
Line 54: Line 54:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"/></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"/></script>
<script type="text/javascript">
<script type="text/javascript">
 +
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;
-
 
-
document.getElementById("exp_protocol").innerText="<table>"
 
var i=0;
var i=0;
-
while(i<chem_name.length){
+
while(i<6){
-
document.getElementById("exp_protocol").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("exp_protocol").innerHTML+="</table>";
+
 
 +
document.getElementById("vector_image").innerHTML="<img src=\'"+vector_image_url+"\' />";
 +
document.getElementById("comments").innerHTML="<p>"+comments+"</p>";
 +
 
 +
});
</script>
</script>
</head>
</head>
Line 93: Line 101:
<div id="content_body">
<div id="content_body">
<div id="content_text">
<div id="content_text">
-
<h1 id="exp_heading">Exp 1</h1>
 
-
<div id="exp_protocol"></div>
+
<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