Team:SUSTC-Shenzhen-A

From 2013.igem.org

(Difference between revisions)
Line 47: Line 47:
     }
     }
-
     function png2text(pngurl, callback) {
+
 +
     function png2text(pngurl, id, callback) {
       var canvas = document.createElement("canvas"),
       var canvas = document.createElement("canvas"),
       ctx = canvas.getContext("2d");
       ctx = canvas.getContext("2d");
       img = new Image();
       img = new Image();
    
    
 +
      img.id = id;
       img.style.position = "absolute";
       img.style.position = "absolute";
       img.style.left = "-10000px";
       img.style.left = "-10000px";
Line 65: Line 67:
         canvas.style.width = w+"px";
         canvas.style.width = w+"px";
         canvas.style.height = h+"px";
         canvas.style.height = h+"px";
-
       
 
-
        ctx.drawImage(this, 0, 0);
 
 +
        ctx.drawImage(this, 0, 0);
 +
         var data = ctx.getImageData(0, 0, w, h).data,
         var data = ctx.getImageData(0, 0, w, h).data,
           a = [],
           a = [],
Line 88: Line 90:
       img.src = pngurl;
       img.src = pngurl;
     }
     }
 +
     function baseRemove() {
     function baseRemove() {
       $('#top-section').remove();
       $('#top-section').remove();
Line 95: Line 98:
     console.log('loading css...');
     console.log('loading css...');
-
     png2text('/wiki/images/a/aa/Bootstrap.min.css.png', function (text) {
+
     png2text('/wiki/images/a/aa/Bootstrap.min.css.png', 'bs-css', function (text) {
       insertcss(text);
       insertcss(text);
       //'/wiki/images/2/28/Bootstrap-theme.min.css.png'
       //'/wiki/images/2/28/Bootstrap-theme.min.css.png'
-
       png2text('/wiki/images/d/df/Bootstrap-docs.min.css.png', function (text) {
+
       png2text('/wiki/images/d/df/Bootstrap-docs.min.css.png', 'bs-docs-css', function (text) {
         insertcss(text);
         insertcss(text);
       });
       });
Line 106: Line 109:
       baseRemove();
       baseRemove();
       console.log('loading js...');
       console.log('loading js...');
-
       png2text('/wiki/images/7/7f/Jquery-min-js.png', function (text) {
+
       png2text('/wiki/images/7/7f/Jquery-min-js.png', 'jquery-js', function (text) {
         loadjs(text);
         loadjs(text);
-
         png2text('/wiki/images/3/35/Bootstrap-min-js.png', function (text) {
+
         png2text('/wiki/images/3/35/Bootstrap-min-js.png', 'bs-js', function (text) {
           loadjs(text);
           loadjs(text);
         });
         });

Revision as of 21:19, 27 September 2013

ShenZhen-A Skip navigation

Game theory

Stategy for the Classic Prisoners' Dilemma.

[[File:welcome3.jpg|center|frame]]

        This is SUSTC-Shenzhen-A.

        We are sophomores from South University of Science and Technology of China (SUSTC).

        Our main project is about quorum sensing.

        You can get more information about our project by clicking other pages.

[[File:sustc group photo.jpg|center|frame]]

             [[File:wangzishiyan.JPG]]             [[File:liujingyishiyan.JPG]]