Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Looks useful. Not having click to dismiss/a close button by default is sheer madness though. Users expect to be able to close popups and having it just sit there is frustrating.

Also quite of few of the examples fail for me on Iceweasel, throwing reference errors for "msg" etc.



Yep, not all the demos are 'runnable' on their own (they shouldn't look like they are). They try to use 'msg', even though its not defined in their scope [each example runs with it's own scope].


> (they shouldn't look like they are)

In that case I'd suggest not putting a big "run" button next to them and mixing them in with ones that are "runnable".

Or if you mean "they should look like they will cause a reference error" that would also be wrong - "each example runs with it's own scope" is not obvious.

Keep code that is purely "example code" and code that is intended for functionality demonstration separate. If you need to give example code as part of your explanation of the functionality it should appear with the explanation not in the same box as the demo code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: