Jackarnold13 (Talk | contribs) |
Jackarnold13 (Talk | contribs) |
||
Line 137: | Line 137: | ||
<button class="foo"> | <button class="foo"> | ||
<a style="text-decoration:none !important;" class="foo"> | <a style="text-decoration:none !important;" class="foo"> | ||
− | <img src="https://static.igem.org/mediawiki/2017/c/cb/T--Northwestern--Leonard.png" width="200px"/> | + | <img id="Leonard" src="https://static.igem.org/mediawiki/2017/c/cb/T--Northwestern--Leonard.png" width="200px"/> |
− | <img id=" | + | <img id="click" src="https://static.igem.org/mediawiki/2017/e/e4/T--Northwestern--Leonard4.png" width="200px"/> |
</a> | </a> | ||
</button> | </button> | ||
Line 176: | Line 176: | ||
// Get the image and insert it inside the modal - use its "alt" text as a caption | // Get the image and insert it inside the modal - use its "alt" text as a caption | ||
+ | var click = document.getElementById('click'); | ||
var img = document.getElementById('Leonard'); | var img = document.getElementById('Leonard'); | ||
var modalImg = document.getElementById("img01"); | var modalImg = document.getElementById("img01"); | ||
var captionText = document.getElementById("caption"); | var captionText = document.getElementById("caption"); | ||
− | + | click.onclick = function(){ | |
modal.style.display = "block"; | modal.style.display = "block"; | ||
modalImg.src = this.src; | modalImg.src = this.src; |
Revision as of 22:22, 13 October 2017
Our Team
Meet our advisors
×