SlideShare a Scribd company logo
#devTO Web ‘apps’ using HTML5 and JS BH CONSULTING #devTO August 29, 2011
Mobile Browser vs App - Media  BH CONSULTING #devTO August 29, 2011 Source: Adobe Systems Inc, ‘Adobe Mobile Experience Survey: What Users Want from Media, Finance, Travel and Shopping” conducted by Keynote Systems, Oct 13, 2010, http://www.emarketer.com/Article.aspx?R=1008010
Mobile Browser vs App - Shopping BH CONSULTING #devTO August 29, 2011 Source: Adobe Systems Inc, ‘Adobe Mobile Experience Survey: What Users Want from Media, Finance, Travel and Shopping” conducted by Keynote Systems, Oct 13, 2010, http://www.emarketer.com/Article.aspx?R=1008010
Web ‘App’ BH CONSULTING #devTO August 29, 2011
Interface <input type=“number” ... /> <input type=“email” ... /> <input type=“tel” ... /> <input type=“range” min=“1” max=“100” step=“10” ... /> <input type=“url” ... /> BH CONSULTING #devTO August 29, 2011 Interface Type Downgrades to “text” automatically <input placeholder=“Enter name here” ... /> Placeholder Text No more javascript!
Meta and CSS Selectors <meta name=“viewport” content=“width=device-width,initial-scale=1,user-scalable=no” /> BH CONSULTING #devTO August 29, 2011 Content Width <meta name=“viewport” content=“width=device-width” /> Further Restrictions (not always a good idea) Source: http://www.sitepoint.com/iphone-development-12-tips/ <link rel=“stylesheet” href=“small-screen.css” type=“text/css” media=“only screen and (max-device-width: 480px)” /> CSS
Rotation window.onorientationchange = function() { // Orientation is in window.orientation } BH CONSULTING #devTO August 29, 2011 Javascript
Geolocation BH CONSULTING #devTO August 29, 2011 Source: http://diveintohtml5.org/geolocation.html Opt-in location information // Get current location and pass to show_map navigator.geolocation.getCurrentPosition(show_map); function show_map(position) { var latitude = position.coords.latitude; var longitude = position.coords.longitude; // let's show a map or do something interesting! }
Offline var foo = localStorage[&quot;bar&quot;]; // ... localStorage[&quot;bar&quot;] = foo; openDatabase('documents', '1.0', 'Local document storage', 5*1024*1024, function (db) { db.changeVersion('', '1.0', function (t) { t.executeSql('CREATE TABLE docids (id, name)'); }, error); }); BH CONSULTING #devTO August 29, 2011 Key-value pairs Cache manifest Web SQL Database (Mobile) Source: http://diveintohtml5.org/storage.html
HTML5 Video <video id=&quot;video&quot; autobuffer height=&quot;240&quot; width=&quot;360&quot;> <source src=&quot;BigBuck.m4v&quot;> <source src=&quot;BigBuck.webm&quot; type=&quot;video/webm&quot;> <source src=&quot;BigBuck.theora.ogv&quot; type=&quot;video/ogg&quot;> </video> <script language=&quot;text/javascript&quot;> var video = document.getElementById('video'); video.addEventListener('click',function(){ video.play(); },false); </script> BH CONSULTING #devTO August 29, 2011 Source: http://stackoverflow.com/questions/1711078/html5-video-element-on-android
Pros BH CONSULTING #devTO August 29, 2011 No need to submit updates and wait to be published or user to update Using a language you already know
Cons BH CONSULTING #devTO August 29, 2011 Access to native hardware (camera/mic, background notifications, concurrency) Offline support Waiting for standards
Resources / Contact BH CONSULTING #devTO August 29, 2011 1-877-774-4767 [email_address] @brianhogg bhconsulting.ca / brianhogg.com Clean, visual introduction to HTML5: http://diveintohtml5.org/introduction.html Full overview in all its browser-crashing glory: http://dev.w3.org/html5/spec/Overview.html Testing your browser: http://html5test.com/ HTML5 vs Android: http://www.youtube.com/watch?v=4f2Zky_YyyQ

More Related Content

PDF
Allenjcochran 3rd qtr_docs
KEY
Konstantin Greger - Nailing Down Vulnerability
PDF
Janata july 5 2015
PPT
Biases against girl child health & labour 18-1-04
PPTX
Content Marketing for Nonprofits & Associations
PDF
Brian Hogg - Web Apps using HTML5 and JS
PDF
Get Ahead with HTML5 on Moible
Allenjcochran 3rd qtr_docs
Konstantin Greger - Nailing Down Vulnerability
Janata july 5 2015
Biases against girl child health & labour 18-1-04
Content Marketing for Nonprofits & Associations
Brian Hogg - Web Apps using HTML5 and JS
Get Ahead with HTML5 on Moible

Similar to Intro to Web Apps using HTML5 and Javascript (20)

PPTX
HTML5 on Mobile
PPTX
Html5 on Mobile(For Developer)
PDF
HTML5 Client-side Storage
PPTX
Html5 for mobiles
PPTX
Building a Simple Mobile-optimized Web App Using the jQuery Mobile Framework
PDF
HTML5: the new frontier of the web
PDF
Workshop HTML5+PhoneGap by Ivano Malavolta
PDF
05 building cross platform mobile applications
PDF
05 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
PPTX
Building Mobile Websites
PDF
Naked and afraid Offline Mobile
PDF
Naked and afraid Offline mobile
PDF
Mobile Web Development with HTML5
KEY
HTML5와 모바일
PDF
Development Workshop on ET1, Android and Motorola RhoElements
PDF
Html5 and beyond the next generation of mobile web applications - Touch Tou...
PDF
Developing for Mobile Web
PPT
Thadomal IEEE-HTML5-Workshop
PDF
Mobile CMS - CMSExpo 2010
PDF
Architecture app
HTML5 on Mobile
Html5 on Mobile(For Developer)
HTML5 Client-side Storage
Html5 for mobiles
Building a Simple Mobile-optimized Web App Using the jQuery Mobile Framework
HTML5: the new frontier of the web
Workshop HTML5+PhoneGap by Ivano Malavolta
05 building cross platform mobile applications
05 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
Building Mobile Websites
Naked and afraid Offline Mobile
Naked and afraid Offline mobile
Mobile Web Development with HTML5
HTML5와 모바일
Development Workshop on ET1, Android and Motorola RhoElements
Html5 and beyond the next generation of mobile web applications - Touch Tou...
Developing for Mobile Web
Thadomal IEEE-HTML5-Workshop
Mobile CMS - CMSExpo 2010
Architecture app
Ad

More from Brian Hogg (12)

PPTX
Submitting, maintaining and growing a plugin on wp.org
PPTX
Preparing a WordPress Plugin for Translation
PPTX
Your WordPress Freelance Business Site
PDF
Things I've Learned About Creating a Premium Plugin
PDF
WordPress 4.4 and Upgrading Your Site (without the tears...)
PPTX
WordCamp Ann Arbor 2015 Introduction to Backbone + WP REST API
PPTX
Using Actions and Filters in WordPress to Make a Plugin Your Own
PPTX
Things I learned about Stress and Imposter Syndrome in Tech
PDF
Introduction to backbone presentation
PPT
Pricing and Marketing for Freelancers - How to?
PPTX
Introduction to test driven development
PPT
Working with Geolocation in Wordpress
Submitting, maintaining and growing a plugin on wp.org
Preparing a WordPress Plugin for Translation
Your WordPress Freelance Business Site
Things I've Learned About Creating a Premium Plugin
WordPress 4.4 and Upgrading Your Site (without the tears...)
WordCamp Ann Arbor 2015 Introduction to Backbone + WP REST API
Using Actions and Filters in WordPress to Make a Plugin Your Own
Things I learned about Stress and Imposter Syndrome in Tech
Introduction to backbone presentation
Pricing and Marketing for Freelancers - How to?
Introduction to test driven development
Working with Geolocation in Wordpress
Ad

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
MYSQL Presentation for SQL database connectivity
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Machine learning based COVID-19 study performance prediction
PDF
Approach and Philosophy of On baking technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
DOCX
The AUB Centre for AI in Media Proposal.docx
PPT
Teaching material agriculture food technology
PDF
Encapsulation theory and applications.pdf
PPTX
Machine Learning_overview_presentation.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Cloud computing and distributed systems.
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
MYSQL Presentation for SQL database connectivity
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Empathic Computing: Creating Shared Understanding
20250228 LYD VKU AI Blended-Learning.pptx
Unlocking AI with Model Context Protocol (MCP)
“AI and Expert System Decision Support & Business Intelligence Systems”
sap open course for s4hana steps from ECC to s4
Machine learning based COVID-19 study performance prediction
Approach and Philosophy of On baking technology
Review of recent advances in non-invasive hemoglobin estimation
The AUB Centre for AI in Media Proposal.docx
Teaching material agriculture food technology
Encapsulation theory and applications.pdf
Machine Learning_overview_presentation.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
A Presentation on Artificial Intelligence
Reach Out and Touch Someone: Haptics and Empathic Computing

Intro to Web Apps using HTML5 and Javascript

  • 1. #devTO Web ‘apps’ using HTML5 and JS BH CONSULTING #devTO August 29, 2011
  • 2. Mobile Browser vs App - Media BH CONSULTING #devTO August 29, 2011 Source: Adobe Systems Inc, ‘Adobe Mobile Experience Survey: What Users Want from Media, Finance, Travel and Shopping” conducted by Keynote Systems, Oct 13, 2010, http://www.emarketer.com/Article.aspx?R=1008010
  • 3. Mobile Browser vs App - Shopping BH CONSULTING #devTO August 29, 2011 Source: Adobe Systems Inc, ‘Adobe Mobile Experience Survey: What Users Want from Media, Finance, Travel and Shopping” conducted by Keynote Systems, Oct 13, 2010, http://www.emarketer.com/Article.aspx?R=1008010
  • 4. Web ‘App’ BH CONSULTING #devTO August 29, 2011
  • 5. Interface <input type=“number” ... /> <input type=“email” ... /> <input type=“tel” ... /> <input type=“range” min=“1” max=“100” step=“10” ... /> <input type=“url” ... /> BH CONSULTING #devTO August 29, 2011 Interface Type Downgrades to “text” automatically <input placeholder=“Enter name here” ... /> Placeholder Text No more javascript!
  • 6. Meta and CSS Selectors <meta name=“viewport” content=“width=device-width,initial-scale=1,user-scalable=no” /> BH CONSULTING #devTO August 29, 2011 Content Width <meta name=“viewport” content=“width=device-width” /> Further Restrictions (not always a good idea) Source: http://www.sitepoint.com/iphone-development-12-tips/ <link rel=“stylesheet” href=“small-screen.css” type=“text/css” media=“only screen and (max-device-width: 480px)” /> CSS
  • 7. Rotation window.onorientationchange = function() { // Orientation is in window.orientation } BH CONSULTING #devTO August 29, 2011 Javascript
  • 8. Geolocation BH CONSULTING #devTO August 29, 2011 Source: http://diveintohtml5.org/geolocation.html Opt-in location information // Get current location and pass to show_map navigator.geolocation.getCurrentPosition(show_map); function show_map(position) { var latitude = position.coords.latitude; var longitude = position.coords.longitude; // let's show a map or do something interesting! }
  • 9. Offline var foo = localStorage[&quot;bar&quot;]; // ... localStorage[&quot;bar&quot;] = foo; openDatabase('documents', '1.0', 'Local document storage', 5*1024*1024, function (db) { db.changeVersion('', '1.0', function (t) { t.executeSql('CREATE TABLE docids (id, name)'); }, error); }); BH CONSULTING #devTO August 29, 2011 Key-value pairs Cache manifest Web SQL Database (Mobile) Source: http://diveintohtml5.org/storage.html
  • 10. HTML5 Video <video id=&quot;video&quot; autobuffer height=&quot;240&quot; width=&quot;360&quot;> <source src=&quot;BigBuck.m4v&quot;> <source src=&quot;BigBuck.webm&quot; type=&quot;video/webm&quot;> <source src=&quot;BigBuck.theora.ogv&quot; type=&quot;video/ogg&quot;> </video> <script language=&quot;text/javascript&quot;> var video = document.getElementById('video'); video.addEventListener('click',function(){ video.play(); },false); </script> BH CONSULTING #devTO August 29, 2011 Source: http://stackoverflow.com/questions/1711078/html5-video-element-on-android
  • 11. Pros BH CONSULTING #devTO August 29, 2011 No need to submit updates and wait to be published or user to update Using a language you already know
  • 12. Cons BH CONSULTING #devTO August 29, 2011 Access to native hardware (camera/mic, background notifications, concurrency) Offline support Waiting for standards
  • 13. Resources / Contact BH CONSULTING #devTO August 29, 2011 1-877-774-4767 [email_address] @brianhogg bhconsulting.ca / brianhogg.com Clean, visual introduction to HTML5: http://diveintohtml5.org/introduction.html Full overview in all its browser-crashing glory: http://dev.w3.org/html5/spec/Overview.html Testing your browser: http://html5test.com/ HTML5 vs Android: http://www.youtube.com/watch?v=4f2Zky_YyyQ

Editor's Notes

  • #10: HEADERS – Split into a couple pages?