←back to thread

35 points madmonk | 1 comments | | HN request time: 0s | source

I've been playing with this for quite some time and I think it's finally ready for public consumption. All feedback welcome.
Show context
chabska ◴[] No.43678656[source]
The HTML structure is very problematic. You use a <table>, even though semantically the game grid is not a table of data. I would have used a <div> with display:grid , though this is not a big deal. The active cell is a <div> with onclick, which means the cursor doesn't show it as clickable and I can't even tab to it so keyboard play is impossible. There are ways to make a <div> look clickable, but it's easiest to just use <button> .
replies(1): >>43684409 #
1. madmonk ◴[] No.43684409[source]
Good point.