Using HTML5 for a great Open Web
Upcoming SlideShare
Loading in...5
×
 

Using HTML5 for a great Open Web

on

  • 3,744 views

 

Statistics

Views

Total Views
3,744
Views on SlideShare
3,640
Embed Views
104

Actions

Likes
0
Downloads
27
Comments
0

11 Embeds 104

http://www.conseilsmarketing.fr 54
http://www.conseilsmarketing.com 21
http://blog.websourcing.fr 15
http://www.stonepower.fr 3
https://www.linkedin.com 2
url_unknown 2
https://tasks.crowdflower.com 2
http://www.slideshare.net 2
http://lanyrd.com 1
http://www.onlydoo.com 1
https://twitter.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Using HTML5 for a great Open Web Using HTML5 for a great Open Web Presentation Transcript

  • Using HTML5 For a Great Open Web
  • Why HTML5?
  • <!DOCTYPE html>
  • <DIV>A monkey</DIV><p id=john>John’s P</p><input type=text><input type="text"><input type="text" />
  • As XHTML<?xml version="1.0"?><html xmlns="http://www.w3.org/1999/xhtml">MUST be application/xhtml+xml or application/xml<noscript>Not in XHTML</noscript>
  • <audio> <aside> <nav> <section> <hgroup> <article><figure> <time> <header> <video> <figcaption> <footer>
  • <input type="color"> <input type="range"><input type="number"> <input type="email"><input type="time"> <input type="search"><input type="month"> <input type="tel"><input type="date"> <input type="datetime"><input type="week"><input type="datetime-local"><input type="url">
  • Web Storage
  • sessionStorage.setItem("FU", "Sarah Palin");console.log(sessionStorage.getItem("FU"));
  • localStorage.setItem("Job", "Politician");
  • var sarahPalin = { "contest" : "Miss Alaska pageant", "Talent" : "Flute playing"};localStorage.setItem("sarah", JSON.stringify(sarahPalin));console.log(typeof JSON.parse(localStorage.getItem("sarah")));
  • Web SQLIndexedDB
  • Offline Web Applications
  • if (window.addEventListener) { /* Works well in Firefox and Opera with the Work Offline option in the File menu. Pulling the ethernet cable doesnt seem to trigger it */ window.addEventListener("online", isOnline, false); window.addEventListener("offline", isOffline, false);}else { /* Works in IE with the Work Offline option in the File menu and pulling the ethernet cable */ document.body.ononline = isOnline; document.body.onoffline = isOffline;}
  • // Poll the navigator.onLine propertysetInterval(function () { console.log(navigator.onLine);}, 1000);
  • <!DOCTYPE html><html manifest="offline.manifest"><head>...
  • CACHE MANIFEST# VERSION 10CACHE:offline.htmlbase.cssFALLBACK:online.css offline.cssNETWORK:/live-updates
  • History API
  • var url = "http://robertnyman.com",title = "My blog",state = { address : url};window.history.pushState(state.address, title, url);
  • window.history.replaceState(state.address, title, url);
  • Geolocation
  • if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function (position) { alert(position.coords.latitude + ", " + position.coords.longitude); });}
  • Video
  • <video controls src="nasa.webm"></video>
  • <video controls> <source src="nasa.mp4"></source> <source src="nasa.webm"></source></video>
  • <video src="http://vid.ly/4w2g7d?content=video"controls></video>
  • Canvas
  • Apple even creates open standards for the web -Steve Jobs
  • <canvas id="my-canvas" width="500" height="500"> I am canvas</canvas>
  • var canvas = document.getElementById("my-canvas"), context = canvas.getContext("2d");context.fillStyle = "#f00";context.fillRect(0, 0, 100, 100);
  • context.save();context.fillStyle = "rgba(0, 0, 200, 0.5)";context.fillRect(50, 50, 100, 100);context.clearRect(40, 40, 20, 20);context.restore();
  • HTML5 Canvas for Internet Explorer <= 8 - explorercanvas
  • http://craftymind.com/factory/html5video/ CanvasVideo.html
  • WebGL
  • http://code.google.com/p/webglsamples/
  • Flight of the Navigator
  • Robert Nyman robertnyman.com/speaking/ robertnyman.com/html5/ Twitter: @robertnymanPictures:Star Wars Awesome: http://jacobcharlesdietz.com/#/awesome/ Internet hole: http://cheezburger.com/View/3194058752Robocop: http://www.meh.ro/2010/04/01/murphy-as-robocop/ History: http://animatedtv.about.com/od/fgmultimedia/ig/-Family-Guy--Bruce Willis: http://www.starsjournal.com/3192/bruce-willis-is-being-sued-for-4- Pictures/Griffin-Family-History.htmmillion-dollars.html Geolocation: http://www.datadial.net/blog/index.php/2008/09/22/the-Swedish flag: http://www.olssonfoto.se/JAlbum/SGP%202008%20Ullevi/slides/Svenska definitive-guide-to-website-geo-location/%20flaggan.html Canvas: http://www.ioffer.com/c/Drawings-1000407Euro Coin: http://accidentaldong.blogspot.com/2009/10/euro-uh-oh.html Oriental studies: http://www.swollenpickles.com/2007/01/29/phallic-logo-Firefox does good: http://www.flickr.com/photos/intothefuzz/5577418445/in/ awards/set-72157626401344080 3D apple: http://3dst.de/typo3temp/pics/974e4144fc.jpgGeorge W Bush fail 1: http://freetraveler.net/pictures/2.09.06/fun/1.jpg Go where Ive never been: http://musicisart.ws/diane-arbus/George W Bush fail 2: http://blogs.warwick.ac.uk/images/akyrtzoglou/2005/06/07/ Anything is possible: http://www.elektrodrop.com/2009/12/straight-out-of-g2.jpg china/?quick_view=1George W Bush fail 3: http://blogs.warwick.ac.uk/images/akyrtzoglou/2005/06/07/ Super Mario Video: http://www.archive.org/details/Mario1_507gb3.jpgStorage fail: http://failfun.com/funny-pictures/gangsta-fail/Cookie monster: http://honestviewsfromhonestman.blogspot.com/2009/09/cookie-monster.htmlYou suck: http://www.crunchgear.com/2009/04/22/gadgets-sucks/
  • We can’t change history, but we can change the future. Be nice to each other.