Difference between revisions of "Team:Heidelberg/Sandbox17"

(Blanked the page)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
  
 
<html>
 
 
<link rel="stylesheet" href="/wiki/index.php?title=Team:Heidelberg/css/bootstrapcss&amp;action=raw&amp;ctype=text/css">
 
 
 
<link rel="stylesheet" href="/wiki/index.php?title=Team:Heidelberg/css/bootstraptheme&amp;action=raw&amp;ctype=text/css">
 
 
<script type="text/javascript" src="https://2014.igem.org/wiki/index.php?title=Team:Heidelberg/js/jquery&amp;action=raw&amp;ctype=text/javascript"></script>
 
 
 
<script type="text/javascript" src="https://2014.igem.org/wiki/index.php?title=Team:Heidelberg/js/bootstrapjs&amp;action=raw&amp;ctype=text/javascript"></script>
 
 
 
<script type="text/javascript" src="https://2014.igem.org/wiki/index.php?title=Team:Heidelberg/js/fancybox&amp;action=raw&amp;ctype=text/javascript"></script>
 
 
 
<script type="text/javascript" src="https://2014.igem.org/wiki/index.php?title=Team:Heidelberg/js/gunzip.min.js&amp;action=raw&amp;ctype=text/javascript"></script>
 
 
<div class="container" style="padding:0;background-color:white;">
 
<div class="col-lg-12 notebook-awesomesheet">
 
<p>
 
 
 
</p>
 
</div>
 
 
<style type="text/css">
 
.notebook-awesomesheet {
 
    overflow-x: auto;
 
}
 
</style>
 
<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) {
 
      // load zip file from src, unzip and format it to text
 
      // and insert content into DOM element referenced by id
 
 
      var oReq = new XMLHttpRequest();
 
      oReq.open("GET", src, true);
 
      oReq.responseType = "arraybuffer";
 
     
 
      oReq.onload = function (oEvent) {
 
var arrayBuffer = oReq.response; // Note: not oReq.responseText
 
if (arrayBuffer) {
 
  var byteArray = new Uint8Array(arrayBuffer);
 
  var gunzip = new Zlib.Gunzip(byteArray);
 
  var plain = gunzip.decompress();
 
  _arrayBufferToString(plain, function(r){$(id).append(r)});
 
}
 
      };
 
      oReq.send();
 
    };
 
 
    //_load_unzip_format_and_insert("PlateReader.zip", ".notebook-awesomesheet");
 
</script>
 
 
 
</div>
 
 
 
<script type='text/javascript'>
 
  _load_unzip_format_and_insert("https://static.igem.org/mediawiki/2017/1/12/T--Heidelberg--2017_notebook_database_culture.zip", ".notebook-awesomesheet");
 
</script>
 
 
</p>
 
 
 
 
 
 
</html>
 

Latest revision as of 17:52, 14 December 2017