Go to file
remy 437c65e78b fixed broken git image in appcache 2011-05-17 16:25:40 +01:00
assets Added webm demos 2010-06-09 15:21:01 +01:00
css change promo and added IE9 support 2011-04-05 17:03:21 +01:00
demos Closes #12 - I got hung up on being told this wasn't The Right Way(tm), but I don't believe there's *any* right way to sort out this race condition crap. Anyway, this change now means there shouldn't be any race condition issues - the downside being that the content isn't indexed (if video ever was) and doesn't work for those with JavaScript off :( 2011-05-17 16:23:33 +01:00
images change promo and added IE9 support 2011-04-05 17:03:13 +01:00
includes updated to latest url 2011-01-18 12:36:22 +00:00
js Added live browser tests, to show whether current viewing browser supports particular technology 2011-02-22 21:23:37 +00:00
server updated promo & moved to node-websocket-server 2010-10-19 20:07:30 +01:00
.gitmodules updated promo & moved to node-websocket-server 2010-10-19 20:06:35 +01:00
.htaccess Fixing history support test for Firefox, since it doesn't support onevent in object 2010-08-23 17:15:31 +01:00
MIT-LICENSE.TXT License 2010-02-03 09:08:26 +00:00
README.markdown Fixed look of readme (I hope!) 2010-03-04 12:24:03 +00:00
canvas-grad.html Complete reorganisation of the directory so that making new demos appears, visually, more consistent. I'd like a better way to credit other people if they start contributing demos - but for now, no one has ;-) 2010-03-04 12:07:09 +00:00
demos.json updated live storage event test 2011-04-18 11:20:47 +01:00
drag-orig.html Loading existing examples from html5demos.com 2010-02-03 08:59:46 +00:00
drag2.html Loading existing examples from html5demos.com 2010-02-03 08:59:46 +00:00
html5demo.appcache fixed broken git image in appcache 2011-05-17 16:25:40 +01:00
index.php change promo and added IE9 support 2011-04-05 17:03:21 +01:00
page.php Complete reorganisation of the directory so that making new demos appears, visually, more consistent. I'd like a better way to credit other people if they start contributing demos - but for now, no one has ;-) 2010-03-04 12:07:09 +00:00
postmessage-target.html Complete reorganisation of the directory so that making new demos appears, visually, more consistent. I'd like a better way to credit other people if they start contributing demos - but for now, no one has ;-) 2010-03-04 12:07:09 +00:00
video-canvas.html synced video to playback rate rather than timeupdate event 2011-04-25 20:36:07 +01:00

README.markdown

HTML5 Demos and Examples

A collection of HTML5 experiments I've created, now open source and on GitHub, so please go ahead and help me hack this resource in to a wealth of demos that other authors can learn from.

Aim

  • If a user can hit view source on the demo, then we've done our job
  • Where possible browser support should be named (FF3.5, etc)
  • All content is open source and content is Creative Commons Share Alike 2.0
  • Individual demos, if authored by someone other than @rem can be credited as appropriate

Creating new demos

If the demo should take the default style - currently grey and dull - but it keeps the focus on the code ;) then follow these instructions. Otherwise, simply create the file in the root directory calling it [yourdemo].html and include it in the index.php.

Instructions to creating a new demo:

  • Create a .html in the /demos directory
  • Use the following template (also a sample in /demos/template.html):
<title><!-- Title of your demo, note this appears in the document title prefixed with "HTML5 Demo:" --></title>
<style>/** any custom styles live here **/</style>
<article><!-- any demo markup here --></article>
<script>
// your JavaScript
</script>
  • When requesting the demo, use html5demos.com/[yourdemo] and page.php will top and tail your page
  • Any additional JavaScript libraries should be stored in the /js directory, assets, such as video and audio live in the /assets directory.

That should be it.

By submitting any code, you're also agreeing that your code is covered by the MIT-LICENSE that this project is covered by, and all content is covered by Creative Commons Share Alike 2.0 - as is all of this project: it's all about sharing baby!

TODO

Demos Required

  • Microdata
  • SVG
  • More audio and video demos
  • More introductions to canvas
  • More event based stuff
  • WebSockets (@rem - have a demo ready, but not the server side)

Misc

  • Clearer versioning on the demos, rather than "All bar Opera", should include last version to support feature, i.e. Opera 10.10b, Chrome 4 dev, Safari 4.0, etc.