User:Sylphoid/common.js: Difference between revisions
Jump to navigation
Jump to search
remove for test Tag: Blanking |
Tag: Undo |
||
Line 1: | Line 1: | ||
document.addEventListener('DOMContentLoaded', function() { | |||
const statBoxes = document.querySelectorAll('.stat-box'); | |||
statBoxes.forEach(function(statBox) { | |||
statBox.addEventListener('click', function() { | |||
statBox.classList.toggle('clicked'); | |||
}); | |||
}); | |||
}); |