1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
<!doctype html>
<html class="no-js ui-mobile-rendering" lang="en">
<head>
<title>Backbone.js, Require.js, and jQuery Mobile</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../css/themes/default/jquery.mobile-1.4.5.min.css">
<script src="//cdn.jsdelivr.net/requirejs/2.1.8/require.min.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<div id="categories" data-role="page" data-title="Categories">
<div data-role="header">
<h1>Categories</h1>
</div><!-- /header -->
<div role="main" class="ui-content">
<h2>Select a Category Below:</h2>
<ul data-role="listview" data-inset="true" class="ui-listview ui-listview-inset ui-corner-all ui-shadow">
<li class="ui-first-child">
<a href="#category?animals" class="animals ui-btn ui-btn-icon-right ui-icon-carat-r">Animals</a>
</li>
<li>
<a href="#category?colors" class="colors ui-btn ui-btn-icon-right ui-icon-carat-r">Colors</a>
</li>
<li class="ui-last-child">
<a href="#category?vehicles" class="vehicles ui-btn ui-btn-icon-right ui-icon-carat-r">Vehicles</a>
</li>
</ul>
</div><!-- /content -->
</div>
<div id="animals" data-role="page" data-title="Animals">
<div data-role="header">
<h1>Animals</h1>
</div><!-- /header -->
<div role="main" class="ui-content">
<ul data-role="listview" data-inset="true">
</ul>
</div><!-- /content -->
</div>
<div id="colors" data-role="page" data-title="Colors">
<div data-role="header">
<h1>Colors</h1>
</div><!-- /header -->
<div role="main" class="ui-content">
<ul data-role="listview" data-inset="true">
</ul>
</div><!-- /content -->
</div>
<div id="vehicles" data-role="page" data-title="Vehicles">
<div data-role="header">
<h1>Vehicles</h1>
</div><!-- /header -->
<div role="main" class="ui-content">
<ul data-role="listview" data-inset="true">
</ul>
</div><!-- /content -->
</div>
<!-- Underscore Template that is used to display all of the Category Models -->
<script id="categoryItems" type="text/template">
<% _.each( collection.toJSON(), function( category, id ) { %>
<li class="ui-li-static">
<%= category.type %>
</li>
<% }); %>
</script>
</body>
</html>
|