Team:StuyGem NYC
From 2014hs.igem.org
(Difference between revisions)
Kelvinn1996 (Talk | contribs) |
Kelvinn1996 (Talk | contribs) |
||
Line 215: | Line 215: | ||
imageObj3.src = 'https://static.igem.org/mediawiki/2014hs/1/16/Sponsors.png'; | imageObj3.src = 'https://static.igem.org/mediawiki/2014hs/1/16/Sponsors.png'; | ||
imageObj4.src = 'https://static.igem.org/mediawiki/2014hs/9/92/Project.png'; | imageObj4.src = 'https://static.igem.org/mediawiki/2014hs/9/92/Project.png'; | ||
- | |||
} | } | ||
else if (mousePos.y >= 250){ | else if (mousePos.y >= 250){ | ||
Line 240: | Line 239: | ||
}, false); | }, false); | ||
- | + | canvas.addEventListener('onclick', function(evt){ | |
+ | var mousePos = getMousePos(canvas, evt); | ||
+ | if (mousePos.x < 250){ | ||
+ | if (mousePos.y < 250){ | ||
+ | location.replace("google"); | ||
+ | } | ||
+ | else if (mousePos.y >= 250){ | ||
+ | location.replace("google"); | ||
+ | } | ||
+ | } | ||
+ | else if (mousePos.x >= 250){ | ||
+ | if (mousePos.y < 250){ | ||
+ | location.replace("google"); | ||
+ | } | ||
+ | else if (mousePos.y >= 250){ | ||
+ | location.replace("google"); | ||
+ | } | ||
+ | } | ||
+ | }, false); | ||
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 02:02, 11 May 2014
Get in touch!
Visit Our Twitter Page!