Team:StuyGem NYC/Team

From 2014hs.igem.org

(Difference between revisions)
Line 74: Line 74:
</div>
</div>
<p>
<p>
-
<div class="row">
 
-
  <div class="large-12 columns">
 
-
    <canvas id="c" width="1000" height="393" onclick="load()"></canvas>
 
-
  </div>
 
-
  </div>
 
<br>
<br>
Line 486: Line 481:
document.getElementById("picn").src="https://static.igem.org/mediawiki/2014hs/8/8b/Camilla.jpg";
document.getElementById("picn").src="https://static.igem.org/mediawiki/2014hs/8/8b/Camilla.jpg";
}
}
-
 
-
 
-
// the code starts here
 
-
 
-
var canvas = document.getElementById('c');
 
-
    var ctx = canvas.getContext('2d');
 
-
var imageObj = new Image();
 
-
      imageObj.onload = function() {
 
-
        ctx.drawImage(imageObj, 0, 0);
 
-
      };
 
-
      imageObj.src = 'https://static.igem.org/mediawiki/2014hs/4/4f/TBase.png';
 
-
 
-
 
-
 
-
 
-
function getMousePos(canvas, evt) {
 
-
    var rect = canvas.getBoundingClientRect();
 
-
    return {
 
-
      x: evt.clientX - rect.left,
 
-
      y: evt.clientY - rect.top
 
-
    };
 
-
  }
 
-
 
-
canvas.addEventListener('mousemove', function(evt){
 
-
      var mousePos = getMousePos(canvas, evt);
 
-
                if (mousePos.x < 200){
 
-
imageObj.src = 'https://static.igem.org/mediawiki/2014hs/f/f8/Testtube1.png';
 
-
}
 
-
else if (mousePos.x < 400){
 
-
imageObj.src = 'https://static.igem.org/mediawiki/2014hs/0/06/Testtube2.png';
 
-
}
 
-
else if (mousePos.x < 600){
 
-
imageObj.src = 'https://static.igem.org/mediawiki/2014hs/6/6c/Testtube3.png';
 
-
}
 
-
else if (mousePos.x < 800){
 
-
imageObj.src = 'https://static.igem.org/mediawiki/2014hs/8/84/Testtube4.png';
 
-
}
 
-
else if (mousePos.x < 1000){
 
-
imageObj.src = 'https://static.igem.org/mediawiki/2014hs/8/85/Testtube5.png';
 
-
}
 
-
}, false);
 
function noff(){
function noff(){

Revision as of 00:18, 21 June 2014


StuyGem NYC


StuyGem Team Members

Lots of people, just lots.
10 Students
Jeffrey Horenstein
Instructor

Ellen Jorgensen
Advisor

Katty Wu
Student

Jacky Cheung
Student

Andrei Talaba
Student

Qiu Chang Wu
Student

Justin Chen
Student

Shi Hui Ng
Student

Jorge Reyes
Student

Kelvin Mei
Student

Camilla Vincent
Student

Miranda Halle
Student

Retrieved from "http://2014hs.igem.org/Team:StuyGem_NYC/Team"