forked from ccoenraets/backbone-jquerymobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·76 lines (61 loc) · 2.55 KB
/
index.html
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
<!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>