Team:Heidelberg/Templates/Awesomesheet

From 2014.igem.org

(Difference between revisions)
m
m
 
(5 intermediate revisions not shown)
Line 6: Line 6:
</style>
</style>
<script type='text/javascript'>
<script type='text/javascript'>
 +
    /**
 +
      * Converts an array buffer to a string
 +
      *
 +
      * @private
 +
      * @param {ArrayBuffer} buf The buffer to convert
 +
      * @param {Function} callback The function to call when conversion is complete
 +
      * NOTE: Quite inefficient for small data...
 +
      */
 +
    function _arrayBufferToString(buf, callback) {
 +
      var bb = new Blob([new Uint8Array(buf)]);
 +
      var f = new FileReader();
 +
      f.onload = function(e) {
 +
callback(e.target.result);
 +
      };
 +
      f.readAsText(bb);
 +
    }
 +
     var _load_unzip_format_and_insert = function(src, id) {
     var _load_unzip_format_and_insert = function(src, id) {
       // load zip file from src, unzip and format it to text
       // load zip file from src, unzip and format it to text
       // and insert content into DOM element referenced by id
       // and insert content into DOM element referenced by id
-
       oReq = new XMLHttpRequest();
+
       var oReq = new XMLHttpRequest();
       oReq.open("GET", src, true);
       oReq.open("GET", src, true);
       oReq.responseType = "arraybuffer";
       oReq.responseType = "arraybuffer";
Line 17: Line 34:
var arrayBuffer = oReq.response; // Note: not oReq.responseText
var arrayBuffer = oReq.response; // Note: not oReq.responseText
if (arrayBuffer) {
if (arrayBuffer) {
-
    byteArray = new Uint8Array(arrayBuffer);
+
  var byteArray = new Uint8Array(arrayBuffer);
  var gunzip = new Zlib.Gunzip(byteArray);
  var gunzip = new Zlib.Gunzip(byteArray);
  var plain = gunzip.decompress();
  var plain = gunzip.decompress();
-
  var filltext = String.fromCharCode.apply(null, plain);
+
  _arrayBufferToString(plain, function(r){$(id).append(r)});
-
  $(id).append(filltext);
+
}
}
       };
       };
Line 29: Line 45:
     //_load_unzip_format_and_insert("PlateReader.zip", ".notebook-awesomesheet");
     //_load_unzip_format_and_insert("PlateReader.zip", ".notebook-awesomesheet");
</script>
</script>
 +
 +
 +
<div class="row">
 +
<div class="col-lg-12">
 +
<h2 class="titles">
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet" class="label label-default">Awesome Sheet</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Trafos" class="label label-default">PA Gels</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Dnmt1_Methylation_Assay" class="label label-default">Dnmt1 Methylation Assay</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Blots" class="label label-default">Blots</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Waste" class="label label-default">Waste</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/SURPREMErun" class="label label-default">SURPREMErun</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Strains" class="label label-default">Strains</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Stocks" class="label label-default">Stocks</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Samples" class="label label-default">Samples</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Purifications" class="label label-default">Purifications</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/PlateReader" class="label label-default">Plate Reader</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Marker" class="label label-default">Marker</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/LIGHTrun" class="label label-default">LIGHTRun</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Enzymes" class="label label-default">Enzymes</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/ComCells" class="label label-default">Competent cells</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Induktion" class="label label-default">Induction</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Growth" class="label label-default">Growth</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/3AL" class="label label-default">3AL</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/AGels" class="label label-default">AGels</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/AssmProd" class="label label-default">AssmProd</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Assm" class="label label-default">Assembly</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/GG" class="label label-default">GoldenGate</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Part_Submission" class="label label-default">Parts Submission</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Parts" class="label label-default">Parts</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/PCRprod" class="label label-default">PCR products</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/PCRs" class="label label-default">PCRs</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Plasmids" class="label label-default">Plasmids</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Plates" class="label label-default">Plates</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Prim" class="label label-default">Primer</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Res" class="label label-default">Res</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/SL" class="label label-default">SL</a>
 +
<a href="https://2014.igem.org/Team:Heidelberg/AwesomeSheet/Trafos" class="label label-default">Trafos</a>
 +
</h2>
 +
</div>
 +
</div>
</html>
</html>

Latest revision as of 23:34, 17 October 2014