Hacker News new | ask | show | jobs
by mdaniel 820 days 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
1 comments

They'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.