Difference between revisions of "Team:Toronto/WetLab/ExperimentProtocols"

Line 126: Line 126:
 
<script>
 
<script>
 
// Get the modal
 
// Get the modal
var modal = document.getElementById('PopupModal');
+
var modal = document.getElementsByClassName('modal');
console.log("Hello world!");
+
 
// 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');
console.log("Hello world2");
 
 
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

Lab Lab