r/javascript • u/PrincessOfPurgatory • Mar 02 '14
A "code silhouette" generator I wrote.
http://chainsawpolice.github.io/codesilhouette/
22
Upvotes
r/javascript • u/PrincessOfPurgatory • Mar 02 '14
3
u/jvnk Mar 02 '14
Should probably have a sanity check for no input. Right now creates broken image.
2
u/anossov Mar 02 '14
Left edge is more important than right edge, and this generator ignores it.
1
u/rcfox Mar 03 '14
You should pre-populate the text area so that people can easily see what it does. I'm not sure if it's possible to grab the current page's HTML as text from Javascript, but that would be an easy way to show some somewhat complex code.
1
u/misc_ent Mar 02 '14
Bug report! It generates a broken image if there is no input. Used QA software extensively, old habits and all that!
0
u/callumacrae Mar 02 '14
Saw "generator", got excited. Aw :(
Still pretty cool, though!
1
u/Year3030 Mar 02 '14
Most code to me usually takes the shape of North America.
0
u/[deleted] Mar 02 '14
[deleted] — view deleted comment