User:ChristopherW

From 2013.igem.org

(Difference between revisions)
 
(36 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
<head>
<head>
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
-
<script language="JavaScript" src="https://2013.igem.org/Team:TU-Munich/AnnotatorCode.js?action=raw&ctype=text/js"></script>
 
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
-
<script>
+
<script type="text/javascript" src="http://api.jquery.com/resources/events.js"></script>
-
$(document).ready(function(){
+
 
-
  $("button").click(function(){
+
-
    $("div").load("demo_cd_catalog.xml",function(response,status){
+
<script type="text/javascript" src="https://2013.igem.org/Team:TU-Munich/AjaxExtension.js?action=raw&ctype=text/js"></script>
-
      if (status=="success")
+
<script type="text/javascript" src="https://2013.igem.org/Team:TU-Munich/md5_pajhome.js?action=raw&ctype=text/js"></script>
-
      {
+
<script type="text/javascript" src="https://2013.igem.org/Team:TU-Munich/Flot.js?action=raw&ctype=text/js"></script>
-
      $("div").html("<ol></ol>");
+
 
-
      $(response).find("artist").each(function(){
+
<!-- IMPORTANT: DON'T REMOVE THIS LINE, OTHERWISE NOT SUPPORTED FOR IE BEFORE 9 -->
-
        var item_text = $(this).text();
+
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="excanvas.min.js"></script><![endif]-->
-
        $('<li></li>').html(item_text).appendTo('ol');
+
 
-
        });
+
<script type="text/javascript" src="https://2013.igem.org/Team:TU-Munich/AnnotatorCode2.js?action=raw&ctype=text/js"></script>
-
      alert("There are "+$(response).find("cd").size()+" CDs")
+
 
-
      }
+
-
    });
+
-
  });
+
-
});
+
-
</script>
+
<title>AutoAnnotator by Team TU-Munich 2013</title>
<title>AutoAnnotator by Team TU-Munich 2013</title>
 +
</head>
</head>
<body>
<body>
-
<p id="Command">Enter a BioBrick number below! Either starting with "BBa_" or just the alphanumeric code! <br>
+
<p id="Command">Enter a BioBrick number below, either starting with "BBa_" or just the alphanumeric code! <br>
-
For new BioBricks, which aren't in the Registry yet, please enter the the nucleotide sequence directly.
+
Alternatively (e.g. for new BioBricks, which aren't in the Registry yet) you can enter the nucleotide sequence directly.
</p>
</p>
-
<input type="text" id="EnteredBioBrick"> Enter BioBrick number!
+
<form>
 +
<input type="text" id="EnteredBioBrick"> Enter BioBrick number or DNA sequence!
<br>
<br>
-
<input type="button" onclick="get_sequence()" value="Click here to create table">
+
<input type="button" id="CreateTableButton" onclick="get_sequence()" value="Click here to create table">
 +
</form>
<p id="htmlExplanation"></p>
<p id="htmlExplanation"></p>
<p id="htmlTable"></p>
<p id="htmlTable"></p>
-
<br>
+
 
<p id="wikiExplanation"></p>
<p id="wikiExplanation"></p>
-
<p id="wikiTable"></p>
 
-
</body>
+
<textarea readonly id="wikiTable" style="width:100%; display: none;" rows="4"></textarea>
 +
<script>
 +
//for enter to trigger program when cursor in the textfield
 +
$('#EnteredBioBrick').keyup(function(event) {
 +
if (event.which == 13){
 +
$('#EnteredBioBrick').blur(); //to loose focus
 +
$('#CreateTableButton').click();
 +
}
 +
})
 +
$('#EnteredBioBrick').keydown(function(event) {
 +
if (event.which == 13) {
 +
  event.preventDefault();
 +
}
 +
});
 +
</script>
 +
 +
</body>
</html>
</html>

Latest revision as of 21:26, 14 September 2013

AutoAnnotator by Team TU-Munich 2013

Enter a BioBrick number below, either starting with "BBa_" or just the alphanumeric code!
Alternatively (e.g. for new BioBricks, which aren't in the Registry yet) you can enter the nucleotide sequence directly.

Enter BioBrick number or DNA sequence!