Skip to main content
15 events
when toggle format what by license comment
May 23, 2017 at 12:40 history edited CommunityBot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Sep 4, 2015 at 8:29 comment added Caridorc Let us continue this discussion in chat.
Sep 4, 2015 at 8:26 comment added Ismael Miguel @Caridorc If you are curious in trying, here's a 5x5 game: jsfiddle.net/xc437q6w (notice that the only changes were in the HTML). And thank you for your vote.
Sep 4, 2015 at 8:23 comment added Caridorc sensible suggestion after all :) +1
Sep 4, 2015 at 8:21 comment added Ismael Miguel @Caridorc Yes, but you asked if your code was modular enough. With a pre-defined list, it isn't. Imagine that now you want to have a square of 5x5. You would have to write 25 switches by hand. With that code, you can just add the buttons to the DOM and done
Sep 4, 2015 at 8:18 comment added Caridorc switch with neighbors was a simple look-up before, you made it into so many conditionals.
Sep 4, 2015 at 8:14 comment added Ismael Miguel @Caridorc What am I over-complicating, in your opinion?
Sep 4, 2015 at 8:13 history edited Ismael Miguel CC BY-SA 3.0
Fixed formatting, description and other problems
Sep 4, 2015 at 8:13 comment added Caridorc I appreciate the effort, but I fear you are over-complicating many things..
Sep 4, 2015 at 0:58 comment added Ismael Miguel @SirPython Thank you! If you see something I forgot or misspelled, please warn me.
Sep 4, 2015 at 0:53 comment added Ismael Miguel @SirPython Done. Sorry the slowlyness. IE crawls on itself when editing something with a snippet.
Sep 4, 2015 at 0:52 history edited Ismael Miguel CC BY-SA 3.0
Added example to set a class with Javascript
Sep 4, 2015 at 0:46 comment added Ismael Miguel @SirPython I hope it is better now. Any suggestions to improve the text?
Sep 4, 2015 at 0:43 history edited Ismael Miguel CC BY-SA 3.0
Added CSS explanation on why it is simpler
Sep 4, 2015 at 0:37 history answered Ismael Miguel CC BY-SA 3.0