Line 3: | Line 3: | ||
<script> | <script> | ||
− | document.getElementById("team").addEventListener("click",openNav); | + | //document.getElementById("team").addEventListener("click",openNav); |
function openNav(e) { | function openNav(e) { | ||
Line 9: | Line 9: | ||
alert(e.pageX + "+" + e.pageY); | alert(e.pageX + "+" + e.pageY); | ||
− | x = e.pageX, y = e.pageY; | + | /*x = e.pageX, y = e.pageY; |
Line 16: | Line 16: | ||
if(x>=142 && x<=201 && y>=224 && y<=326) | if(x>=142 && x<=201 && y>=224 && y<=326) | ||
− | document.getElementById("myNav2").style.width = "100%"; | + | document.getElementById("myNav2").style.width = "100%";*/ |
} | } | ||
Line 1,735: | Line 1,735: | ||
<center><img id="team" src="https://static.igem.org/mediawiki/2017/d/da/T--IIT_Delhi--squad.jpg" width = "1300" alt="" ></center> | <center><img id="team" src="https://static.igem.org/mediawiki/2017/d/da/T--IIT_Delhi--squad.jpg" width = "1300" alt="" ></center> | ||
− | + | <script> | |
+ | document.getElementById("team").addEventListener("click",openNav); | ||
+ | </script> | ||
Revision as of 14:43, 1 November 2017