User:Sylphoid/common.js: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sylphoid (talk | contribs)
Created page with "document.addEventListener('DOMContentLoaded', function() { const statBoxes = document.querySelectorAll('.stat-box'); statBoxes.forEach(function(statBox) { statBox.addEventListener('click', function() { statBox.classList.toggle('clicked'); }); }); });"
 
Sylphoid (talk | contribs)
Undo revision 6763 by Sylphoid (talk)
Tag: Undo
 
(One intermediate revision by the same user not shown)
(No difference)

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');
        });
    });
});