This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Panels: First pass at removing dependency on page.
- Loading branch information
Showing
4 changed files
with
461 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Panels - 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="../../favicon.ico"> | ||
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700"> | ||
<script src="../../../js/jquery.js"></script> | ||
<script src="../../_assets/js/"></script> | ||
<script src="../../../js/"></script> | ||
<script> | ||
$(function(){ | ||
$("body>[data-role='panel']").panel() | ||
|
||
}); | ||
</script> | ||
</head> | ||
<body> | ||
<div data-role="page" class="jqm-demos" data-quicklinks="true"> | ||
|
||
<!-- default panel --> | ||
<div data-role="panel" id="defaultpanel"> | ||
|
||
<h3>Default panel options</h3> | ||
<p>This panel has all the default options: positioned on the left with the reveal display mode. The panel markup is <em>before</em> the header, content and footer in the source order.</p> | ||
<p>To close, click off the panel, swipe left or right, hit the Esc key, or use the button below:</p> | ||
<a href="#demo-links" data-rel="close" data-role="button" data-theme="c" data-icon="delete" data-inline="true">Close panel</a> | ||
|
||
</div><!-- /default panel --> | ||
|
||
<!-- Note: all other panels are at the end of the page, scroll down --> | ||
|
||
<div data-role="header" class="jqm-header"> | ||
<h1 class="jqm-logo"><a href="../../"><img src="../../_assets/img/jquery-logo.png" alt="jQuery Mobile Framework"></a></h1> | ||
<a href="#" class="jqm-navmenu-link" data-icon="bars" data-iconpos="notext">Navigation</a> | ||
<a href="#" class="jqm-search-link" data-icon="search" data-iconpos="notext">Search</a> | ||
<?php include( '../../search.php' ); ?> | ||
</div><!-- /header --> | ||
|
||
<div data-role="content" class="jqm-content"> | ||
|
||
<h1>External Panels Page 2<a href="http://api.jquerymobile.com/panel/" data-ajax="false" data-role="button" data-inline="true" data-mini="true" data-icon="arrow-r" data-iconpos="right" class="jqm-api-link">API</a></h1> | ||
|
||
<p class="jqm-intro">Flexible by design, panels can be used for navigation, forms, inspectors and more.</p> | ||
|
||
<h2 id="panel-examples">External Panels - These panels only exist if you navigated here from page 1. to try this refresh the page and try the links they will not work.</h2> | ||
|
||
<p>The panels below are all located outside the page</p> | ||
|
||
<p><strong>Left</strong> panel examples</p> | ||
<a href="#leftpanel3" data-role="button" data-inline="true" data-mini="true">Overlay</a> | ||
<a href="#leftpanel1" data-role="button" data-inline="true" data-mini="true">Reveal</a> | ||
<a href="#leftpanel2" data-role="button" data-inline="true" data-mini="true">Push</a> | ||
|
||
<p><strong>Right</strong> panel examples</p> | ||
<a href="#rightpanel3" data-role="button" data-inline="true" data-mini="true">Overlay</a> | ||
<a href="#rightpanel1" data-role="button" data-inline="true" data-mini="true">Reveal</a> | ||
<a href="#rightpanel2" data-role="button" data-inline="true" data-mini="true">Push</a> | ||
|
||
</div><!-- /content --> | ||
|
||
<div data-role="footer" class="jqm-footer"> | ||
<p class="jqm-version"></p> | ||
<p>Copyright 2013 The jQuery Foundation</p> | ||
</div><!-- /footer --> | ||
|
||
<!-- Here are a bunch of panels at the end, just before the close page tag --> | ||
|
||
<!-- leftpanel1 --> | ||
|
||
|
||
<?php include( '../../global-nav.php' ); ?> | ||
|
||
</div><!-- /page --> | ||
</body> | ||
</html> |
Oops, something went wrong.