SlideShare ist ein Scribd-Unternehmen logo
1 von 57
Downloaden Sie, um offline zu lesen
MULTI-SCREEN HTML5	


      Ron Reiter
Who am I?	



•  Ron Reiter	

•  HTML5 Google Developer
   Expert	

•  HTML5-IL	

•  Consultant, Freelancer
HTML5 != WEB	

•  HTML5 is a platform for writing
 applications	

•  Browser + Server = Web	





                   !=	
  
Why mobile web?	

•  Global mobile traffic now represents roughly 13% of Internet traffic	

•  Gartner research: In 2013 more than half of users will surf the web via
   smartphones	

•  Nearly 1/3 of UK page views are from mobiles and tablets	





       BECAUSE YOU
       NEED TO DO IT
Why HTML5?	

•  Cross platform development	

•  FirefoxOS	

•  PhoneGap	

•  Desktops run JavaScript with great
   performance	

•  Devices are only getting stronger
   (Zuckerberg, kiss my *ss)
Why NOT HTML5?	

•  Millisecond grade interaction and animations	

•  HTML5 is not quite there yet
Why Multi-screen?
OK, I WANT MULTISCREEN
CSS Media Queries
CSS Media Queries - Before	

$(window).resize(	
  function()	
  {	
  
	
  	
  	
  	
  if	
  ($(window).width()	
  <	
  480)	
  {	
  
	
  	
  	
  	
  	
  	
  document.body.className	
  =	
  “smartphone”;	
  
	
  	
  	
  	
  }	
  else	
  if	
  ($(window).width()	
  >=	
  480	
  &&	
  $
(window).width()	
  <	
  940)	
  {	
  
	
  	
  	
  	
  	
  	
  document.body.className	
  =	
  “tablet”;	
  
	
  	
  	
  	
  }	
  else	
  {	
  
	
  	
  	
  	
  	
  	
  document.body.className	
  =	
  “desktop”;	
  
	
  	
  	
  	
  }	
  	
  
});	
  
CSS Media Queries - After	

@media	
  (max-­‐width:	
  479px)	
  {	
  
	
  
}	
  
	
  
@media	
  (min-­‐width:	
  480px)	
  and	
  (max-­‐width:	
  939px)	
  {	
  
	
  
}	
  
	
  
@media	
  (min-­‐width:	
  940px)	
  {	
  
	
  
}	
  
	
  
	
  
CSS Media Queries - After	

<link	
  rel="stylesheet"	
  	
  
	
  	
  type="text/css"	
  media="screen"	
  href="sans-­‐serif.css">	
  
	
  
<link	
  rel="stylesheet"	
  	
  
	
  	
  type="text/css"	
  media="print"	
  href="serif.css">	
  
CSS Media Queries - After	

@import	
  url(responsive-­‐retina.css)	
  (-­‐webkit-­‐min-­‐device-­‐
pixel-­‐ratio:	
  1.5),	
  (min-­‐resolution:	
  144dpi);	
  
Important media queries	

•  print	
  /	
  screen	
  
•  orientation	
  
•  min-­‐width	
  
•  max-­‐width	
  
•  min-­‐device-­‐width	
  
•  max-­‐device-­‐width	
  
•  -­‐webkit-­‐min-­‐device-­‐pixel-­‐ratio	
  
	
  /	
  min-­‐resolution	
  

	
  
Why is this better?	

•  Declarative CSS allows hardware acceleration	

•  Browser Optimizations	

•  Less ugly
Viewport meta tag	

•  This viewport tag disables mobile viewport
   resizing:	

  <meta	
  name="viewport”	
  content=”	
  
  	
  	
  	
  	
  width=device-­‐width,	
  initial-­‐scale=1.0,	
  maximum-­‐scale=1.0,	
  user-­‐scalable=no	
  
  ”>	
  




•  Use it when you build responsive interfaces
http://mediaqueri.es
App or mobile web?	

•  You already have your website, and now you
   want to support mobile devices.	

•  Website	

   –  Easier maintenance	

•  Application	

   –  More abilities
What are my options?	

•  Change your current website to a responsive
   web site	

•  Your original website + Special website for
   tablets and smartphones	

•  Just make an app (HTML5, native, etc).
Responsive web UI Frameworks	


 Responsive	
  Web	
  Sites	
      Mobile	
  First	
  
  Twi$er	
  Bootstrap	
           jQuery	
  Mobile	
  
HTML5 Mobile First Applications
Mobile First Web Applications	


•  Make a mobile website	

•  Mobile application development platform	





 UI	
  Frameworks	
      jQuery	
  Mobile	
     Sencha	
  Touch	
       jqMobi	
  
DOM	
  ManipulaMon	
  
Frameworks	
                                    jQuery,	
  Zepto	
  

MVC	
  Frameworks	
       Backbone.js	
            Ember.js	
          Angular.js	
  
jQuery Mobile	

•    Amazing mobile framework	

•    Themable	

•    Cross Platform	

•    Around for a while
jQuery Mobile Prototyping - Codiqa
How to start	

•  Create a new HTML page with:	

<link	
  rel="stylesheet"	
  href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-­‐1.3.0.min.css"	
  />	
  

<script	
  src="http://code.jquery.com/jquery-­‐1.8.2.min.js"></script>	
  

<script	
  src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-­‐1.3.0.min.js"></script>	
  



•  Or use Codiqa to download your app
How to use jQuery Mobile
What can jQuery Mobile do?
jQuery Mobile	

•  What can I do with jQuery mobile?	

•  Go to http://view.jquerymobile.com/1.3.0/
   using your smartphone or tablet
Responsive Applications
Responsive Applications
Responsive Applications
Reflow Tables (web)
Reflow Tables (mobile)
jQuery Mobile Architecture &
        Navigation
jQuery Mobile Architecture	

  AJAX	
  /	
  Preloaded	
            Web	
  NavigaMon	
  
One	
  HTML,	
  Two	
  pages	
     Two	
  HTMLs,	
  Two	
  pages	
  
AJAX Navigation	

•  Instead of changing the document location, we
    use $.mobile.navigate (saves history)	

	

$(“a”).on(“click”,	
  function(	
  event	
  )	
  {	
  
  	
  event.preventDefault();	
  
  	
  $.mobile.navigate	
  (	
  this.attr(“href”)	
  );	
  
});	
  
AJAX Navigation	

•  Once we navigate, a “navigate” event is fired	

	
  
$(window).on(“navigate”,	
  function(event,	
  data)	
  {	
  
	
  	
  	
  	
  //	
  load	
  new	
  content	
  using	
  AJAX	
  
});	
  
Navigating between loaded pages	

JavaScript:	
  
$.mobile.changePage(“#page2”,	
  “pop”,	
  false,	
  true);	
  
$.mobile.back();	
  

HTML:	
  
<div	
  data-­‐role=“page”	
  id=“page1”></div>	
  
<div	
  data-­‐role=“page”	
  id=“page2”></div>	
  
Creating a page dynamically	

JavaScript:	
  
	
  $(document.body).append('<div	
  data-­‐role="page"	
  
id=”page2"><div	
  data-­‐role="content">'	
  +	
  content	
  +	
  '</
div></div>');	
  
$.mobile.initializePage();	
  
$.mobile.changePage(“#page2”,	
  “pop”,	
  false,	
  true);	
  
jQuery Mobile + MVC	

•  Angular	

   –  https://github.com/tigbro/jquery-mobile-angular-
      adapter	

•  Backbone – we need a special router	

   –  https://github.com/azicchetti/jquerymobile-router	

•  Ember + jQuery Mobile is a bit harder since
   both frameworks utilize a fair amount of
   voodoo
OK, I want an app!	

•  PhoneGap / Apache Cordova – Gives
   native API access from JavaScript	

•  PhoneGap was bought by Adobe, so that non-
   Adobe development is done in Cordova
PhoneGap Build	

•  Removes the need for compiling to all
   platforms
Desktop?
Responsive Web Design
Responsive Web Design	

•  Web sites with a simple UI need to adapt to
   multiple screen form factors	

•  Web sites are less complicated than web
   applications, but still very similar	

•  jQuery mobile is also a tool for responsive
   web design	

  –  http://view.jquerymobile.com/1.3.0/docs/intro/
     rwd.php
Twitter Bootstrap
Twitter Bootstrap	

•  UI framework is more straightforward than
   jQuery Mobile	

•  The UI elements are not as good for mobile as
   jQuery Mobile	

•  Mobile browsers do not behave well with
   advanced Bootstrap UI elements like jQuery
   Mobile does
How to make Bootstrap responsive?	

•  Add this to your Bootstrap app:	

<meta	
  name="viewport"	
  content="width=device-­‐width,	
  initial-­‐scale=1.0">	
  
<link	
  href="assets/css/bootstrap-­‐responsive.css"	
  rel="stylesheet">	
  


•  And you’re ready to go!
Twitter Bootstrap Grid	

<div	
  class=“container”>	
  
	
  	
  <div	
  class=“row”>	
  <!-­‐-­‐	
  columns	
  must	
  sum	
  up	
  to	
  12	
  -­‐-­‐>	
  
	
  	
  	
  	
  <div	
  class=“span4”>	
  …	
  content	
  …	
  </div>	
  
	
  	
  	
  	
  <div	
  class=“span4”>	
  …	
  content	
  …	
  </div>	
  	
  	
  	
  	
  
	
  	
  	
  	
  <div	
  class=“span4”>	
  …	
  content	
  …	
  </div>	
  
	
  	
  </div>	
  
</div>	
  
Bootstrap Grid (web)	





span4	
        span4	
     span4	
  
Bootstrap Grid (mobile)	




           span4	
  




           span4	
  




           span4	
  
Example (web)
Example (mobile)
Initializr
Responsive Design Bookmarklet
        http://responsive.victorcoulon.fr/
Viewport Resizer
http://lab.maltewassermann.com/viewport-resizer/
THANK YOU!

Weitere ähnliche Inhalte

Was ist angesagt?

SPTechCon 2014 How to develop and debug client side code in SharePoint
SPTechCon 2014 How to develop and debug client side code in SharePointSPTechCon 2014 How to develop and debug client side code in SharePoint
SPTechCon 2014 How to develop and debug client side code in SharePointMark Rackley
 
SPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuerySPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQueryMark Rackley
 
jQuery and AJAX with Rails
jQuery and AJAX with RailsjQuery and AJAX with Rails
jQuery and AJAX with RailsAlan Hecht
 
A Power User's Intro to jQuery Awesomeness in SharePoint
A Power User's Intro to jQuery Awesomeness in SharePointA Power User's Intro to jQuery Awesomeness in SharePoint
A Power User's Intro to jQuery Awesomeness in SharePointMark Rackley
 
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePointSPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePointMark Rackley
 
jQuery and Rails: Best Friends Forever
jQuery and Rails: Best Friends ForeverjQuery and Rails: Best Friends Forever
jQuery and Rails: Best Friends Foreverstephskardal
 
SPTechCon Boston 2015 - Overcoming SharePoint Limitations
SPTechCon Boston 2015 - Overcoming SharePoint LimitationsSPTechCon Boston 2015 - Overcoming SharePoint Limitations
SPTechCon Boston 2015 - Overcoming SharePoint LimitationsMark Rackley
 
The SharePoint & jQuery Guide - Updated 1/14/14
The SharePoint & jQuery Guide - Updated 1/14/14The SharePoint & jQuery Guide - Updated 1/14/14
The SharePoint & jQuery Guide - Updated 1/14/14Mark Rackley
 
Building SharePoint Single Page Applications Using AngularJS
Building SharePoint Single Page Applications Using AngularJSBuilding SharePoint Single Page Applications Using AngularJS
Building SharePoint Single Page Applications Using AngularJSSharePointInstitute
 
Introduction to Client Side Dev in SharePoint Workshop
Introduction to Client Side Dev in SharePoint WorkshopIntroduction to Client Side Dev in SharePoint Workshop
Introduction to Client Side Dev in SharePoint WorkshopMark Rackley
 
SPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery LibrariesSPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery LibrariesMark Rackley
 
Intro to SharePoint Web Services
Intro to SharePoint Web ServicesIntro to SharePoint Web Services
Intro to SharePoint Web ServicesMark Rackley
 
Gae Meets Django
Gae Meets DjangoGae Meets Django
Gae Meets Djangofool2nd
 
SPSDenver - SharePoint & jQuery - What I wish I would have known
SPSDenver - SharePoint & jQuery - What I wish I would have knownSPSDenver - SharePoint & jQuery - What I wish I would have known
SPSDenver - SharePoint & jQuery - What I wish I would have knownMark Rackley
 
jQuery Mobile with HTML5
jQuery Mobile with HTML5jQuery Mobile with HTML5
jQuery Mobile with HTML5madhurpgarg
 
Advanced JQuery Mobile tutorial with Phonegap
Advanced JQuery Mobile tutorial with Phonegap Advanced JQuery Mobile tutorial with Phonegap
Advanced JQuery Mobile tutorial with Phonegap Rakesh Jha
 
AtlasCamp 2015: Using add-ons to build add-ons
AtlasCamp 2015: Using add-ons to build add-onsAtlasCamp 2015: Using add-ons to build add-ons
AtlasCamp 2015: Using add-ons to build add-onsAtlassian
 
Web Components: The future of Web Application Development
Web Components: The future of Web Application DevelopmentWeb Components: The future of Web Application Development
Web Components: The future of Web Application DevelopmentJermaine Oppong
 
Drupal and diversity of Single sign-on systems
Drupal and diversity of Single sign-on systemsDrupal and diversity of Single sign-on systems
Drupal and diversity of Single sign-on systemsAlex S
 
Introduction to jquery mobile with Phonegap
Introduction to jquery mobile with PhonegapIntroduction to jquery mobile with Phonegap
Introduction to jquery mobile with PhonegapRakesh Jha
 

Was ist angesagt? (20)

SPTechCon 2014 How to develop and debug client side code in SharePoint
SPTechCon 2014 How to develop and debug client side code in SharePointSPTechCon 2014 How to develop and debug client side code in SharePoint
SPTechCon 2014 How to develop and debug client side code in SharePoint
 
SPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuerySPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuery
 
jQuery and AJAX with Rails
jQuery and AJAX with RailsjQuery and AJAX with Rails
jQuery and AJAX with Rails
 
A Power User's Intro to jQuery Awesomeness in SharePoint
A Power User's Intro to jQuery Awesomeness in SharePointA Power User's Intro to jQuery Awesomeness in SharePoint
A Power User's Intro to jQuery Awesomeness in SharePoint
 
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePointSPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
 
jQuery and Rails: Best Friends Forever
jQuery and Rails: Best Friends ForeverjQuery and Rails: Best Friends Forever
jQuery and Rails: Best Friends Forever
 
SPTechCon Boston 2015 - Overcoming SharePoint Limitations
SPTechCon Boston 2015 - Overcoming SharePoint LimitationsSPTechCon Boston 2015 - Overcoming SharePoint Limitations
SPTechCon Boston 2015 - Overcoming SharePoint Limitations
 
The SharePoint & jQuery Guide - Updated 1/14/14
The SharePoint & jQuery Guide - Updated 1/14/14The SharePoint & jQuery Guide - Updated 1/14/14
The SharePoint & jQuery Guide - Updated 1/14/14
 
Building SharePoint Single Page Applications Using AngularJS
Building SharePoint Single Page Applications Using AngularJSBuilding SharePoint Single Page Applications Using AngularJS
Building SharePoint Single Page Applications Using AngularJS
 
Introduction to Client Side Dev in SharePoint Workshop
Introduction to Client Side Dev in SharePoint WorkshopIntroduction to Client Side Dev in SharePoint Workshop
Introduction to Client Side Dev in SharePoint Workshop
 
SPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery LibrariesSPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery Libraries
 
Intro to SharePoint Web Services
Intro to SharePoint Web ServicesIntro to SharePoint Web Services
Intro to SharePoint Web Services
 
Gae Meets Django
Gae Meets DjangoGae Meets Django
Gae Meets Django
 
SPSDenver - SharePoint & jQuery - What I wish I would have known
SPSDenver - SharePoint & jQuery - What I wish I would have knownSPSDenver - SharePoint & jQuery - What I wish I would have known
SPSDenver - SharePoint & jQuery - What I wish I would have known
 
jQuery Mobile with HTML5
jQuery Mobile with HTML5jQuery Mobile with HTML5
jQuery Mobile with HTML5
 
Advanced JQuery Mobile tutorial with Phonegap
Advanced JQuery Mobile tutorial with Phonegap Advanced JQuery Mobile tutorial with Phonegap
Advanced JQuery Mobile tutorial with Phonegap
 
AtlasCamp 2015: Using add-ons to build add-ons
AtlasCamp 2015: Using add-ons to build add-onsAtlasCamp 2015: Using add-ons to build add-ons
AtlasCamp 2015: Using add-ons to build add-ons
 
Web Components: The future of Web Application Development
Web Components: The future of Web Application DevelopmentWeb Components: The future of Web Application Development
Web Components: The future of Web Application Development
 
Drupal and diversity of Single sign-on systems
Drupal and diversity of Single sign-on systemsDrupal and diversity of Single sign-on systems
Drupal and diversity of Single sign-on systems
 
Introduction to jquery mobile with Phonegap
Introduction to jquery mobile with PhonegapIntroduction to jquery mobile with Phonegap
Introduction to jquery mobile with Phonegap
 

Andere mochten auch

Multi-écrans : effet de mode ou tendance de fond ?
Multi-écrans : effet de mode ou tendance de fond ?Multi-écrans : effet de mode ou tendance de fond ?
Multi-écrans : effet de mode ou tendance de fond ?PXNetwork
 
Les réseaux sociaux en marketing B2B
Les réseaux sociaux en marketing B2BLes réseaux sociaux en marketing B2B
Les réseaux sociaux en marketing B2BMI4
 
Smartphone, Tablette et Desktop : comment organiser un discours de marque dan...
Smartphone, Tablette et Desktop : comment organiser un discours de marque dan...Smartphone, Tablette et Desktop : comment organiser un discours de marque dan...
Smartphone, Tablette et Desktop : comment organiser un discours de marque dan...Mathias Duret
 
Les opportunités des dispositifs publicitaires multi-écrans par Millward Brown
Les opportunités des dispositifs publicitaires multi-écrans par Millward BrownLes opportunités des dispositifs publicitaires multi-écrans par Millward Brown
Les opportunités des dispositifs publicitaires multi-écrans par Millward BrownPhilippe KHATTOU
 
Le Marketing Mobile face aux idées reçues
Le Marketing Mobile face aux idées reçuesLe Marketing Mobile face aux idées reçues
Le Marketing Mobile face aux idées reçuesLaFrenchMobile
 
[DAF 2014] Multi-device : Mieux qualifier son audience
[DAF 2014] Multi-device : Mieux qualifier son audience[DAF 2014] Multi-device : Mieux qualifier son audience
[DAF 2014] Multi-device : Mieux qualifier son audienceAT Internet
 
Eurelis - Présentation multi-écrans
Eurelis - Présentation multi-écransEurelis - Présentation multi-écrans
Eurelis - Présentation multi-écransAgence-Eurelis
 
Le Multi-Device au cœur de votre stratégie mobile - évènement AT Internet
Le Multi-Device au cœur de votre stratégie mobile - évènement AT InternetLe Multi-Device au cœur de votre stratégie mobile - évènement AT Internet
Le Multi-Device au cœur de votre stratégie mobile - évènement AT InternetAT Internet
 
[DAF 2015] L'analyse des données cross-canal chez vente-privee.fr
[DAF 2015] L'analyse des données cross-canal chez vente-privee.fr[DAF 2015] L'analyse des données cross-canal chez vente-privee.fr
[DAF 2015] L'analyse des données cross-canal chez vente-privee.frAT Internet
 
Marketing Mobile - Cours IDRAC Sup' de Com
Marketing Mobile - Cours IDRAC Sup' de ComMarketing Mobile - Cours IDRAC Sup' de Com
Marketing Mobile - Cours IDRAC Sup' de ComLucileReynard
 

Andere mochten auch (12)

Multi-écrans : effet de mode ou tendance de fond ?
Multi-écrans : effet de mode ou tendance de fond ?Multi-écrans : effet de mode ou tendance de fond ?
Multi-écrans : effet de mode ou tendance de fond ?
 
Les réseaux sociaux en marketing B2B
Les réseaux sociaux en marketing B2BLes réseaux sociaux en marketing B2B
Les réseaux sociaux en marketing B2B
 
Smartphone, Tablette et Desktop : comment organiser un discours de marque dan...
Smartphone, Tablette et Desktop : comment organiser un discours de marque dan...Smartphone, Tablette et Desktop : comment organiser un discours de marque dan...
Smartphone, Tablette et Desktop : comment organiser un discours de marque dan...
 
Les opportunités des dispositifs publicitaires multi-écrans par Millward Brown
Les opportunités des dispositifs publicitaires multi-écrans par Millward BrownLes opportunités des dispositifs publicitaires multi-écrans par Millward Brown
Les opportunités des dispositifs publicitaires multi-écrans par Millward Brown
 
Le Marketing Mobile face aux idées reçues
Le Marketing Mobile face aux idées reçuesLe Marketing Mobile face aux idées reçues
Le Marketing Mobile face aux idées reçues
 
Le multi-écrans
Le multi-écransLe multi-écrans
Le multi-écrans
 
[DAF 2014] Multi-device : Mieux qualifier son audience
[DAF 2014] Multi-device : Mieux qualifier son audience[DAF 2014] Multi-device : Mieux qualifier son audience
[DAF 2014] Multi-device : Mieux qualifier son audience
 
Eurelis - Présentation multi-écrans
Eurelis - Présentation multi-écransEurelis - Présentation multi-écrans
Eurelis - Présentation multi-écrans
 
Marketing Mobile
Marketing MobileMarketing Mobile
Marketing Mobile
 
Le Multi-Device au cœur de votre stratégie mobile - évènement AT Internet
Le Multi-Device au cœur de votre stratégie mobile - évènement AT InternetLe Multi-Device au cœur de votre stratégie mobile - évènement AT Internet
Le Multi-Device au cœur de votre stratégie mobile - évènement AT Internet
 
[DAF 2015] L'analyse des données cross-canal chez vente-privee.fr
[DAF 2015] L'analyse des données cross-canal chez vente-privee.fr[DAF 2015] L'analyse des données cross-canal chez vente-privee.fr
[DAF 2015] L'analyse des données cross-canal chez vente-privee.fr
 
Marketing Mobile - Cours IDRAC Sup' de Com
Marketing Mobile - Cours IDRAC Sup' de ComMarketing Mobile - Cours IDRAC Sup' de Com
Marketing Mobile - Cours IDRAC Sup' de Com
 

Ähnlich wie Multi screen HTML5

Responsive Websites
Responsive WebsitesResponsive Websites
Responsive WebsitesJoe Seifi
 
Html5 on Mobile(For Developer)
Html5 on Mobile(For Developer)Html5 on Mobile(For Developer)
Html5 on Mobile(For Developer)Adam Lu
 
Responsive websites. Toolbox
Responsive websites. ToolboxResponsive websites. Toolbox
Responsive websites. ToolboxWojtek Zając
 
Mobile App Development
Mobile App DevelopmentMobile App Development
Mobile App DevelopmentChris Morrell
 
Pinkoi Mobile Web
Pinkoi Mobile WebPinkoi Mobile Web
Pinkoi Mobile Webmikeleeme
 
The Mobile Development Landscape
The Mobile Development LandscapeThe Mobile Development Landscape
The Mobile Development LandscapeAmbert Ho
 
Responsive Web Design - Tom Robertshaw
Responsive Web Design - Tom RobertshawResponsive Web Design - Tom Robertshaw
Responsive Web Design - Tom RobertshawMeet Magento Spain
 
02 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
02 Building cross-platform mobile applications with jQuery Mobile / Desarroll...02 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
02 Building cross-platform mobile applications with jQuery Mobile / Desarroll...Cristian Rodríguez Enríquez
 
Fake it 'til you make it
Fake it 'til you make itFake it 'til you make it
Fake it 'til you make itJonathan Snook
 
Creating mobile apps without native code
Creating mobile apps without native codeCreating mobile apps without native code
Creating mobile apps without native codeJoakim Kemeny
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Thomas Carney
 
Mobilism 2011: How to put the mobile in the mobile web
Mobilism 2011: How to put the mobile in the mobile webMobilism 2011: How to put the mobile in the mobile web
Mobilism 2011: How to put the mobile in the mobile webJenifer Hanen
 
Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)Tirthesh Ganatra
 
The Mobile Web Revealed For The Java Developer
The Mobile Web Revealed For The Java DeveloperThe Mobile Web Revealed For The Java Developer
The Mobile Web Revealed For The Java Developerbalunasj
 
JQuery mobile
JQuery mobileJQuery mobile
JQuery mobileGary Yeh
 
Mobile Apps with PhoneGap and jQuery Mobile
Mobile Apps with PhoneGap and jQuery MobileMobile Apps with PhoneGap and jQuery Mobile
Mobile Apps with PhoneGap and jQuery MobileTerry Ryan
 

Ähnlich wie Multi screen HTML5 (20)

Responsive Websites
Responsive WebsitesResponsive Websites
Responsive Websites
 
Jquery mobile
Jquery mobileJquery mobile
Jquery mobile
 
Html5 on Mobile(For Developer)
Html5 on Mobile(For Developer)Html5 on Mobile(For Developer)
Html5 on Mobile(For Developer)
 
Best Practices for Mobile Web Design
Best Practices for Mobile Web DesignBest Practices for Mobile Web Design
Best Practices for Mobile Web Design
 
Responsive websites. Toolbox
Responsive websites. ToolboxResponsive websites. Toolbox
Responsive websites. Toolbox
 
Mobile App Development
Mobile App DevelopmentMobile App Development
Mobile App Development
 
Pinkoi Mobile Web
Pinkoi Mobile WebPinkoi Mobile Web
Pinkoi Mobile Web
 
The Mobile Development Landscape
The Mobile Development LandscapeThe Mobile Development Landscape
The Mobile Development Landscape
 
Responsive Web Design - Tom Robertshaw
Responsive Web Design - Tom RobertshawResponsive Web Design - Tom Robertshaw
Responsive Web Design - Tom Robertshaw
 
02 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
02 Building cross-platform mobile applications with jQuery Mobile / Desarroll...02 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
02 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
 
Adobe & HTML5
Adobe & HTML5Adobe & HTML5
Adobe & HTML5
 
Fake it 'til you make it
Fake it 'til you make itFake it 'til you make it
Fake it 'til you make it
 
Creating mobile apps without native code
Creating mobile apps without native codeCreating mobile apps without native code
Creating mobile apps without native code
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012
 
Mobilism 2011: How to put the mobile in the mobile web
Mobilism 2011: How to put the mobile in the mobile webMobilism 2011: How to put the mobile in the mobile web
Mobilism 2011: How to put the mobile in the mobile web
 
Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)
 
The Mobile Web Revealed For The Java Developer
The Mobile Web Revealed For The Java DeveloperThe Mobile Web Revealed For The Java Developer
The Mobile Web Revealed For The Java Developer
 
Web app
Web appWeb app
Web app
 
JQuery mobile
JQuery mobileJQuery mobile
JQuery mobile
 
Mobile Apps with PhoneGap and jQuery Mobile
Mobile Apps with PhoneGap and jQuery MobileMobile Apps with PhoneGap and jQuery Mobile
Mobile Apps with PhoneGap and jQuery Mobile
 

Mehr von Ron Reiter

Securing your Bitcoin wallet
Securing your Bitcoin walletSecuring your Bitcoin wallet
Securing your Bitcoin walletRon Reiter
 
Brogramming - Python, Bash for Data Processing, and Git
Brogramming - Python, Bash for Data Processing, and GitBrogramming - Python, Bash for Data Processing, and Git
Brogramming - Python, Bash for Data Processing, and GitRon Reiter
 
BDX 2015 - Scaling out big-data computation & machine learning using Pig, Pyt...
BDX 2015 - Scaling out big-data computation & machine learning using Pig, Pyt...BDX 2015 - Scaling out big-data computation & machine learning using Pig, Pyt...
BDX 2015 - Scaling out big-data computation & machine learning using Pig, Pyt...Ron Reiter
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to BootstrapRon Reiter
 
Building Chrome Extensions
Building Chrome ExtensionsBuilding Chrome Extensions
Building Chrome ExtensionsRon Reiter
 
HTML5 New Features and Resources
HTML5 New Features and ResourcesHTML5 New Features and Resources
HTML5 New Features and ResourcesRon Reiter
 
Digital Audio & Signal Processing (Elad Gariany)
Digital Audio & Signal Processing (Elad Gariany)Digital Audio & Signal Processing (Elad Gariany)
Digital Audio & Signal Processing (Elad Gariany)Ron Reiter
 
Writing HTML5 Web Apps using Backbone.js and GAE
Writing HTML5 Web Apps using Backbone.js and GAEWriting HTML5 Web Apps using Backbone.js and GAE
Writing HTML5 Web Apps using Backbone.js and GAERon Reiter
 

Mehr von Ron Reiter (9)

Securing your Bitcoin wallet
Securing your Bitcoin walletSecuring your Bitcoin wallet
Securing your Bitcoin wallet
 
Brogramming - Python, Bash for Data Processing, and Git
Brogramming - Python, Bash for Data Processing, and GitBrogramming - Python, Bash for Data Processing, and Git
Brogramming - Python, Bash for Data Processing, and Git
 
BDX 2015 - Scaling out big-data computation & machine learning using Pig, Pyt...
BDX 2015 - Scaling out big-data computation & machine learning using Pig, Pyt...BDX 2015 - Scaling out big-data computation & machine learning using Pig, Pyt...
BDX 2015 - Scaling out big-data computation & machine learning using Pig, Pyt...
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
 
Mobile Spaces
Mobile SpacesMobile Spaces
Mobile Spaces
 
Building Chrome Extensions
Building Chrome ExtensionsBuilding Chrome Extensions
Building Chrome Extensions
 
HTML5 New Features and Resources
HTML5 New Features and ResourcesHTML5 New Features and Resources
HTML5 New Features and Resources
 
Digital Audio & Signal Processing (Elad Gariany)
Digital Audio & Signal Processing (Elad Gariany)Digital Audio & Signal Processing (Elad Gariany)
Digital Audio & Signal Processing (Elad Gariany)
 
Writing HTML5 Web Apps using Backbone.js and GAE
Writing HTML5 Web Apps using Backbone.js and GAEWriting HTML5 Web Apps using Backbone.js and GAE
Writing HTML5 Web Apps using Backbone.js and GAE
 

Kürzlich hochgeladen

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 

Kürzlich hochgeladen (20)

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 

Multi screen HTML5

  • 1. MULTI-SCREEN HTML5 Ron Reiter
  • 2. Who am I? •  Ron Reiter •  HTML5 Google Developer Expert •  HTML5-IL •  Consultant, Freelancer
  • 3. HTML5 != WEB •  HTML5 is a platform for writing applications •  Browser + Server = Web !=  
  • 4. Why mobile web? •  Global mobile traffic now represents roughly 13% of Internet traffic •  Gartner research: In 2013 more than half of users will surf the web via smartphones •  Nearly 1/3 of UK page views are from mobiles and tablets BECAUSE YOU NEED TO DO IT
  • 5. Why HTML5? •  Cross platform development •  FirefoxOS •  PhoneGap •  Desktops run JavaScript with great performance •  Devices are only getting stronger (Zuckerberg, kiss my *ss)
  • 6. Why NOT HTML5? •  Millisecond grade interaction and animations •  HTML5 is not quite there yet
  • 8. OK, I WANT MULTISCREEN
  • 10. CSS Media Queries - Before $(window).resize(  function()  {          if  ($(window).width()  <  480)  {              document.body.className  =  “smartphone”;          }  else  if  ($(window).width()  >=  480  &&  $ (window).width()  <  940)  {              document.body.className  =  “tablet”;          }  else  {              document.body.className  =  “desktop”;          }     });  
  • 11. CSS Media Queries - After @media  (max-­‐width:  479px)  {     }     @media  (min-­‐width:  480px)  and  (max-­‐width:  939px)  {     }     @media  (min-­‐width:  940px)  {     }      
  • 12. CSS Media Queries - After <link  rel="stylesheet"        type="text/css"  media="screen"  href="sans-­‐serif.css">     <link  rel="stylesheet"        type="text/css"  media="print"  href="serif.css">  
  • 13. CSS Media Queries - After @import  url(responsive-­‐retina.css)  (-­‐webkit-­‐min-­‐device-­‐ pixel-­‐ratio:  1.5),  (min-­‐resolution:  144dpi);  
  • 14. Important media queries •  print  /  screen   •  orientation   •  min-­‐width   •  max-­‐width   •  min-­‐device-­‐width   •  max-­‐device-­‐width   •  -­‐webkit-­‐min-­‐device-­‐pixel-­‐ratio    /  min-­‐resolution    
  • 15. Why is this better? •  Declarative CSS allows hardware acceleration •  Browser Optimizations •  Less ugly
  • 16. Viewport meta tag •  This viewport tag disables mobile viewport resizing: <meta  name="viewport”  content=”          width=device-­‐width,  initial-­‐scale=1.0,  maximum-­‐scale=1.0,  user-­‐scalable=no   ”>   •  Use it when you build responsive interfaces
  • 18. App or mobile web? •  You already have your website, and now you want to support mobile devices. •  Website –  Easier maintenance •  Application –  More abilities
  • 19. What are my options? •  Change your current website to a responsive web site •  Your original website + Special website for tablets and smartphones •  Just make an app (HTML5, native, etc).
  • 20. Responsive web UI Frameworks Responsive  Web  Sites   Mobile  First   Twi$er  Bootstrap   jQuery  Mobile  
  • 21. HTML5 Mobile First Applications
  • 22. Mobile First Web Applications •  Make a mobile website •  Mobile application development platform UI  Frameworks   jQuery  Mobile   Sencha  Touch   jqMobi   DOM  ManipulaMon   Frameworks   jQuery,  Zepto   MVC  Frameworks   Backbone.js   Ember.js   Angular.js  
  • 23. jQuery Mobile •  Amazing mobile framework •  Themable •  Cross Platform •  Around for a while
  • 25. How to start •  Create a new HTML page with: <link  rel="stylesheet"  href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-­‐1.3.0.min.css"  />   <script  src="http://code.jquery.com/jquery-­‐1.8.2.min.js"></script>   <script  src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-­‐1.3.0.min.js"></script>   •  Or use Codiqa to download your app
  • 26. How to use jQuery Mobile
  • 27. What can jQuery Mobile do?
  • 28. jQuery Mobile •  What can I do with jQuery mobile? •  Go to http://view.jquerymobile.com/1.3.0/ using your smartphone or tablet
  • 35. jQuery Mobile Architecture AJAX  /  Preloaded Web  NavigaMon   One  HTML,  Two  pages   Two  HTMLs,  Two  pages  
  • 36. AJAX Navigation •  Instead of changing the document location, we use $.mobile.navigate (saves history) $(“a”).on(“click”,  function(  event  )  {    event.preventDefault();    $.mobile.navigate  (  this.attr(“href”)  );   });  
  • 37. AJAX Navigation •  Once we navigate, a “navigate” event is fired   $(window).on(“navigate”,  function(event,  data)  {          //  load  new  content  using  AJAX   });  
  • 38. Navigating between loaded pages JavaScript:   $.mobile.changePage(“#page2”,  “pop”,  false,  true);   $.mobile.back();   HTML:   <div  data-­‐role=“page”  id=“page1”></div>   <div  data-­‐role=“page”  id=“page2”></div>  
  • 39. Creating a page dynamically JavaScript:    $(document.body).append('<div  data-­‐role="page"   id=”page2"><div  data-­‐role="content">'  +  content  +  '</ div></div>');   $.mobile.initializePage();   $.mobile.changePage(“#page2”,  “pop”,  false,  true);  
  • 40. jQuery Mobile + MVC •  Angular –  https://github.com/tigbro/jquery-mobile-angular- adapter •  Backbone – we need a special router –  https://github.com/azicchetti/jquerymobile-router •  Ember + jQuery Mobile is a bit harder since both frameworks utilize a fair amount of voodoo
  • 41. OK, I want an app! •  PhoneGap / Apache Cordova – Gives native API access from JavaScript •  PhoneGap was bought by Adobe, so that non- Adobe development is done in Cordova
  • 42. PhoneGap Build •  Removes the need for compiling to all platforms
  • 45. Responsive Web Design •  Web sites with a simple UI need to adapt to multiple screen form factors •  Web sites are less complicated than web applications, but still very similar •  jQuery mobile is also a tool for responsive web design –  http://view.jquerymobile.com/1.3.0/docs/intro/ rwd.php
  • 47. Twitter Bootstrap •  UI framework is more straightforward than jQuery Mobile •  The UI elements are not as good for mobile as jQuery Mobile •  Mobile browsers do not behave well with advanced Bootstrap UI elements like jQuery Mobile does
  • 48. How to make Bootstrap responsive? •  Add this to your Bootstrap app: <meta  name="viewport"  content="width=device-­‐width,  initial-­‐scale=1.0">   <link  href="assets/css/bootstrap-­‐responsive.css"  rel="stylesheet">   •  And you’re ready to go!
  • 49. Twitter Bootstrap Grid <div  class=“container”>      <div  class=“row”>  <!-­‐-­‐  columns  must  sum  up  to  12  -­‐-­‐>          <div  class=“span4”>  …  content  …  </div>          <div  class=“span4”>  …  content  …  </div>                  <div  class=“span4”>  …  content  …  </div>      </div>   </div>  
  • 50. Bootstrap Grid (web) span4   span4   span4  
  • 51. Bootstrap Grid (mobile) span4   span4   span4  
  • 55. Responsive Design Bookmarklet http://responsive.victorcoulon.fr/