diff --git a/docs/_assets/images/version.png b/docs/_assets/images/version.png index 23dd95dd..51dbb3e4 100644 Binary files a/docs/_assets/images/version.png and b/docs/_assets/images/version.png differ diff --git a/docs/about/getting-started.html b/docs/about/getting-started.html index 5f1ebd20..28a9181b 100644 --- a/docs/about/getting-started.html +++ b/docs/about/getting-started.html @@ -31,44 +31,44 @@
jQuery Mobile provides a set of touch-friendly UI widgets and an AJAX-powered navigation system to support animated page transitions. Building your first jQuery Mobile page is easy, here's how:
Pop open your favorite text editor and paste in the page template below. In the head, a meta viewport tag and references to jQuery, jQuery Mobile and the mobile theme stylesheet from the CDN are all you need to get started. In the body, add a div with a data-role of page to hold your page contents.
Pop open your favorite text editor, paste in the page template below, save and open in a browser. You are now a mobile developer!
+Here's what's in the template. In the head, a meta viewport tag sets the screen width to the pixel width of the device and references to jQuery, jQuery Mobile and the mobile theme stylesheet from the CDN add all the styles and scripts.
In the body, a div with a data-role of page is the wrapper used to delineate a page, and the header bar (data-role="header") and content region (data-role="content") are added inside to create a basic page (these are both optional). These data- attributes are HTML5 attributes are used throughout jQuery Mobile to transform basic markup into an enhanced and styled widget.
-<!DOCTYPE html>
-<html>
-<head>
-<title>Page Title</title>
-
-<meta name="viewport" content="width=device-width, initial-scale=1">
-
-<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
-<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
-<script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>My Page</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
+ <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
+ <script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head>
-
<body>
- <div data-role="page">
- </div><!-- /page -->
+
+<div data-role="page">
+
+ <div data-role="header">
+ <h1>My Title</h1>
+ </div><!-- /header -->
+
+ <div data-role="content">
+ <p>Hello world</p>
+ </div><!-- /content -->
+
+</div><!-- /page -->
+
</body>
</html>
- All the normal HTML elements and styles work as you'd expect - headings, lists, paragraphs. Write your own custom styles to create custom layouts or designs by adding a custom stylesheet to the head and just go to town. There is no required markup in your page. In fact, even the page wrapper is optional.
- -There are a few ways to make buttons, but lets turn a link into a button so it's easy to click. Just start with a link and add a data-role="button" attribute to it. These special HTML5 data- attributes are used throughout jQuery Mobile to transform basic markup into a widget. You can add an icon with the data-icon attribute and optionally set its position with the data-iconpos attribute.
-<a href="#" data-role="button" data-icon="star">Star button</a>
-
-
- Star button
-
+ Inside your content container, you can add all any standard HTML elements - headings, lists, paragraphs, etc. You can write your own custom styles to create custom layouts by adding an additional stylesheet to the head after the jQuery Mobile stylesheet.
jQuery Mobile includes a diverse set of common listviews that are basically built from lists with a data-role="listview". Here is a simple linked list that has a role of listview. We're going to make this look like an inset module by adding a data-inset="true" and add a dynamic search filter with, you guessed it, data-filter="true".
jQuery Mobile includes a diverse set of common listviews that are coded as lists with a data-role="listview" added. Here is a simple linked list that has a role of listview. We're going to make this look like an inset module by adding a data-inset="true" and add a dynamic search filter with the data-filter="true" attributes.
<ul data-role="listview" data-inset="true" data-filter="true">
@@ -80,7 +80,6 @@
</ul>
-
- It's easy to make a collapsible block that can be toggled open and close to show or hide its content. Simply add the data-role="collapsible" attribute to a div container followed by a header element (H1-H6) and any HTML-Markup. jQuery Mobile will wrap your markup into a container, that is collapsed by default and hidden/shown when its header is clicked. Optionally you can set the content-background and border with the data-content-theme attribute like shown below.
-<div data-role="collapsible" data-content-theme="c">
- <h3>Click me to expand!</h3>
- <p>I'm the collapsible content block.</p>
-</div>
-
-
- I'm the collapsible content block.
-Add a header toolbar by adding a div. Set the data-role to header and add a heading tag inside (any heading from H1-H6 can be used).
<div data-role="header">
- <h1>My Page</h1>
-</div>
+
- There are a few ways to make buttons, but lets turn a link into a button so it's easy to click. Just start with a link and add a data-role="button" attribute to it. You can add an icon with the data-icon attribute and optionally set its position with the data-iconpos attribute.
+<a href="#" data-role="button" data-icon="star">Star button</a>
+
+
+ Star button
+
+
- Don't like black? Fine. jQuery Mobile has a robust theme framework that supports up to 26 sets of toolbar, content and button colors, called a "swatch". Just add a data-theme="e" attribute to the header div to turn it yellow. Try different swatch letters in default theme from a-e.
jQuery Mobile has a robust theme framework that supports up to 26 sets of toolbar, content and button colors, called a "swatch". Just add a data-theme="e" attribute to any of the widgets on this page: page, header, list, input for the slider, or button to turn it yellow. Try different swatch letters in default theme from a-e to mix and match swatches.
Cool party trick: add the theme swatch to the page and see how all the widgets inside the content will automatically inherit the theme (headers don't inherit, they default to swatch A).
-Extra credit: try adding a data-theme to any of the other widgets on this page: page wrapper, buttons, lists, even the input for the slider - same deal.
<a href="#" data-role="button" data-icon="star" data-theme="a">Button</a>
+
+ data-theme="a"
+ data-theme="b"
+ data-theme="c"
+ data-theme="d"
+ data-theme="e"
When you're ready to build a custom theme, use ThemeRoller to drag and drop, then download a custom theme.
diff --git a/docs/pages/multipage-template.html b/docs/pages/multipage-template.html index 2cd24806..6ca8320a 100755 --- a/docs/pages/multipage-template.html +++ b/docs/pages/multipage-template.html @@ -5,9 +5,9 @@