Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 129 lines (92 sloc) 4.223 kb
6df100a first commit
SIdney Maestre authored
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Facebook Connect</title>
5
6 <link rel="stylesheet" href="style/jquery.mobile-1.0.css" />
7 <link rel="stylesheet" href="style/style.css" />
8
9
10
11
410e9f4 @SidneyAllen update to 0.5
authored
12
13 <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
14
15
16 <script src="js/vendor/jquery.mobile-1.0.min.js"></script>v
17
6df100a first commit
SIdney Maestre authored
18 <script type="text/javascript" src="http://static.stackmob.com/js/json2-min.js"></script>
410e9f4 @SidneyAllen update to 0.5
authored
19 <script type="text/javascript" src="http://static.stackmob.com/js/underscore-1.3.3-min.js"></script>
20 <script type="text/javascript" src="http://static.stackmob.com/js/backbone-0.9.2-min.js"></script>
21 <script type="text/javascript" src="http://static.stackmob.com/js/2.5.3-crypto-sha1-hmac.js"></script>
22 <script type="text/javascript" src="http://static.stackmob.com/js/stackmob-js-0.5.1-min.js"></script>
23
24
25
6df100a first commit
SIdney Maestre authored
26 <script src="js/vendor/backbone-localstorage.js"></script>
27
28 <!-- App specific scripts -->
29 <script src="js/app.js"></script>
30
31
32
33 <script type="text/template" id="veggie-list-item-template">
34 <li data-split-theme="a">
35 <a href="#"><%= total %> <%= name %></a>
36 <a href='#' data-theme="c" data-icon="share" data-id="<%= veggies_id %>" id="shareVeggie">Share on Facebook</a>
37 </li>
38 </script>
39
40 <!-- maximum scale added to stop zoom on select controls -->
41 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
42 </head>
43 <body>
44 <div id="fb-root"></div>
45 <script>
46 window.fbAsyncInit = function() {
47 FB.init({
25353e6 update fb app settings
SIdney Maestre authored
48 appId : '459807940711896', // App ID
49 channelUrl : 'dev.connectstackmob.stackmob339.stackmobapp.com/channel.html', // Channel File
6df100a first commit
SIdney Maestre authored
50 status : true, // check login status
51 cookie : true, // enable cookies to allow the server to access the session
52 xfbml : true // parse XFBML
53 });
54
55 // Additional initialization code here
56 };
57
58 // Load the SDK Asynchronously
59 (function(d){
60 var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
61 if (d.getElementById(id)) {return;}
62 js = d.createElement('script'); js.id = id; js.async = true;
63 js.src = "//connect.facebook.net/en_US/all.js";
64 ref.parentNode.insertBefore(js, ref);
65 }(document));
66 </script>
67
68
69
70
71 <!-- LIST -->
c9a0492 made garden generic to myapp
SIdney Maestre authored
72 <div data-role="page" id="list">
6df100a first commit
SIdney Maestre authored
73 <div data-role="header" id="listHeader">
74 <a href="#home" data-rel="back" data-icon="back" data-iconpos="notext">home</a>
75 <h1>Gardens</h1>
c9a0492 made garden generic to myapp
SIdney Maestre authored
76 <a href="#" data-role="button" data-icon="add" id="addBtn" >Add</a>
6df100a first commit
SIdney Maestre authored
77 </div>
78
79 <div data-role="content">
c9a0492 made garden generic to myapp
SIdney Maestre authored
80 <a href="#" id="share" data-role="button">share</a>
6df100a first commit
SIdney Maestre authored
81 <!-- the contents of the list view will be rendered via the backbone view -->
82 <ul id="veggies-list" data-role="listview" data-inset="true" data-theme="d" data-divider-theme="e">
83 <li>Error Loading</li>
84 </ul>
85 </div>
86 </div>
87
88
89 <!-- ADD -->
90 <div data-role="page" id="addPage">
91 <div data-role="header" >
92 <a href="#home" data-rel="back" data-icon="back" data-iconpos="notext">home</a>
93 <h1>Add Veggie</h1>
94
95 </div>
96 <div data-role="content">
97 <form name="addForm" id="addForm" method="post" >
98
99 <input type="text" name="name" id="name" value="apples">
100 <input type="text" name="total" id="total" value="10">
101
102 <input type="button" id="addVeggie" value="add">
103
104 </form>
105 <!-- the contents of the list view will be rendered via the backbone view -->
106 </div>
107 </div>
108
9f550f1 update fb page to dialog role
SIdney Maestre authored
109 <div data-role="dialog" id="fb">
6df100a first commit
SIdney Maestre authored
110 <div data-role="header">
111 <a href="#home" data-rel="back" data-icon="back" data-iconpos="notext">home</a>
112 <h1>Facebook</h1>
113
114 </div>
115 <div data-role="content">
116 <form name="addForm" id="addForm" method="post" >
117
118 <input type="button" id="fbLogin" value="Login">
119 <input type="button" id="fbLogout" value="Logout">
7764182 update fb dialog box
SIdney Maestre authored
120
6df100a first commit
SIdney Maestre authored
121 </form>
122 <!-- the contents of the list view will be rendered via the backbone view -->
123 </div>
124 </div>
125
126
127 </body>
128 </html>
Something went wrong with that request. Please try again.