Permalink
Browse files

Demos: Re-org & cleanup of pages

  • Loading branch information...
1 parent 900ab1c commit 740aa72d867b7cd27cb224da7f62035bb5b1c7ea @toddparker toddparker committed Feb 7, 2013
@@ -98,7 +98,9 @@ body, .jqm-demos {
}
/* Paragraphs */
-.jqm-content > p {
+.jqm-content > p,
+.jqm-list
+ {
font-family: 'Open Sans', sans-serif;
font-weight: 400;
font-size: 0.95em;
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Guides - jQuery Mobile Demos</title>
- <link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css">
- <link rel="stylesheet" href="../_assets/css/jqm-demos.css">
- <link rel="shortcut icon" href="../_assets/favicon.ico">
- <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400' rel='stylesheet' type='text/css'>
- <script src="../../../js/jquery.js"></script>
- <script src="../_assets/js/"></script>
- <script src="../../../js/"></script>
-</head>
-<body>
-<div data-role="page" class="jqm-demos jqm-demos-index">
-
- <div data-role="header" class="jqm-header" data-theme="f">
- <h1>jQuery Mobile</h1>
- <a href="#panel-nav" data-icon="bars" data-iconpos="notext">Navigation</a>
- <a href="../" data-icon="home" data-iconpos="notext" data-ajax="false">Home</a>
- </div><!-- /header -->
-
- <div data-role="content" class="jqm-content">
-
- <h1>Guides</h1>
-
- <p class="jqm-intro">Articles and tutorials that cover everything from getting started with jQuery Mobile to building apps and advanced scripting.</p>
-
- <ul data-role="listview" data-inset="true" data-filter="true" data-theme="d" data-divider-theme="d" data-icon="false" class="jqm-list">
- <li data-role="list-divider">The basics</li>
- <li><a href="#">Introduction: features &amp; goals</a></li>
- <li><a href="#">Getting started guide</a></li>
- <li><a href="#">The AJAX navigation system</a></li>
- <li><a href="#">Theme framework overview</a></li>
- <li data-role="list-divider">Advanced topics</li>
- <li><a href="#">Developer guide</a></li>
- <li><a href="#">Creating apps with PhoneGap/Cordova</a></li>
- <li><a href="#">Backbone and jQuery Mobile</a></li>
- </ul>
-
-
- </div><!-- /content -->
-
- <div data-role="footer" class="jqm-footer" data-theme="c">
- <p class="jqm-version"></p>
- <p>Copyright 2013 The jQuery Foundation</p>
- </div><!-- /jqm-footer -->
-
-<?php include( '../nav.html' ); ?>
-
-</div><!-- /page -->
-</body>
-</html>
View
@@ -26,15 +26,14 @@ <h1 id="jqm-logo"><img src="_assets/img/jquery-logo.png" alt="jQuery Mobile Fram
<p class="jqm-intro">Welcome. This is an in-progress re-design of the jQuery Mobile demos site.</p>
<ul data-role="listview" data-inset="true" data-theme="d" data-icon="false" data-filter-placeholder="Search..." class="jqm-list wrap-text">
- <li><a href="guides/"><h2>Guides</h2><p>Helpful articles and tutorials to get you up to speed.</p></a></li>
- <li><a href="demos/"><h2>Demos</h2><p>Examples of how to customize and extend jQuery Mobile.</p></a></li>
+ <li><a href="intro/"><h2>Introduction</h2><p>New to jQuery Mobile? Start here</p></a></li>
+ <li><a href="demos/"><h2>Demo showcase</h2><p>Examples of how to customize and extend jQuery Mobile.</p></a></li>
<li><a href="faq/"><h2>Questions &amp; Answers</h2><p>Common issues and questions, explained.</p></a></li>
</ul>
- <h2>Widget showcase</h2>
+ <h2>Widget reference</h2>
<ul data-role="listview" data-inset="true" data-filter="true" data-theme="d" data-divider-theme="d" data-icon="false" data-filter-placeholder="Search..." class="jqm-list">
- <li data-role="list-divider">Widget reference</li>
<li><a href="widgets/accordions/">Accordion</a></li>
<li><a href="widgets/navigation/">AJAX Navigation</a></li>
<li><a href="widgets/autocomplete/">Autocomplete</a></li>
@@ -43,6 +42,7 @@ <h1 id="jqm-logo"><img src="_assets/img/jquery-logo.png" alt="jQuery Mobile Fram
<li><a href="widgets/collapsibles/">Collapsibles</a></li>
<li><a href="widgets/controlgroups/">Controlgroup</a></li>
<li><a href="widgets/dialog/">Dialog</a></li>
+ <li><a href="widgets/headers/bars-fixed.html">Fixed toolbars</a></li>
<li><a href="widgets/sliders/switch.html">Flip switch toggle</a></li>
<li><a href="widgets/footers/">Footer toolbar</a></li>
<li><a href="widgets/forms/">Form elements</a></li>
View
@@ -0,0 +1,152 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Introduction - jQuery Mobile Demos</title>
+ <link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css">
+ <link rel="stylesheet" href="../_assets/css/jqm-demos.css">
+ <link rel="shortcut icon" href="../_assets/favicon.ico">
+ <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400' rel='stylesheet' type='text/css'>
+ <script src="../../../js/jquery.js"></script>
+ <script src="../_assets/js/"></script>
+ <script src="../../../js/"></script>
+</head>
+<body>
+<div data-role="page" class="jqm-demos">
+
+ <div data-role="header" class="jqm-header" data-theme="f">
+ <h1>jQuery Mobile</h1>
+ <a href="#panel-nav" data-icon="bars" data-iconpos="notext">Navigation</a>
+ <a href="../" data-icon="home" data-iconpos="notext" data-ajax="false">Home</a>
+ </div><!-- /header -->
+
+ <div data-role="content" class="jqm-content">
+
+ <h1>Introduction</h1>
+
+ <p class="jqm-intro">jQuery Mobile is a touch-friendly UI framework that works across all popular mobile, tablet and desktop platforms, built atop jQuery.
+ <a href="#ajaxnav-sections" class="jqm-sections-link">Jump to section <span class="ui-icon ui-icon-bars">&nbsp;</span></a>
+ </p>
+
+
+ <h2 id="nav-intro">Introduction</h2>
+
+ <p>jQuery's mobile is a user interface framework based on jQuery that works across all popular phones, tablet, e-reader, and desktop platforms. Built with accessibility and universal access in mind, we follow progressive enhancement and <a href="../widgets/grids/rwd.html">responsive web design (RWD)</a> principles. HTML5 Markup-driven configuration makes it easy to learn, but a powerful <a href="api.jquerymobile.com">API</a> makes it easy to deeply customize the library.</p>
+
+
+
+
+ <h2 id="nav-intro">Pages & Dialogs</h2>
+
+ <p>A <a href="../widgets/pages/">page</a> in jQuery Mobile consists of an element with a <code> data-role="page"</code> attribute. Within the "page" container, any valid HTML markup can be used, but for typical pages in jQuery Mobile, the immediate children of a "page" are divs with data-roles of <code>"header"</code>, <code>"content"</code>, and <code>"footer"</code>. The baseline requirement for a page is only the page wrapper to support the navigation system, the rest is optional. </p>
+
+ <p>A page can be styled as a <a href="../widgets/dialog/">dialog</a> that makes the page look like it's a modal style overlay. To give a standard page the appearance of a modal dialog, add the <strong>data-rel="dialog"</strong> attribute to the link. Transitions can also be set on dialog links.</p>
+
+
+
+ <h2 id="nav-intro">AJAX Navigation & Transitions</h2>
+
+ <p>jQuery Mobile includes a <a href="../widgets/navigation/">AJAX navigation system</a> to support a rich set of animated page <a href="../widgets/transitions/">transitions</a> by automatically 'hijacking' standard links and form submissions and turning them as an AJAX request. The back button is fully supported and there are features to prefetch &amp; cache, dynamically inject, and script pages for advanced use cases.</p>
+
+ <p>Whenever a link is clicked or a form is submitted, that event is automatically intercepted by the AJAX nav system and is used to issue a AJAX request based on the <code>href</code> or form action instead of reloading the page. While the framework waits for the AJAX response, a loader overlay is displayed.</p>
+
+ <p>When the requested page loads, the jQuery Mobile parses the document for an element with the <code> data-role="page"</code> attribute and inserts that code into the DOM of the original page. Next, any widgets in the incoming page are enhanced to apply all the styles and behavior. The rest of the incoming page is discarded so any scripts, stylesheets or other information in the <code></code> will not be included. The framework will also note the title of the incoming page to update the title when the new page is transitioned into view.</p>
+
+
+ <p>Now that the requested page is now in the DOM and enhanced, it is animated into view with a <a href="../transitions/">transition</a>. By default, the framework applies a <strong>fade</strong> transition. To set a custom transition effect, add the <code>data-transition</code> attribute to the link. </p>
+
+
+ <h2>Content & Widgets</h2>
+
+ <p>Inside your content container, you can add 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 <code>head</code> after the jQuery Mobile stylesheet.</p>
+
+ <p>jQuery Mobile includes a wide range of touch-friendly UI widgets: <a href="../widgets/buttons/index.html">buttons</a>, <a href="../widgets/forms/index.html">form elements</a>, <a href="../widgets/collapsibles/index.html">collapsibles</a>, <a href="../widgets/accordions/index.html">accordions</a> and much more. For best performance, use the <a href="http://jquerymobile.com/download-builder/" rel="external">download builder</a> to pick the components you need.</p>
+
+ <h2>Buttons</h2>
+ <p>There are a few ways to make <a href="../widgets/buttons" title="buttons-types">buttons</a>, but lets turn a link into a button so it's easy to click. Just start with a link and add a <code>data-role="button"</code> attribute to it. You can add an <a href="../icons">icon</a> with the <code>data-icon</code> attribute and optionally set its position with the <code>data-iconpos</code> attribute.</p>
+
+
+ <div data-demo-html="true">
+ <a href="#" data-role="button" data-icon="star">Star button</a>
+ </div><!--/demo-html -->
+
+
+
+ <h2>Listviews</h2>
+ <p>jQuery Mobile includes a diverse set of common <a href="../widgets/listviews" title="docs-lists">listviews</a> that are coded as lists with a <code>data-role="listview"</code> added. Here is a simple linked list that has a role of <code>listview</code>. We're going to make this look like an inset module by adding a <code>data-inset="true"</code> and add a dynamic search filter with the <code>data-filter="true"</code> attributes.</p>
+
+ <div data-demo-html="true">
+ <ul data-role="listview" data-inset="true" data-filter="true">
+ <li><a href="#">Acura</a></li>
+ <li><a href="#">Audi</a></li>
+ <li><a href="#">BMW</a></li>
+ <li><a href="#">Cadillac</a></li>
+ <li><a href="#">Ferrari</a></li>
+ </ul>
+ </div><!--/demo-html -->
+
+
+
+ <h2>Form elements</h2>
+ <p>The framework contains a full set of <a href="../widgets/forms">form elements</a> that automatically are enhanced into touch-friendly styled widgets. Here's a slider made with the new HTML5 input type of range, no <code>data-role</code> needed. Be sure to wrap these in a <code>form</code> element and always properly associate a <code>label</code> to every form element.</p>
+
+ <div data-demo-html="true">
+ <form>
+ <label for="textinput-s">Text Input:</label>
+ <input type="text" name="textinput-s" id="textinput-s" placeholder="Text input" value="" data-clear-btn="true">
+
+ <label for="select-native-s">Select:</label>
+ <select name="select-native-s" id="select-native-s">
+ <option value="small">One</option>
+ <option value="medium">Two</option>
+ <option value="large">Three</option>
+ </select>
+
+ <label for="slider-s">Input slider:</label>
+ <input type="range" name="slider-s" id="slider-s" value="25" min="0" max="100" data-highlight="true" />
+ </form>
+
+ </div><!--/demo-html -->
+
+
+ <h2>Responsive Design</h2>
+
+ <p>jQuery Mobile has always been designed to work within a <a href="../widgets/grids/rwd.html">responsive web design (RWD)</a> context and our docs and forms had a few responsive elements from the very start. All the widgets are built to be 100% flexible in width to fit easily inside any responsive layout system you choose to build. </p>
+
+ <p>The library also includes a number of responsive widgets such as <a href="../widgets/grids/">responsive grids</a>, two different ways to make tabular data responsive: <a href="../widgets/tables/reflow-basic.html">reflow</a> and <a href="../widgets/tables/column-basic.html">column chooser</a> modes, and <a href="../widgets/panels/">sliding panels</a>.</p>
+
+
+
+ <h2>Theming</h2>
+ <p>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 <code>data-theme="e"</code> 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. </p>
+ <p>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 and footers don't inherit, they default to swatch "a").</p>
+
+
+ <div data-demo-html="true">
+ <a href="#" data-role="button" data-icon="star" data-theme="a">data-theme="a"</a>
+ <a href="#" data-role="button" data-icon="star" data-theme="b">data-theme="b"</a>
+ <a href="#" data-role="button" data-icon="star" data-theme="c">data-theme="c"</a>
+ <a href="#" data-role="button" data-icon="star" data-theme="d">data-theme="d"</a>
+ <a href="#" data-role="button" data-icon="star" data-theme="e">data-theme="e"</a>
+ </div><!--/demo-html -->
+
+ <p>When you're ready to build a custom theme, use <a href="http://www.jquerymobile.com/themeroller" rel="external">ThemeRoller</a> to drag and drop, then download a custom theme.</p>
+
+
+
+
+
+ </div><!-- /content -->
+
+ <div data-role="footer" class="jqm-footer" data-theme="c">
+ <p class="jqm-version"></p>
+ <p>Copyright 2013 The jQuery Foundation</p>
+ </div><!-- /jqm-footer -->
+
+ <?php include( '../nav.html' ); ?>
+
+ </div><!-- /page -->
+ </body>
+ </html>
+
View
@@ -1,8 +1,8 @@
<div data-role="panel" id="panel-nav" class="jqm-nav-panel" data-position="left" data-display="overlay" data-theme="c">
<ul data-role="listview" data-inset="false" data-filter="true" data-theme="d" data-divider-theme="d" data-icon="false" data-filter-placeholder="Search..." class="jqm-list">
<li><a href="../../">Home</a></li>
- <li><a href="../../guides/">Guides</a></li>
- <li><a href="../../demos/">Demos</a></li>
+ <li><a href="../../intro/">Introduction</a></li>
+ <li><a href="../../demos/">Demo showcase</a></li>
<li><a href="../../faq/">Q&A</a></li>
<li data-role="list-divider">Widget reference</li>
<li><a href="../accordions/">Accordion</a></li>
@@ -13,6 +13,7 @@
<li><a href="../collapsibles/">Collapsible</a></li>
<li><a href="../controlgroups/">Controlgroup</a></li>
<li><a href="../dialog/">Dialog</a></li>
+ <li><a href="../headers/bars-fixed.html">Fixed toolbars</a></li>
<li><a href="../sliders/switch.html">Flip switch toggle</a></li>
<li><a href="../footers/">Footer toolbar</a></li>
<li><a href="../forms/">Form elements</a></li>
Oops, something went wrong.

0 comments on commit 740aa72

Please sign in to comment.