samdutton / simpl

Simplest possible examples of HTML, CSS and Javascript:
https://simpl.info
Apache License 2.0
5.18k stars 1.64k forks source link

Linking to files #78

Closed adactio closed 7 years ago

adactio commented 8 years ago

This is a really great project! I have one little suggestion though...

I think that in some cases (particularly with the JavaScript APIs), it would be better to link through the file listing on GitHub rather than directly to the HTML page on GitHub.

For example, this page on XHR: http://simpl.info/xhr/

...links through to the corresponding HTML file: https://github.com/samdutton/simpl/blob/gh-pages/xhr/index.html

...but the really interesting stuff is actually in the associated JavaScript file, so it might make more sense to link to: https://github.com/samdutton/simpl/tree/gh-pages/xhr

Just my $0.02.

samdutton commented 7 years ago

Just realised I never actually responded to this — apologies. I've been snowed under with my day job and haven't been able to do much work on simpl.info recently.

Thank you for your comments!

I completely agree about linking to the relevant file. As a start, I've changed the GitHub links to point to the directory containing the demo, in the commit here.