Professional Documents
Culture Documents
J Query Mobile
J Query Mobile
JQuery Mobile
By Trevor Seeney
Agenda
AUserInterfaceFramework
<html>
<head>
<link rel="stylesheet" .css>
<script src="http:// ...js"></script>
</head>
<body>
<div data-role="page" data-theme="a">
<div data-role="header">
,,,,,,,,,,
</div>
<div data-role="content">
,,,,,,,,,,
</div>
<div data-role="footer">
,,,,,,,,,,
</div>
</div>
</body>
</html>
Lets Code
<!DOCTYPE html>
<html> <head>
<title>My first jQuery Mobile code</title>
<link rel="stylesheet"
href="http://code.jquery.com/mobile/1.2.0/jquery.mobile1.2.0.min.css">
<script src="http://code.jquery.com/jquery1.8.2.min.js"></script>
<script
src="http://code.jquery.com/mobile/1.2.0/jquery.mobile1.2.0.min.js"></script>
</head>
<body>
<div data-role="page" data-theme="a">
<div data-role="header">
<h1>jQuery Mobile</h1>
</div>
Roles
1.
data-page
data-header
data-content
data-footer
data-theme
2.
3.
4.
5.
Additional Roles
data-role='collapsible'
datarole="controlgroup"
datatype="horizontal"
Elements
More Elements
Table Styling
Themes
Swatches
5 Basic swatches
Black, Blue, Light Grey, Dark Gray and
Yellow
More on Swatches
Theme Roller
Theme Roller
Themes can be
saved as .CSS files
which in turn can
be
be included
included into
into
your
your site.
site.
A
A Custom
Custom Theme
Theme
Slide-in Panels
A Real Application
Order Menu
Selection Table
Order Entry
Summary