Fork me on GitHub

JS Bin
<meta charset="UTF-8">
<script src="ntseq.js"></script>
<meta charset="UTF-8">
<script src="ntseq.js"></script>
<textarea id="txt-input">
AAACCTTTTAAAAA
</textarea>
<meta charset="UTF-8">
<script src="ntseq.js"></script>
<textarea id="txt-input">
AAACCTTTTAAAAA
</textarea>
<p>
	<button id="btn-convert">Convert</button>
</p>
<meta charset="UTF-8">
<script src="ntseq.js"></script>
<textarea id="txt-input">
AAACCTTTTAAAAA
</textarea>
<p>
  <button id="btn-convert">Convert</button>
</p>
<textarea id="txt-output">
</textarea>



var nt = require("ntseq");

var nt = require("ntseq");
var input = document.getElementById("txt-input");
var output = document.getElementById("txt-output");
var btn = document.getElementById("btn-convert");

var nt = require("ntseq");
var input = document.getElementById("txt-input");
var output = document.getElementById("txt-output");
var btn = document.getElementById("btn-convert");
input.addEventListener("change", updateBox);
btn.addEventListener("click", updateBox);

var nt = require("ntseq");
var input = document.getElementById("txt-input");
var output = document.getElementById("txt-output");
var btn = document.getElementById("btn-convert");
input.addEventListener("change", updateBox);
btn.addEventListener("click", updateBox);
function updateBox(){
  var seq = new nt.Seq();
  seq.read(i1.value);
  i2.value =  seq.translate();
}
JS Bin