Skip to content

Instantly share code, notes, and snippets.

@rbarfoed
Created February 11, 2011 10:38
Show Gist options
  • Save rbarfoed/822195 to your computer and use it in GitHub Desktop.
Save rbarfoed/822195 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Multipage test</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css" />
<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js"></script>
</head>
<body>
<div data-role="page" id="mainpage">
<div data-role="header">
<h1>Multi-page example</h1>
</div>
<div data-role="content">
<p><a href="#thedialog" data-rel="page">Go to next page</a></p>
</div>
<div data-role="footer">
<h4>Page Footer</h4>
</div>
</div>
<div data-role="page" id="thedialog">
<div data-role="header">
<h1>Our next page</h1>
</div>
<div data-role="content">
<p><a href="#mainpage">Go back to the main page</a></p>
</div>
<div data-role="footer">
<h4>Page Footer</h4>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment