Team:UT-Tokyo/test.html

From 2013.igem.org

(Difference between revisions)
 
(10 intermediate revisions not shown)
Line 19: Line 19:
<html>
<html>
<div id="contents">
<div id="contents">
-
<h1>Title</h1>
+
<h2>Automatic RNA silencing primer designer</h2>
 +
 
<script type="text/javascript">
<script type="text/javascript">
Line 61: Line 62:
function getRP(str) {
function getRP(str) {
-
var anti = getReverseSeq(str);
+
var reverse = str.substring(7, 24);
-
var reverse = str.substring(7, 24) + getReverseSeq("tactagag")
+
-
+ getReverseSeq("acctctggcggtgataatggttgc");
+
return reverse;
return reverse;
Line 83: Line 82:
+ document.gen.argtext.value + " -3'";
+ document.gen.argtext.value + " -3'";
var reverse = getReverse(document.gen.argtext.value);
var reverse = getReverse(document.gen.argtext.value);
-
var forwardonly = "ggatctagag"
+
var forwardonly = "<p style=\"display:inline;color: #3CB371;\">ggatctagag</p>"
+ getReverseSeq(document.gen.argtext.value)
+ getReverseSeq(document.gen.argtext.value)
-
+ "tttctgttgggccattgcattgcc";
+
+ "<p style=\"display:inline;color: #1E90FF;\">tttctgttgggccattgcattgcc</p>";
document.getElementById('generated').innerHTML = "5'- "
document.getElementById('generated').innerHTML = "5'- "
+ forwardonly + " -3'";
+ forwardonly + " -3'";
 +
}
-
var fp = getFP(document.gen.argtext.value);
+
function onClick2() {
-
var rp = getRP(document.gen.argtext.value);
+
document.getElementById('sequence2').innerHTML = "5'- "
 +
+ document.gen2.argtext2.value + " -3'";
 +
 
 +
var fp = getFP(document.gen2.argtext2.value);
 +
var rp = getRP(document.gen2.argtext2.value)
 +
+ getReverseSeq("tactagag")
 +
+ getReverseSeq("acctctggcggtgataatggttgc");
document.getElementById('fp').innerHTML = "5'- " + fp + " -3'";
document.getElementById('fp').innerHTML = "5'- " + fp + " -3'";
document.getElementById('rp').innerHTML = "5'- " + rp + " -3'";
document.getElementById('rp').innerHTML = "5'- " + rp + " -3'";
}
}
-
window.onload = function() {
+
function submitStop(e) {
-
var list = document.getElementsByTagName("input");
+
if (!e)
-
for ( var i = 0; i < list.length; i++) {
+
var e = window.event;
-
if (list[i].type == 'text' || list[i].type == 'password') {
+
 
-
list[i].onkeypress = function(event) {
+
if (e.keyCode == 13)
-
return submitStop(event);
+
return false;
-
};
+
-
}
+
-
}
+
}
}
</script>
</script>
Line 108: Line 111:
<input type="text" name="argtext"
<input type="text" name="argtext"
value="ATGCATGCATGCATGCATGCATGCATGCATGC"
value="ATGCATGCATGCATGCATGCATGCATGCATGC"
-
onKeyPress="" /> <input type="button"
+
onKeyPress="onClick();return submitStop(event);" /> <input
-
value="generate" onclick="onClick()" />
+
type="button" value="generate" onclick="onClick()" />
</form>
</form>
Line 117: Line 120:
<h3>Forward Primer for BioBrick</h3>
<h3>Forward Primer for BioBrick</h3>
<p id="generated"></p>
<p id="generated"></p>
 +
</div>
 +
 +
<form name="gen2">
 +
<input type="text" name="argtext2"
 +
value="ATGCATGCATGCATGCATGCATGCATGCATGC"
 +
onKeyPress="onClick2();return submitStop(event);" /> <input
 +
type="button" value="generate" onclick="onClick2()" />
 +
</form>
 +
 +
<div>
 +
<h3>CDS</h3>
 +
<p id="sequence2"></p>
<h3>Forward Primer for Inverse PCR</h3>
<h3>Forward Primer for Inverse PCR</h3>
<p id="fp"></p>
<p id="fp"></p>

Latest revision as of 03:34, 28 September 2013

           TEAM
       

Automatic RNA silencing primer designer

CDS

Forward Primer for BioBrick

CDS

Forward Primer for Inverse PCR

Reverse Primer for Inverse PCR