User:Sur/common.js: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
mNo edit summary
Sur (talk | contribs)
m Blanked the page
Tag: Blanking
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');
        });
    });
});

Revision as of 02:06, 22 September 2024