Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 76 lines (61 sloc) 2.55 KB
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/jquery.mobile-1.0.1.min.css"/>
<!-- The Templates -->
<script type="text/template" id="home">
<div data-role="header">
<h1>Backbone.js + jQuery Mobile</h1>
</div>
<div data-role="content">
<h3>Application Template for using Backbone.js and jQuery Mobile.</h3>
<p>Backbone.js is used for code organization (Models, Views) and "routing".</p>
<p>jQuery Mobile is used for its mobile styles and widgets. The routing and navigation capabilities of jQuery Mobile are disbled to let Backbone.js handle these requirements.</p>
<p>This is the Home page. It was created dynamically using an underscore.js template.</p>
<p>Navigate to:</p>
<ul data-role="listview" data-inset="true">
<li><a href="#page1">Page 1</a></li>
<li><a href="#page2">Page 2</a></li>
</ul>
</div>
</script>
<script type="text/template" id="page1">
<div data-role="header">
<a href="#" data-icon="back" class="back ui-btn-left">Back</a>
<h1>Page 1</h1>
</div>
<div data-role="content">
<p>This is Page 1. It was created dynamically using an underscore.js template.</p>
<p>Navigate to:</p>
<ul data-role="listview" data-inset="true">
<li><a href="#">Home</a></li>
<li><a href="#page2">Page 2</a></li>
</ul>
</div>
</script>
<script type="text/template" id="page2">
<div data-role="header">
<a href="#" data-icon="back" class="back ui-btn-left">Back</a>
<h1>Page 2</h1>
</div>
<div data-role="content">
<p>This is Page 2. It was created dynamically using an underscore.js template.</p>
<p>Navigate to:</p>
<ul data-role="listview" data-inset="true">
<li><a href="#">Home</a></li>
<li><a href="#page1">Page 1</a></li>
</ul>
</div>
</script>
<!-- The Scripts -->
<script src="lib/jquery-1.7.1.min.js"></script>
<script src="js/jqm-config.js"></script>
<script src="lib/jquery.mobile-1.0.1.min.js"></script>
<script src="lib/underscore-min.js"></script>
<script src="lib/backbone-min.js"></script>
<script src="js/main.js"></script>
</head>
<body></body>
</html>