Skip to content

Instantly share code, notes, and snippets.

@nate8684
Created April 17, 2012 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nate8684/2406606 to your computer and use it in GitHub Desktop.
Save nate8684/2406606 to your computer and use it in GitHub Desktop.
Index Page
<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.1.0/jquery.mobile-1.1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>Home Page</h1>
</div><!-- /header -->
<div data-role="content">
<p>Hello world</p>
</div><!-- /content -->
<!-- ========== NAVIGATION ========================== -->
<div data-role="footer" data-id="foo1" data-position="fixed" class="navigation">
<div data-role="navbar">
<ul>
<li><a href="index.html" class="ui-btn-active ui-state-persist" id="home" data-iconpos="top" data-icon="custom" data-transition="slide">Home</a></li>
<li><a href="test2.html" data-iconpos="top" data-icon="custom" id="where" data-transition="slide">Page2</a></li>
</ul>
</div><!-- /navbar -->
</div><!-- /footer -->
</div><!-- /page -->
</body>
</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.1.0/jquery.mobile-1.1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>Page 2</h1>
</div><!-- /header -->
<div data-role="content">
<p>This is the second page of hello world.</p>
</div><!-- /content -->
<!-- ========== NAVIGATION ========================== -->
<div data-role="footer" data-id="foo1" data-position="fixed" class="navigation">
<div data-role="navbar">
<ul>
<li><a href="index.html" id="home" data-iconpos="top" data-icon="custom" data-transition="slide">Home</a></li>
<li><a href="test2.html" class="ui-btn-active ui-state-persist" data-iconpos="top" data-icon="custom" id="where" data-transition="slide">Page2</a></li>
</ul>
</div><!-- /navbar -->
</div><!-- /footer -->
</div><!-- /page -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment