Team:Groningen/create desc
From 2010.igem.org
(Difference between revisions)
m |
|||
(4 intermediate revisions not shown) | |||
Line 48: | Line 48: | ||
} | } | ||
- | txt +="Sequence<br>"+document.inv.seq.value+"<br>Length: "+document.inv.blength.value+" bps<BR | + | txt +="Sequence<br>"+document.inv.seq.value+"<br>Length: "+document.inv.blength.value+" bps<BR>Host: "+eh+"<br><br>"; |
return txt; | return txt; | ||
} | } | ||
Line 62: | Line 62: | ||
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()+" | + | txt = characteristics()+"<b>Description</b><br>\n"+document.inv.desc.value+"<br><br>"+physprop()+"<b>Recommended working conditions/usage</b><br>"+document.inv.oper.value+"<br><br><b>Status</b><br>"+document.inv.status.value+"<br><br><b>Safety notes</b><br>"+document.inv.safety.value+"<br><br><b>Contact information</b><br>"+document.inv.contact.value+"<br><br>"; |
txt = txt + "Resulting HTML: <textarea>"+txt+"</textarea><br>"; | txt = txt + "Resulting HTML: <textarea>"+txt+"</textarea><br>"; | ||
Line 68: | Line 68: | ||
if (ok) { | if (ok) { | ||
- | + | ||
$("#formpje").hide(); | $("#formpje").hide(); | ||
document.getElementById("fouten").innerHTML = fouten; | document.getElementById("fouten").innerHTML = fouten; | ||
document.getElementById("ans").innerHTML = txt; | document.getElementById("ans").innerHTML = txt; | ||
} else { | } else { | ||
- | + | document.getElementById("fouten").innerHTML = fouten; | |
} | } | ||
- | + | $("#ans").show(); | |
$('#my-link').click(); | $('#my-link').click(); | ||
Line 89: | Line 89: | ||
} | } | ||
</script> | </script> | ||
- | <a id="my-link" href="#"/> | + | <a id="my-link" href="#"></a> |
<div id="fouten"></div> | <div id="fouten"></div> | ||
<div id="formpje"> | <div id="formpje"> |
Latest revision as of 00:06, 27 October 2010