Difference between revisions of "Template:Queens Canada/Scripts"

m
m
Line 167: Line 167:
  
 
//This function controls the popups on click for the team page  
 
//This function controls the popups on click for the team page  
function popup() {
+
function overlayOn() {
   var popup = document.getElementById("teamPopup");
+
   document.getElementById("overlay").style.display = "block";
  popup.classList.toggle("show");
+
 
}
 
}
 +
 +
function overlayOff() {
 +
  document.getElementById("overlay").style.display = "none";
 +
}
 +
</script>
  
 
</script>
 
</script>
 
</html>
 
</html>

Revision as of 17:48, 19 July 2020