http://xem.github.io/articles/#implicitgetelementbyid_en
Cheers :)
421 karma · joined December 5, 2013
http://xem.github.io/articles/#implicitgetelementbyid_en
Cheers :)
- show it on http://www.reddit.com/r/tinycode/
- if you aim for low character count instead of low byte count, you can pass your code through my unicide packer here: http://xem.github.io/obfuscatweet/
- Golf your code even more (using the tips of the other comments), and use all the remaining chars to add features to your game and fill the 140 chars of a tweet :)
Cheers
If you're interested in pack-to-unicode, I did it too: https://gist.github.com/xem/7086007
https://news.ycombinator.com/item?id=6860642
This one fits in a single tweet!
http://xem.github.io/miniCodeEditor/editor.html
I recommend you to use Firefox: it will keep the code in the textareas. Chrome will only save the iframe's content.
;)
This user interface is very nice, bravo!
In your JS, you can replace html["value"], css["value"] and js["value"] with html.value, css.value and js.value
Feel free to fork miniCodeEditor and add this kind of features :)
I also thought of this approach this morning, but didn't mention it because I thought people would just add the editor in their bookmarks.
Wow! This topic is successful!
You can also take a look at this 512b project that didn't live long on HN yesterday:
A minesweeper game https://news.ycombinator.com/item?id=6853868
And my other code golfing projects: http://xem.github.io/?golfing
==========