Team:Warsaw/JSTest2

From 2008.igem.org

(Difference between revisions)
(New page: {{WarHead}} <html> <a id="anch">Jump</a> <div id="merg"></div> <script type="text/javascript"> - <![CDATA[: var codebase="https://2008.igem.org/wiki/index.php?title=Team:Warsaw/JSTe...)
Line 11: Line 11:
var codebase="https://2008.igem.org/wiki/index.php?title=Team:Warsaw/JSTest"+String.fromCharCode(38)+"num=2"+String.fromCharCode(38);
var codebase="https://2008.igem.org/wiki/index.php?title=Team:Warsaw/JSTest"+String.fromCharCode(38)+"num=2"+String.fromCharCode(38);
-
var title="Isolation of genomic DNA";
+
function removeHTMLTags(strInputCode ){
-
var days=['5_May_2008','6_May_2008'];
+
 +
strInputCode = strInputCode.replace(/&(lt|gt);/g, function (strMatch, p1){
 +
return (p1 == "lt")? "<" : ">";
 +
});
 +
var strTagStrippedText = strInputCode.replace(/<\/?[^>]+(>|$)/g, "");
 +
return strTagStrippedText;
 +
 +
}
 +
 
 +
 
 +
var title='Preparation of <a href="https://2008.igem.org/Wiki/Team:Warsaw/vectors/pMPM-T5-AID">pMPMT5+AID</a>';
 +
var days=['6_May_2008','7_May_2008'];
var params="";
var params="";
Line 18: Line 29:
for (var i=0;i<days.length;i++) params+="arg"+i+"="+days[i]+String.fromCharCode(38);
for (var i=0;i<days.length;i++) params+="arg"+i+"="+days[i]+String.fromCharCode(38);
-
params+="name="+escape(title);
+
params+="name="+escape(removeHTMLTags(title));
document.getElementById("merg").innerHTML=codebase+params;
document.getElementById("merg").innerHTML=codebase+params;

Revision as of 01:43, 26 October 2008

Gallery Bricks Notebook Team Project Home

Jump