Team:Groningen/create desc
From 2010.igem.org
(Difference between revisions)
Line 21: | Line 21: | ||
var txt = ""; | var txt = ""; | ||
txt = "<b>Characteristics of BioBrick device/part</b><br>"; | txt = "<b>Characteristics of BioBrick device/part</b><br>"; | ||
+ | |||
txt+= "Type of BioBrick: "+getOpsomming(document.inv.typ)+"<br>"; | txt+= "Type of BioBrick: "+getOpsomming(document.inv.typ)+"<br>"; | ||
if (document.inv.inputs.value != "N/A") { | if (document.inv.inputs.value != "N/A") { | ||
Line 38: | Line 39: | ||
function physprop() { | function physprop() { | ||
var txt ="<b>Physical properties</b><br>"; | var txt ="<b>Physical properties</b><br>"; | ||
- | txt +="Sequence<br>"+document.inv.seq.value+"<br>Length: "+document.inv.blength.value+" bps<BR><br>Host: | + | var eh = getOpsomming(document.inv.host) |
+ | if (document.inv.host1.value != "") | ||
+ | if (eh != "") { | ||
+ | eh += ", "+document.inv.host1.value; | ||
+ | } else { eh= document.inv.host1.value; } | ||
+ | } | ||
+ | |||
+ | txt +="Sequence<br>"+document.inv.seq.value+"<br>Length: "+document.inv.blength.value+" bps<BR><br>Host: "+eh+"<br><br>"; | ||
return txt; | return txt; | ||
} | } | ||
Line 51: | Line 59: | ||
if (document.inv.desc.value != "") { ok = true; } else { fouten += "Description is not provided"; } | if (document.inv.desc.value != "") { ok = true; } else { fouten += "Description is not provided"; } | ||
- | txt = characteristics()+"<b>Description</b><br>\n"+document.inv.desc.value+"<br><br>"+physprop()+"<br><br><b>Recommended working conditions/usage</b><br>"+document.inv.oper.value+"<br><br>"; | + | txt = characteristics()+"<b>Description</b><br>\n"+document.inv.desc.value+"<br><br>"+physprop()+"<br><br><b>Recommended working conditions/usage</b><br>"+document.inv.oper.value+"<br><br>Status:"+document.inv.status.value+"<br><br>Safety notes "+document.inv.safety.value+"<br>"; |
txt = txt + "Resulting HTML: <textarea>"+txt+"</textarea><br>"; | txt = txt + "Resulting HTML: <textarea>"+txt+"</textarea><br>"; |
Revision as of 23:10, 26 October 2010