Lianaevans (Talk | contribs) m |
m |
||
Line 168: | Line 168: | ||
//These function controls the popups on click for the team page | //These function controls the popups on click for the team page | ||
//I know this is lowkey inefficient but it works for now lol | //I know this is lowkey inefficient but it works for now lol | ||
− | function overlayOn(){ | + | function overlayOn(x){ |
var team = document.querySelectorAll('.overlay'); | var team = document.querySelectorAll('.overlay'); | ||
− | for (var i = 0; i < team.length; i++){ | + | //for (var i = 0; i < team.length; i++){ |
− | + | // team[i].style.display = "block"; | |
− | } | + | //} |
+ | team[x-1].style.display = "block"; | ||
} | } | ||
Revision as of 21:25, 19 July 2020