3 ms·
document.querySelectorAll('.clues span.icon').forEach( el => { let p = el.parentNode; let ck = document.createElement('input'); ck.setAttribute('type', 'checkbo
by mdaniel 3y ago
document.querySelectorAll('.clues span.icon').forEach( el => { let p = el.parentNode; let ck = document.createElement('input'); ck.setAttribute('type', 'checkbox'); p.removeChild(el); p.appendChild(ck); })
and I have absolutely no idea why anyone would fake checkboxes in a webpage, anyway
- slig 3y agoThey're not exactly checkboxes in the game, as they have three states (blank, checkmark and cross), that are automatically updated given the current game state.