Line 36: | Line 36: | ||
var captionText = document.getElementById("caption"); | var captionText = document.getElementById("caption"); | ||
img.onclick = function(){ | img.onclick = function(){ | ||
− | modal.style.display = " | + | modal.style.display = "inline"; |
modalImg.src = this.src; | modalImg.src = this.src; | ||
captionText.innerHTML = this.alt; | captionText.innerHTML = this.alt; |
Revision as of 20:01, 10 August 2018
×