User:Sylphoid/common.js: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sylphoid (talk | contribs)
remove for test
Tag: Blanking
Sylphoid (talk | contribs)
Undo revision 6763 by Sylphoid (talk)
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');
        });
    });
});

Latest revision as of 02:03, 22 September 2024

document.addEventListener('DOMContentLoaded', function() {
    const statBoxes = document.querySelectorAll('.stat-box');

    statBoxes.forEach(function(statBox) {
        statBox.addEventListener('click', function() {
            statBox.classList.toggle('clicked');
        });
    });
});