m |
m |
||
Line 19: | Line 19: | ||
const wordTime = 1000; | const wordTime = 1000; | ||
const changeWordTime = 100; //Time to switch letters | const changeWordTime = 100; //Time to switch letters | ||
+ | var team = document.querySelectorAll('.overlay'); | ||
Line 169: | Line 170: | ||
//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(x){ | function overlayOn(x){ | ||
− | + | team[x-1].style.display = "block"; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | function overlayOff() { | + | function overlayOff(x) { |
− | + | team[x-1].style.display = "none"; | |
− | + | ||
− | + | ||
− | + | ||
} | } | ||
</script> | </script> |
Revision as of 21:30, 19 July 2020