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.
Demos: Added single page template example. Fixes #5716
- Loading branch information
1 parent
7cbfa20
commit 6b41a21
Showing
3 changed files
with
40 additions
and
3 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
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
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,37 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Multi-page template</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"> | ||
<script src="../../../js/jquery.js"></script> | ||
<script src="../../_assets/js/"></script> | ||
<script src="../../../js/"></script> | ||
</head> | ||
|
||
<body> | ||
|
||
<div data-role="page"> | ||
|
||
<div data-role="header"> | ||
<h1>Single page</h1> | ||
</div><!-- /header --> | ||
|
||
<div data-role="content"> | ||
<p>This is a single page boilerplate template that you can copy to build your first jQuery Mobile page. Each link or form from here will pull a new page in via Ajax to support the animated page transitions.</p> | ||
<p>Just view the source and copy the code to get started. All the CSS and JS is linked to the jQuery CDN versions so this is super easy to set up. Remember to include a meta viewport tag in the head to set the zoom level.</p> | ||
<p>This template is standard HTML document with a single "page" container inside, unlike a <a href="multipage-template.html" data-ajax="false">multi-page template</a> that has multiple pages within it. We strongly recommend building your site or app as a series of separate pages like this because it's cleaner, more lightweight and works better without JavaScript.</p> | ||
</div><!-- /content --> | ||
|
||
<div data-role="footer"> | ||
<h4>Footer content</h4> | ||
</div><!-- /footer --> | ||
|
||
</div><!-- /page --> | ||
|
||
</body> | ||
</html> |