Line 126: | Line 126: | ||
<script> | <script> | ||
// Get the modal | // Get the modal | ||
− | var modal = document. | + | var modal = document.getElementsByClassName('modal'); |
− | + | ||
// 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 img = document.getElementsByClassName('popUpImgClass'); | var img = document.getElementsByClassName('popUpImgClass'); | ||
− | |||
var modalImg = document.getElementById("img01"); | var modalImg = document.getElementById("img01"); | ||
var captionText = document.getElementById("caption"); | var captionText = document.getElementById("caption"); |
Revision as of 20:51, 10 August 2018
×