Tag Archives: html5

HTML5 Boilerplate Build Script: no manifest.appcache generated!

The HTML5 Boilerplate build script can auto gen­er­ate your manifest.appcache file but it doesn’t out of the box. Slightly hid­den away in the docs: To enable the appcache, just uncom­ment the file.manifest line in the project.properties file. It’ll cre­ate a manifest.appcache file and wire it all up. You’ll find the project.properties file in build/project. Now just do ant […]

iOS: shouldAutorotateToInterfaceOrientation / Lock Orientation in PhoneGap

Starting in PhoneGap 0.9.5 there’s an undoc­u­mented iOS only fea­ture that allows you to handle whether the device should rotate to a par­tic­u­lar ori­ent­a­tion. It exposes the iOS Objective-C method shouldAutoro­tat­eToInt­er­face­Ori­ent­a­tion with a JavaScript func­tion shouldRo­tat­eToOri­ent­a­tion.   func­tion shouldRo­tat­eToOri­ent­a­tion (rota­tion) { switch (rota­tion) { //Portrait or PortraitUpsideDown case 0: case 180: return true; //LandscapeRight or LandscapeLeft case […]

Katamari Hack

The win­ner of the 2011 Yahoo HackU con­test at University of Washington, this is so cool. Click here to activ­ate the Katamari Damacy effect. You can also install it as a book­mark­let by drag­ging: Katamari to your book­marks bar. It uses CSS3 trans­forms and html5 can­vas to do this awe­some effect. Hats off to the developers, this works […]

Silk HTML5 Canvas Generative Art

Somewhat hyp­notic gen­er­at­ive draw­ing web­site that uses HTML5 can­vas and lots of pretty col­ours. It records your draw­ings to share with oth­ers –http://weavesilk.com/?l1

Site Seeing — Week Four

Google Font Directory http://code.google.com/webfonts Bit late to the party with this one, but the Google Font Directory has some great open source fonts that can be included in your webpages incred­ibly eas­ily. They host the whole solu­tion and it’s a few basic lines of CSS to get some fancy fonts on your site. My per­sonal favourites […]

Fullscreen HTML5 Video in Safari via JavaScript

In Safari 5 HTML5 videos played in the <video> tag can now be made full­screen, if you’re using the default con­trols then a but­ton is avail­able, but if you’re over­rid­ing them with a cus­tom con­trol you can use: web­kit­En­ter­Full­Screen(); This needs to be called on the video tag ele­ment, for example, to full­screen the first video tag on […]