Skip to content
Newer
Older
100755 106 lines (85 sloc) 3.73 KB
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
1 <!DOCTYPE html>
7d6f0c8 @SidneyAllen initial commit
authored Jun 20, 2012
2 <html>
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
3 <head>
9caedf8 @SidneyAllen update
authored Aug 8, 2012
4 <title>StackMob - BootStrap</title>
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
5
7d6f0c8 @SidneyAllen initial commit
authored Jun 21, 2012
6
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
7 <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
8
7d6f0c8 @SidneyAllen initial commit
authored Jun 21, 2012
9
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
10 <!-- templates -->
11 <script type="text/template" id="listItemTemplate">
12 <li>
13 <a href="#update/<%= todo_id %>" data-id="<%= todo_id %>"><%= name %></a>
14 </li>
15 </script>
7d6f0c8 @SidneyAllen initial commit
authored Jun 21, 2012
16
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
17 <script type="text/template" id="login">
eaac2c2 @SidneyAllen update
authored Jul 11, 2012
18 <div data-role="header">
19 <a href="#" data-icon="back" class="back ui-btn-left">Back</a>
20 <h1>Add ToDo</h1>
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
21 </div>
22 <div data-role="content">
23 <form id="loginForm" name="loginForm">
24 <input type="text" name="username" id="username">
25 <input type="password" name="password" id="password">
f4e28a9 @SidneyAllen update
authored Aug 8, 2012
26 <input type="submit" name="submitBtn" id="submitBtn" value="Login">
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
27 </form>
28 </div>
29 </script>
7d6f0c8 @SidneyAllen initial commit
authored Jun 21, 2012
30
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
31 <script type="text/template" id="home">
32 <div data-role="header">
33 <a href="#add" data-role="button" data-icon="add">Add</a>
e45b1fb @SidneyAllen updated code
authored Oct 3, 2012
34 <h1>StackMob ToDo</h1>
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
35 <a href="#login" data-role="button" data-icon="add">Login</a>
36 </div>
37 <div data-role="content"></div>
38 </script>
39
40 <script type="text/template" id="add">
41 <div data-role="header">
42 <a href="#" data-icon="back" class="back ui-btn-left">Back</a>
43 <h1>Add ToDo</h1>
44 </div>
45 <div data-role="content">
46 <form name="addForm" id="addForm">
47 <input type="text" name="name" id="name" placeholder="new tod" value="">
48 <input type="button" id="addBtn" value="add">
49 </form>
50 </div>
51 </script>
52
53 <script type="text/template" id="update">
54 <div data-role="header">
55 <a href="#" data-icon="back" class="back ui-btn-left">Back</a>
56 <h1>Update ToDo</h1>
57 </div>
58 <div data-role="content">
59 <form name="updateForm" id="updateForm">
60 <input type="text" name="name" id="name" value="<%= name %>">
61 <input type="button" id="updateBtn" value="save">
62 <input type="button" id="deleteBtn" value="delete">
63 </form>
64 </div>
65 </script>
7d6f0c8 @SidneyAllen initial commit
authored Jun 21, 2012
66
f4e28a9 @SidneyAllen update
authored Aug 8, 2012
67
68 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
7d6f0c8 @SidneyAllen initial commit
authored Jun 21, 2012
69
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
70 <script type="text/javascript">
71 $(document).bind("mobileinit", function(){
72 $.mobile.page.prototype.options.addBackBtn= false;
73 $.mobile.ajaxEnabled = false;
74 $.mobile.linkBindingEnabled = false;
75 $.mobile.hashListeningEnabled = false;
76 $.mobile.pushStateEnabled = false;
7d6f0c8 @SidneyAllen initial commit
authored Jun 21, 2012
77
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
78 // Remove page from DOM when it's being replaced
79 $('div[data-role="page"]').live('pagehide', function (event, ui) {
80 $(event.currentTarget).remove();
81 });
7d6f0c8 @SidneyAllen initial commit
authored Jun 21, 2012
82 });
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
83 </script>
84
85 <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
86
f4e28a9 @SidneyAllen update
authored Aug 8, 2012
87
88 <script type="text/javascript" src="http://static.stackmob.com/js/json2-min.js"></script>
89 <script type="text/javascript" src="http://static.stackmob.com/js/underscore-1.3.3-min.js"></script>
90 <script type="text/javascript" src="http://static.stackmob.com/js/backbone-0.9.2-min.js"></script>
91 <script type="text/javascript" src="http://static.stackmob.com/js/2.5.3-crypto-sha1-hmac.js"></script>
92 <script type="text/javascript" src="http://static.stackmob.com/js/stackmob-js-0.5.5-min.js"></script>
93
94
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
95
96 <!-- App specific scripts -->
97 <script src="js/app.js"></script>
98
99 <!-- maximum scale added to stop zoom on select controls -->
100 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
101 </head>
102 <body>
7d6f0c8 @SidneyAllen initial commit
authored Jun 21, 2012
103
b1636a6 @SidneyAllen add new login form
authored Jun 21, 2012
104 </body>
105 </html>
Something went wrong with that request. Please try again.