Demos for my 24 ways article.
You can view them working here.
All code (HTML, CSS & JavaScript) is in relevant .erb files (e.g. Simple example code is in views/simple.erb) as this is for illustrative purposes.
You will need to use a modern browser for examples to work.