SlideShare a Scribd company logo
jqmdesigner.appspot.com
What is jQuery Mobile?
jQuery + Mobile
jQuery Mobile
=
So simple, we all know it!
But, What is jQuery Mobile? Can we eat it?
Features
Powerful Ajax-powered
navigation system
HTML5 Markup-driven
configuration
Built on jQuery core
Responsive design
Progressive enhancement
Touch and mouse
event support
Lightweight size
Compatible with all major mobile,
tablet, e-reader & desktop platforms
Unified UI widgets
However, I heard that jQuery Mobile is fat
jQuery Mobile Version 1.4.3
Significantly improved performance than ever
feel jQuery Mobile
http://demos.jquerymobile.com/1.4.2/
Let’s Learn jQuery Mobile!
<link rel="stylesheet" href="jquery.mobile.min.css" />
<script src="jquery.min.js"></script>
<script src="jquery.mobile.min.js"></script>
jQuery Mobile preloaded program
<head>
<title>jQuery Mobile</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile.min.css" />
<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a1/jquery.mobile.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>header</h1>
</div>
<div class="ui-content">
<p>content</p>
</div>
<div data-role="footer">
<h4>footer</h4>
</div>
</div>
</body>
First step
<div id="page1" data-role="page">
<div role="main" class="ui-content"></div>
</div>
<div id="page2" data-role="page">
<div role="main" class="ui-content"></div>
</div>
<div id="page3" data-role="page">
<div role="main" class="ui-content"></div>
</div>
JQuery Mobile is usually a multiple page
However, only one of which is displayed,
page id must be separated
page
page Feel Page on EZoApp
http://goo.gl/EmXUY9
★ Use <href>, switch directly to the specified "Page Id"
★ Using "data-transition" set the transition effect
★ Set data-rel = "back" to return with the same effect
page
transition
<a href="#pageID" data-transition="效果"></a>
★ You can also use javascript to do the switch
★ $.mobile.changePage('#PageID');
★ $.mobile.changePage('#PageB' , {'transition':'Effect'} );
● default
● fade
● flip
● flow
● pop
● slide
● slidefade
● slideup
● slidedown
● turn
● none
<a href="#pageID" data-transition="effect"></a>
example:
http://goo.gl/xwIR0F
page
transition
Button <a href="#" class="ui-btn">Anchor</a>
<button class="ui-btn">Button</button>
Use the "class" generate button style
<a href="#" class="ui-btn ui-btn-inline">Anchor</a>
<button class="ui-btn ui-btn-inline">Button</button>
Button
ICON <button class="ui-btn ui-btn-icon-left ui-icon-action">action</button>
<button class="ui-btn ui-btn-icon-left ui-icon-alert">alert</button>
<button class="ui-btn ui-btn-icon-up ui-icon-arrow-d">arrow-d</button>
<button class="ui-btn ui-btn-icon-right ui-icon-arrow-d-l">arrow-d-l</button>
<button class="ui-btn ui-btn-icon-bottom ui-icon-arrow-d-r">arrow-d-r</button>
<button class="ui-btn ui-btn-icon-left ui-icon-arrow-l">arrow-l</button>
example:
http://goo.gl/TQxnvm
Use the "class" generate button style
Grid <div class="ui-grid-b">
<div class="ui-block-a">Block A</div>
<div class="ui-block-b">Block B</div>
<div class="ui-block-c">Block C</div>
</div>
Use "class" generates Grid, you can put the Grid in Grid
ui-grid-a : 2 columns,ui-grid-b:3 columns
ui-grid-c:4 columns,ui-grid-d:5 columns
example:
http://goo.gl/AizA2f
Input
<div class="ui-field-contain">
<label for="#text_id">Title</label>
<input type="text" name="" id="#text_id">
</div>
<div class="ui-field-contain">
<label for="#textarea_id">Title</label>
<textarea name="" id="#textarea_id"></textarea>
</div>
<div class="ui-field-contain">
<label for="#search_id">Title</label>
<input type="search" name="" id="#search_id">
</div>
example:
http://goo.gl/XOXJPH
theme Use "class" have different themes
按鈕:
<a href="#" class="ui-btn ui-btn-a">Theme A</a>
<a href="#" class="ui-btn ui-btn-b">Theme B</a>
navbar:
<div data-role="navbar">
<ul>
<li><a data-theme="a">Theme A</a></li>
<li><a data-theme="b">Theme B</a></li>
</ul>
</div>
example:
http://goo.gl/E8QcW9
Some examples of the above,
we see that "class" is very important
You must think
Of course !
The second is also very important: data attribute
2
What is data attribute?
The data-* attributes is used to store custom data private to
the page or application.
The data-* attributes gives us the ability to embed custom
data attributes on all HTML elements.
jQuery Mobile data attribute
http://api.jquerymobile.com/data-attribute/
Header
&
Footer
<div data-role="header" data-position="fixed">
<h1>header</h1>
</div>
<div data-role="footer" data-position="fixed">
<h4>footer</h4>
</div>
example:
http://goo.gl/YpuDEY
Navbar <div data-role="navbar">
<ul>
<li><a href="#">One</a></li>
<li><a href="#">Two</a></li>
</ul>
</div>
example:
http://goo.gl/3nwwe1
Radio
button
<form>
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Horizontal:</legend>
<input type="radio" name="radio-choice-h-2" id="radio-choice-h-2a"
value="on" checked="checked">
<label for="radio-choice-h-2a">One</label>
<input type="radio" name="radio-choice-h-2" id="radio-choice-h-2b"
value="off">
<label for="radio-choice-h-2b">Two</label>
<input type="radio" name="radio-choice-h-2" id="radio-choice-h-2c"
value="other">
<label for="radio-choice-h-2c">Three</label>
</fieldset>
</form>
example:
http://goo.gl/Vh67Vf
Check
box
<form>
<fieldset data-role="controlgroup">
<legend>Vertical:</legend>
<input type="checkbox" name="checkbox-v-2a" id="checkbox-v-2a">
<label for="checkbox-v-2a">One</label>
<input type="checkbox" name="checkbox-v-2b" id="checkbox-v-2b">
<label for="checkbox-v-2b">Two</label>
<input type="checkbox" name="checkbox-v-2c" id="checkbox-v-2c">
<label for="checkbox-v-2c">Three</label>
</fieldset>
</form>
example:
http://goo.gl/x7vfGr
Flip
switch
<form>
<label for="flip-2">Flip toggle switch:</label>
<select name="flip-2" id="flip-2" data-
role="flipswitch" data-theme="b">
<option value="off">Off</option>
<option value="on">On</option>
</select>
</form>
example:
http://goo.gl/83Mn0z
Listview <ul data-role="listview" data-inset="true"
data-divider-theme="a">
<li data-role="list-divider">Mail</li>
<li><a href="#">Inbox</a></li>
<li><a href="#">Outbox</a></li>
<li data-role="list-
divider">Contacts</li>
<li><a href="#">Friends</a></li>
<li><a href="#">Work</a></li>
</ul>
Use "data-role" to easily create "listview (filter)"
example:
http://goo.gl/XjmWug
Popup <a href="#popupID" data-rel="popup" class="ui-btn" data-
transition="pop">Popup</a>
<div data-role="popup" id="popupID">
<p>popup 內容</p>
</div>
example:
http://goo.gl/7rcO1C
Table
<table data-role="table" id="table-column-toggle" data-
mode="columntoggle" class="ui-responsive table-stroke">
<thead>
內容省略
</thead>
<tbody>
內容省略
</tbody>
</table>
http://goo.gl/pMJlkP
(columntoggle / Reflow)
Slide
Panel
<div id="left-menu" data-role="panel" data-position="left">
left menu
</div>
<div id="right-menu" data-role="panel" data-
position="right">
right menu
</div>
It is like App slider menu
example:
http://goo.gl/jM6sU3
How to make "jQuery Mobile" work?
How ?
Events
Page
(function (){
$(document).on( "pageinit" , "#pageID" , function(){
// Page first loads will be executed
});
})()
(function (){
$(document).on( "pageshow" , "#pageID" , function(){
// Will be executed after the page is displayed
});
})()
http://goo.gl/0Zwgnd
$('#id').on('tap', function () {});
$('#id').on('taphold', function () {});
$('#id').on('swipe', function () {});
$('#id').on('swipeleft', function () {});
$('#id').on('swiperight', function () {});
Five kinds of pages touch events
http://goo.gl/S5bJNq
Events
Touch
$(window).on('orientationchange', function (event) {});
Detect rotation event for mobile devices
http://goo.gl/HnE1Fe
Events
orientationchange
After a series of presentations
Everyone should understand a little jQuery Mobile
right?
? ? ? ? ?
Let's look at some examples of jQuery Mobile
Example 1 :
Change font size
http://goo.gl/ov5WEf
http://goo.gl/ppFIWB
Example 2 :
Palette
http://goo.gl/wiJ2BX
Example 3 :
Ordering System
Example 4 :
EZoApp Map
http://goo.gl/UZp0Vb
The above is a basic introduction to jQuery Mobile
If you are interested, you can learn more on the official website
http://jquerymobile.com/
Or use EZoApp
http://jqmdesigner.appspot.com/
Thank you
Ad

More Related Content

What's hot (20)

Jquery mobile
Jquery mobileJquery mobile
Jquery mobile
Eric Turcotte
 
Enjoy the vue.js
Enjoy the vue.jsEnjoy the vue.js
Enjoy the vue.js
TechExeter
 
Vue.js for beginners
Vue.js for beginnersVue.js for beginners
Vue.js for beginners
Julio Bitencourt
 
Introduction to Jquery
Introduction to JqueryIntroduction to Jquery
Introduction to Jquery
Amzad Hossain
 
Angular JS blog tutorial
Angular JS blog tutorialAngular JS blog tutorial
Angular JS blog tutorial
Claude Tech
 
Djangoアプリのデプロイに関するプラクティス / Deploy django application
Djangoアプリのデプロイに関するプラクティス / Deploy django applicationDjangoアプリのデプロイに関するプラクティス / Deploy django application
Djangoアプリのデプロイに関するプラクティス / Deploy django application
Masashi Shibata
 
WordPress Admin UI - Future Proofing Your Admin Pages
WordPress Admin UI - Future Proofing Your Admin PagesWordPress Admin UI - Future Proofing Your Admin Pages
WordPress Admin UI - Future Proofing Your Admin Pages
Brandon Dove
 
ChocolateChip-UI
ChocolateChip-UIChocolateChip-UI
ChocolateChip-UI
GeorgeIshak
 
Introduction to the jQuery mobile framework
Introduction to the jQuery mobile frameworkIntroduction to the jQuery mobile framework
Introduction to the jQuery mobile framework
Rishabh Rao
 
Jquery Cheatsheet
Jquery CheatsheetJquery Cheatsheet
Jquery Cheatsheet
Daniel Downs
 
Fundamental JQuery
Fundamental JQueryFundamental JQuery
Fundamental JQuery
Achmad Solichin
 
The Point of Vue - Intro to Vue.js
The Point of Vue - Intro to Vue.jsThe Point of Vue - Intro to Vue.js
The Point of Vue - Intro to Vue.js
Holly Schinsky
 
Secure WordPress Development Practices
Secure WordPress Development PracticesSecure WordPress Development Practices
Secure WordPress Development Practices
Brandon Dove
 
jQuery Mobile
jQuery MobilejQuery Mobile
jQuery Mobile
mowd8574
 
jQueryMobile Jump Start
jQueryMobile Jump StartjQueryMobile Jump Start
jQueryMobile Jump Start
Haim Michael
 
What Web Developers Need to Know to Develop Windows 8 Apps
What Web Developers Need to Know to Develop Windows 8 AppsWhat Web Developers Need to Know to Develop Windows 8 Apps
What Web Developers Need to Know to Develop Windows 8 Apps
Doris Chen
 
Introduction à AngularJS
Introduction à AngularJSIntroduction à AngularJS
Introduction à AngularJS
Nicolas PENNEC
 
Desenvolvimento web com Ruby on Rails (parte 6)
Desenvolvimento web com Ruby on Rails (parte 6)Desenvolvimento web com Ruby on Rails (parte 6)
Desenvolvimento web com Ruby on Rails (parte 6)
Joao Lucas Santana
 
jQuery Conference Chicago - September 2014
jQuery Conference Chicago - September 2014jQuery Conference Chicago - September 2014
jQuery Conference Chicago - September 2014
dmethvin
 
jQuery in the [Aol.] Enterprise
jQuery in the [Aol.] EnterprisejQuery in the [Aol.] Enterprise
jQuery in the [Aol.] Enterprise
Dave Artz
 
Enjoy the vue.js
Enjoy the vue.jsEnjoy the vue.js
Enjoy the vue.js
TechExeter
 
Introduction to Jquery
Introduction to JqueryIntroduction to Jquery
Introduction to Jquery
Amzad Hossain
 
Angular JS blog tutorial
Angular JS blog tutorialAngular JS blog tutorial
Angular JS blog tutorial
Claude Tech
 
Djangoアプリのデプロイに関するプラクティス / Deploy django application
Djangoアプリのデプロイに関するプラクティス / Deploy django applicationDjangoアプリのデプロイに関するプラクティス / Deploy django application
Djangoアプリのデプロイに関するプラクティス / Deploy django application
Masashi Shibata
 
WordPress Admin UI - Future Proofing Your Admin Pages
WordPress Admin UI - Future Proofing Your Admin PagesWordPress Admin UI - Future Proofing Your Admin Pages
WordPress Admin UI - Future Proofing Your Admin Pages
Brandon Dove
 
ChocolateChip-UI
ChocolateChip-UIChocolateChip-UI
ChocolateChip-UI
GeorgeIshak
 
Introduction to the jQuery mobile framework
Introduction to the jQuery mobile frameworkIntroduction to the jQuery mobile framework
Introduction to the jQuery mobile framework
Rishabh Rao
 
The Point of Vue - Intro to Vue.js
The Point of Vue - Intro to Vue.jsThe Point of Vue - Intro to Vue.js
The Point of Vue - Intro to Vue.js
Holly Schinsky
 
Secure WordPress Development Practices
Secure WordPress Development PracticesSecure WordPress Development Practices
Secure WordPress Development Practices
Brandon Dove
 
jQuery Mobile
jQuery MobilejQuery Mobile
jQuery Mobile
mowd8574
 
jQueryMobile Jump Start
jQueryMobile Jump StartjQueryMobile Jump Start
jQueryMobile Jump Start
Haim Michael
 
What Web Developers Need to Know to Develop Windows 8 Apps
What Web Developers Need to Know to Develop Windows 8 AppsWhat Web Developers Need to Know to Develop Windows 8 Apps
What Web Developers Need to Know to Develop Windows 8 Apps
Doris Chen
 
Introduction à AngularJS
Introduction à AngularJSIntroduction à AngularJS
Introduction à AngularJS
Nicolas PENNEC
 
Desenvolvimento web com Ruby on Rails (parte 6)
Desenvolvimento web com Ruby on Rails (parte 6)Desenvolvimento web com Ruby on Rails (parte 6)
Desenvolvimento web com Ruby on Rails (parte 6)
Joao Lucas Santana
 
jQuery Conference Chicago - September 2014
jQuery Conference Chicago - September 2014jQuery Conference Chicago - September 2014
jQuery Conference Chicago - September 2014
dmethvin
 
jQuery in the [Aol.] Enterprise
jQuery in the [Aol.] EnterprisejQuery in the [Aol.] Enterprise
jQuery in the [Aol.] Enterprise
Dave Artz
 

Viewers also liked (20)

5ο γυμνάσιο ν. ιωνίας
5ο γυμνάσιο ν. ιωνίας5ο γυμνάσιο ν. ιωνίας
5ο γυμνάσιο ν. ιωνίας
gper2014
 
1. Μεταναστευτικό Αιγαίο 2. Ανθρωπιά υπό εξαφάνιση
1. Μεταναστευτικό Αιγαίο 2. Ανθρωπιά υπό εξαφάνιση1. Μεταναστευτικό Αιγαίο 2. Ανθρωπιά υπό εξαφάνιση
1. Μεταναστευτικό Αιγαίο 2. Ανθρωπιά υπό εξαφάνιση
gper2014
 
Ο κήπος του σχολείου μας
Ο κήπος του σχολείου μαςΟ κήπος του σχολείου μας
Ο κήπος του σχολείου μας
gper2014
 
SRISAISEVASANSTHAN
SRISAISEVASANSTHANSRISAISEVASANSTHAN
SRISAISEVASANSTHAN
sandeep sharma
 
架站前一定要上的10堂課 ch3
架站前一定要上的10堂課 ch3架站前一定要上的10堂課 ch3
架站前一定要上的10堂課 ch3
Huang Tim
 
το δελφινοκόριτσο
το δελφινοκόριτσοτο δελφινοκόριτσο
το δελφινοκόριτσο
gper2014
 
Από το Ταίναρο έως τη Θράκη : Φύση, αρχαία θέατρα και στάδια, με πνοή και μερ...
Από το Ταίναρο έως τη Θράκη : Φύση, αρχαία θέατρα και στάδια, με πνοή και μερ...Από το Ταίναρο έως τη Θράκη : Φύση, αρχαία θέατρα και στάδια, με πνοή και μερ...
Από το Ταίναρο έως τη Θράκη : Φύση, αρχαία θέατρα και στάδια, με πνοή και μερ...
gper2014
 
Σχολικοί αγρότες
Σχολικοί αγρότες Σχολικοί αγρότες
Σχολικοί αγρότες
gper2014
 
JQuery Mobile 框架介紹與使用 20140713
JQuery Mobile 框架介紹與使用 20140713JQuery Mobile 框架介紹與使用 20140713
JQuery Mobile 框架介紹與使用 20140713
EZoApp
 
Srisai ppt
Srisai pptSrisai ppt
Srisai ppt
sandeep sharma
 
Lead Generation WP
Lead Generation WPLead Generation WP
Lead Generation WP
Susan Gail Taylor, M.A.
 
Rematia teliko
Rematia telikoRematia teliko
Rematia teliko
gper2014
 
Ανάβρυτα-Δάσος Συγγρού. Δρόμοι του νερού
Ανάβρυτα-Δάσος Συγγρού. Δρόμοι του νερούΑνάβρυτα-Δάσος Συγγρού. Δρόμοι του νερού
Ανάβρυτα-Δάσος Συγγρού. Δρόμοι του νερού
gper2014
 
Bilaspur Tourism
Bilaspur TourismBilaspur Tourism
Bilaspur Tourism
Orrindrilla Halder
 
περιβαλλοντική 2012 2013
περιβαλλοντική 2012 2013περιβαλλοντική 2012 2013
περιβαλλοντική 2012 2013
gper2014
 
Походження людини
Походження людиниПоходження людини
Походження людини
Sam Um Ray
 
Yahoo
YahooYahoo
Yahoo
ssalha
 
εργασια συνολική Oryktos ploutos metallevmata 3o gym kifisias 2012 2013
εργασια συνολική Oryktos ploutos metallevmata 3o gym kifisias 2012 2013εργασια συνολική Oryktos ploutos metallevmata 3o gym kifisias 2012 2013
εργασια συνολική Oryktos ploutos metallevmata 3o gym kifisias 2012 2013
gper2014
 
5ο γυμνασιο Αμαρουσίου - Δημιουργία λαχανόκηπου
5ο γυμνασιο Αμαρουσίου - Δημιουργία λαχανόκηπου5ο γυμνασιο Αμαρουσίου - Δημιουργία λαχανόκηπου
5ο γυμνασιο Αμαρουσίου - Δημιουργία λαχανόκηπου
gper2014
 
Intuit
IntuitIntuit
Intuit
ssalha
 
5ο γυμνάσιο ν. ιωνίας
5ο γυμνάσιο ν. ιωνίας5ο γυμνάσιο ν. ιωνίας
5ο γυμνάσιο ν. ιωνίας
gper2014
 
1. Μεταναστευτικό Αιγαίο 2. Ανθρωπιά υπό εξαφάνιση
1. Μεταναστευτικό Αιγαίο 2. Ανθρωπιά υπό εξαφάνιση1. Μεταναστευτικό Αιγαίο 2. Ανθρωπιά υπό εξαφάνιση
1. Μεταναστευτικό Αιγαίο 2. Ανθρωπιά υπό εξαφάνιση
gper2014
 
Ο κήπος του σχολείου μας
Ο κήπος του σχολείου μαςΟ κήπος του σχολείου μας
Ο κήπος του σχολείου μας
gper2014
 
架站前一定要上的10堂課 ch3
架站前一定要上的10堂課 ch3架站前一定要上的10堂課 ch3
架站前一定要上的10堂課 ch3
Huang Tim
 
το δελφινοκόριτσο
το δελφινοκόριτσοτο δελφινοκόριτσο
το δελφινοκόριτσο
gper2014
 
Από το Ταίναρο έως τη Θράκη : Φύση, αρχαία θέατρα και στάδια, με πνοή και μερ...
Από το Ταίναρο έως τη Θράκη : Φύση, αρχαία θέατρα και στάδια, με πνοή και μερ...Από το Ταίναρο έως τη Θράκη : Φύση, αρχαία θέατρα και στάδια, με πνοή και μερ...
Από το Ταίναρο έως τη Θράκη : Φύση, αρχαία θέατρα και στάδια, με πνοή και μερ...
gper2014
 
Σχολικοί αγρότες
Σχολικοί αγρότες Σχολικοί αγρότες
Σχολικοί αγρότες
gper2014
 
JQuery Mobile 框架介紹與使用 20140713
JQuery Mobile 框架介紹與使用 20140713JQuery Mobile 框架介紹與使用 20140713
JQuery Mobile 框架介紹與使用 20140713
EZoApp
 
Rematia teliko
Rematia telikoRematia teliko
Rematia teliko
gper2014
 
Ανάβρυτα-Δάσος Συγγρού. Δρόμοι του νερού
Ανάβρυτα-Δάσος Συγγρού. Δρόμοι του νερούΑνάβρυτα-Δάσος Συγγρού. Δρόμοι του νερού
Ανάβρυτα-Δάσος Συγγρού. Δρόμοι του νερού
gper2014
 
περιβαλλοντική 2012 2013
περιβαλλοντική 2012 2013περιβαλλοντική 2012 2013
περιβαλλοντική 2012 2013
gper2014
 
Походження людини
Походження людиниПоходження людини
Походження людини
Sam Um Ray
 
εργασια συνολική Oryktos ploutos metallevmata 3o gym kifisias 2012 2013
εργασια συνολική Oryktos ploutos metallevmata 3o gym kifisias 2012 2013εργασια συνολική Oryktos ploutos metallevmata 3o gym kifisias 2012 2013
εργασια συνολική Oryktos ploutos metallevmata 3o gym kifisias 2012 2013
gper2014
 
5ο γυμνασιο Αμαρουσίου - Δημιουργία λαχανόκηπου
5ο γυμνασιο Αμαρουσίου - Δημιουργία λαχανόκηπου5ο γυμνασιο Αμαρουσίου - Δημιουργία λαχανόκηπου
5ο γυμνασιο Αμαρουσίου - Δημιουργία λαχανόκηπου
gper2014
 
Intuit
IntuitIntuit
Intuit
ssalha
 
Ad

Similar to jQuery Mobile Introduction ( demo on EZoapp ) (20)

iWebkit
iWebkitiWebkit
iWebkit
Ryan Chung
 
Vue.js - zastosowanie i budowa komponentów
Vue.js - zastosowanie i budowa komponentówVue.js - zastosowanie i budowa komponentów
Vue.js - zastosowanie i budowa komponentów
Laravel Poland MeetUp
 
QCon 2015 - Thinking in components: A new paradigm for Web UI
QCon 2015 - Thinking in components: A new paradigm for Web UIQCon 2015 - Thinking in components: A new paradigm for Web UI
QCon 2015 - Thinking in components: A new paradigm for Web UI
Oliver Häger
 
Nagios Conference 2014 - Troy Lea - JavaScript and jQuery - Nagios XI Tips, T...
Nagios Conference 2014 - Troy Lea - JavaScript and jQuery - Nagios XI Tips, T...Nagios Conference 2014 - Troy Lea - JavaScript and jQuery - Nagios XI Tips, T...
Nagios Conference 2014 - Troy Lea - JavaScript and jQuery - Nagios XI Tips, T...
Nagios
 
Angular js quickstart
Angular js quickstartAngular js quickstart
Angular js quickstart
LinkMe Srl
 
multiple views and routing
multiple views and routingmultiple views and routing
multiple views and routing
Brajesh Yadav
 
Magento20100807
Magento20100807Magento20100807
Magento20100807
Hirokazu Nishi
 
jQuery Mobile
jQuery MobilejQuery Mobile
jQuery Mobile
Yaowaluck Promdee
 
Once Source to Rule Them All
Once Source to Rule Them AllOnce Source to Rule Them All
Once Source to Rule Them All
David Yeiser
 
Understanding form helpers
Understanding form helpersUnderstanding form helpers
Understanding form helpers
Bruno Almeida
 
HTML5 and the dawn of rich mobile web applications pt 2
HTML5 and the dawn of rich mobile web applications pt 2HTML5 and the dawn of rich mobile web applications pt 2
HTML5 and the dawn of rich mobile web applications pt 2
James Pearce
 
Jquery mobile2
Jquery mobile2Jquery mobile2
Jquery mobile2
Inbal Geffen
 
HTML5 New and Improved
HTML5   New and ImprovedHTML5   New and Improved
HTML5 New and Improved
Timothy Fisher
 
Building iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoBuilding iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" Domino
Rob Bontekoe
 
Your Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages SuckYour Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages Suck
Anthony Montalbano
 
Getting to Know Bootstrap for Rapid Web Development
Getting to Know Bootstrap for Rapid Web DevelopmentGetting to Know Bootstrap for Rapid Web Development
Getting to Know Bootstrap for Rapid Web Development
Laurence Svekis ✔
 
jQuery UI and Plugins
jQuery UI and PluginsjQuery UI and Plugins
jQuery UI and Plugins
Marc Grabanski
 
jQuery
jQueryjQuery
jQuery
PumoTechnovation
 
JQuery Mobile UI
JQuery Mobile UIJQuery Mobile UI
JQuery Mobile UI
My own sweet home!
 
Bootstrap [part 2]
Bootstrap [part 2]Bootstrap [part 2]
Bootstrap [part 2]
Ghanshyam Patel
 
Vue.js - zastosowanie i budowa komponentów
Vue.js - zastosowanie i budowa komponentówVue.js - zastosowanie i budowa komponentów
Vue.js - zastosowanie i budowa komponentów
Laravel Poland MeetUp
 
QCon 2015 - Thinking in components: A new paradigm for Web UI
QCon 2015 - Thinking in components: A new paradigm for Web UIQCon 2015 - Thinking in components: A new paradigm for Web UI
QCon 2015 - Thinking in components: A new paradigm for Web UI
Oliver Häger
 
Nagios Conference 2014 - Troy Lea - JavaScript and jQuery - Nagios XI Tips, T...
Nagios Conference 2014 - Troy Lea - JavaScript and jQuery - Nagios XI Tips, T...Nagios Conference 2014 - Troy Lea - JavaScript and jQuery - Nagios XI Tips, T...
Nagios Conference 2014 - Troy Lea - JavaScript and jQuery - Nagios XI Tips, T...
Nagios
 
Angular js quickstart
Angular js quickstartAngular js quickstart
Angular js quickstart
LinkMe Srl
 
multiple views and routing
multiple views and routingmultiple views and routing
multiple views and routing
Brajesh Yadav
 
Once Source to Rule Them All
Once Source to Rule Them AllOnce Source to Rule Them All
Once Source to Rule Them All
David Yeiser
 
Understanding form helpers
Understanding form helpersUnderstanding form helpers
Understanding form helpers
Bruno Almeida
 
HTML5 and the dawn of rich mobile web applications pt 2
HTML5 and the dawn of rich mobile web applications pt 2HTML5 and the dawn of rich mobile web applications pt 2
HTML5 and the dawn of rich mobile web applications pt 2
James Pearce
 
HTML5 New and Improved
HTML5   New and ImprovedHTML5   New and Improved
HTML5 New and Improved
Timothy Fisher
 
Building iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoBuilding iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" Domino
Rob Bontekoe
 
Your Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages SuckYour Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages Suck
Anthony Montalbano
 
Getting to Know Bootstrap for Rapid Web Development
Getting to Know Bootstrap for Rapid Web DevelopmentGetting to Know Bootstrap for Rapid Web Development
Getting to Know Bootstrap for Rapid Web Development
Laurence Svekis ✔
 
Ad

Recently uploaded (20)

Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Mastering Advance Window Functions in SQL.pdf
Mastering Advance Window Functions in SQL.pdfMastering Advance Window Functions in SQL.pdf
Mastering Advance Window Functions in SQL.pdf
Spiral Mantra
 
Social Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTechSocial Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTech
Steve Jonas
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Mastering Advance Window Functions in SQL.pdf
Mastering Advance Window Functions in SQL.pdfMastering Advance Window Functions in SQL.pdf
Mastering Advance Window Functions in SQL.pdf
Spiral Mantra
 
Social Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTechSocial Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTech
Steve Jonas
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 

jQuery Mobile Introduction ( demo on EZoapp )

  • 2. What is jQuery Mobile?
  • 4. So simple, we all know it!
  • 5. But, What is jQuery Mobile? Can we eat it?
  • 6. Features Powerful Ajax-powered navigation system HTML5 Markup-driven configuration Built on jQuery core Responsive design Progressive enhancement Touch and mouse event support Lightweight size Compatible with all major mobile, tablet, e-reader & desktop platforms Unified UI widgets
  • 7. However, I heard that jQuery Mobile is fat
  • 8. jQuery Mobile Version 1.4.3 Significantly improved performance than ever
  • 10. Let’s Learn jQuery Mobile!
  • 11. <link rel="stylesheet" href="jquery.mobile.min.css" /> <script src="jquery.min.js"></script> <script src="jquery.mobile.min.js"></script> jQuery Mobile preloaded program
  • 12. <head> <title>jQuery Mobile</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile.min.css" /> <script src="http://code.jquery.com/jquery-1.4.3.min.js"></script> <script src="http://code.jquery.com/mobile/1.0a1/jquery.mobile.min.js"></script> </head> <body> <div data-role="page"> <div data-role="header"> <h1>header</h1> </div> <div class="ui-content"> <p>content</p> </div> <div data-role="footer"> <h4>footer</h4> </div> </div> </body> First step
  • 13. <div id="page1" data-role="page"> <div role="main" class="ui-content"></div> </div> <div id="page2" data-role="page"> <div role="main" class="ui-content"></div> </div> <div id="page3" data-role="page"> <div role="main" class="ui-content"></div> </div> JQuery Mobile is usually a multiple page However, only one of which is displayed, page id must be separated page
  • 14. page Feel Page on EZoApp http://goo.gl/EmXUY9
  • 15. ★ Use <href>, switch directly to the specified "Page Id" ★ Using "data-transition" set the transition effect ★ Set data-rel = "back" to return with the same effect page transition <a href="#pageID" data-transition="效果"></a> ★ You can also use javascript to do the switch ★ $.mobile.changePage('#PageID'); ★ $.mobile.changePage('#PageB' , {'transition':'Effect'} );
  • 16. ● default ● fade ● flip ● flow ● pop ● slide ● slidefade ● slideup ● slidedown ● turn ● none <a href="#pageID" data-transition="effect"></a> example: http://goo.gl/xwIR0F page transition
  • 17. Button <a href="#" class="ui-btn">Anchor</a> <button class="ui-btn">Button</button> Use the "class" generate button style <a href="#" class="ui-btn ui-btn-inline">Anchor</a> <button class="ui-btn ui-btn-inline">Button</button>
  • 18. Button ICON <button class="ui-btn ui-btn-icon-left ui-icon-action">action</button> <button class="ui-btn ui-btn-icon-left ui-icon-alert">alert</button> <button class="ui-btn ui-btn-icon-up ui-icon-arrow-d">arrow-d</button> <button class="ui-btn ui-btn-icon-right ui-icon-arrow-d-l">arrow-d-l</button> <button class="ui-btn ui-btn-icon-bottom ui-icon-arrow-d-r">arrow-d-r</button> <button class="ui-btn ui-btn-icon-left ui-icon-arrow-l">arrow-l</button> example: http://goo.gl/TQxnvm Use the "class" generate button style
  • 19. Grid <div class="ui-grid-b"> <div class="ui-block-a">Block A</div> <div class="ui-block-b">Block B</div> <div class="ui-block-c">Block C</div> </div> Use "class" generates Grid, you can put the Grid in Grid ui-grid-a : 2 columns,ui-grid-b:3 columns ui-grid-c:4 columns,ui-grid-d:5 columns example: http://goo.gl/AizA2f
  • 20. Input <div class="ui-field-contain"> <label for="#text_id">Title</label> <input type="text" name="" id="#text_id"> </div> <div class="ui-field-contain"> <label for="#textarea_id">Title</label> <textarea name="" id="#textarea_id"></textarea> </div> <div class="ui-field-contain"> <label for="#search_id">Title</label> <input type="search" name="" id="#search_id"> </div> example: http://goo.gl/XOXJPH
  • 21. theme Use "class" have different themes 按鈕: <a href="#" class="ui-btn ui-btn-a">Theme A</a> <a href="#" class="ui-btn ui-btn-b">Theme B</a> navbar: <div data-role="navbar"> <ul> <li><a data-theme="a">Theme A</a></li> <li><a data-theme="b">Theme B</a></li> </ul> </div> example: http://goo.gl/E8QcW9
  • 22. Some examples of the above, we see that "class" is very important
  • 24. Of course ! The second is also very important: data attribute 2
  • 25. What is data attribute?
  • 26. The data-* attributes is used to store custom data private to the page or application. The data-* attributes gives us the ability to embed custom data attributes on all HTML elements. jQuery Mobile data attribute http://api.jquerymobile.com/data-attribute/
  • 27. Header & Footer <div data-role="header" data-position="fixed"> <h1>header</h1> </div> <div data-role="footer" data-position="fixed"> <h4>footer</h4> </div> example: http://goo.gl/YpuDEY
  • 28. Navbar <div data-role="navbar"> <ul> <li><a href="#">One</a></li> <li><a href="#">Two</a></li> </ul> </div> example: http://goo.gl/3nwwe1
  • 29. Radio button <form> <fieldset data-role="controlgroup" data-type="horizontal"> <legend>Horizontal:</legend> <input type="radio" name="radio-choice-h-2" id="radio-choice-h-2a" value="on" checked="checked"> <label for="radio-choice-h-2a">One</label> <input type="radio" name="radio-choice-h-2" id="radio-choice-h-2b" value="off"> <label for="radio-choice-h-2b">Two</label> <input type="radio" name="radio-choice-h-2" id="radio-choice-h-2c" value="other"> <label for="radio-choice-h-2c">Three</label> </fieldset> </form> example: http://goo.gl/Vh67Vf
  • 30. Check box <form> <fieldset data-role="controlgroup"> <legend>Vertical:</legend> <input type="checkbox" name="checkbox-v-2a" id="checkbox-v-2a"> <label for="checkbox-v-2a">One</label> <input type="checkbox" name="checkbox-v-2b" id="checkbox-v-2b"> <label for="checkbox-v-2b">Two</label> <input type="checkbox" name="checkbox-v-2c" id="checkbox-v-2c"> <label for="checkbox-v-2c">Three</label> </fieldset> </form> example: http://goo.gl/x7vfGr
  • 31. Flip switch <form> <label for="flip-2">Flip toggle switch:</label> <select name="flip-2" id="flip-2" data- role="flipswitch" data-theme="b"> <option value="off">Off</option> <option value="on">On</option> </select> </form> example: http://goo.gl/83Mn0z
  • 32. Listview <ul data-role="listview" data-inset="true" data-divider-theme="a"> <li data-role="list-divider">Mail</li> <li><a href="#">Inbox</a></li> <li><a href="#">Outbox</a></li> <li data-role="list- divider">Contacts</li> <li><a href="#">Friends</a></li> <li><a href="#">Work</a></li> </ul> Use "data-role" to easily create "listview (filter)" example: http://goo.gl/XjmWug
  • 33. Popup <a href="#popupID" data-rel="popup" class="ui-btn" data- transition="pop">Popup</a> <div data-role="popup" id="popupID"> <p>popup 內容</p> </div> example: http://goo.gl/7rcO1C
  • 34. Table <table data-role="table" id="table-column-toggle" data- mode="columntoggle" class="ui-responsive table-stroke"> <thead> 內容省略 </thead> <tbody> 內容省略 </tbody> </table> http://goo.gl/pMJlkP (columntoggle / Reflow)
  • 35. Slide Panel <div id="left-menu" data-role="panel" data-position="left"> left menu </div> <div id="right-menu" data-role="panel" data- position="right"> right menu </div> It is like App slider menu example: http://goo.gl/jM6sU3
  • 36. How to make "jQuery Mobile" work? How ?
  • 37. Events Page (function (){ $(document).on( "pageinit" , "#pageID" , function(){ // Page first loads will be executed }); })() (function (){ $(document).on( "pageshow" , "#pageID" , function(){ // Will be executed after the page is displayed }); })() http://goo.gl/0Zwgnd
  • 38. $('#id').on('tap', function () {}); $('#id').on('taphold', function () {}); $('#id').on('swipe', function () {}); $('#id').on('swipeleft', function () {}); $('#id').on('swiperight', function () {}); Five kinds of pages touch events http://goo.gl/S5bJNq Events Touch
  • 39. $(window).on('orientationchange', function (event) {}); Detect rotation event for mobile devices http://goo.gl/HnE1Fe Events orientationchange
  • 40. After a series of presentations Everyone should understand a little jQuery Mobile right? ? ? ? ? ?
  • 41. Let's look at some examples of jQuery Mobile
  • 42. Example 1 : Change font size http://goo.gl/ov5WEf
  • 45. Example 4 : EZoApp Map http://goo.gl/UZp0Vb
  • 46. The above is a basic introduction to jQuery Mobile If you are interested, you can learn more on the official website http://jquerymobile.com/