forked from ClearBlade/Tutorial-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpart2.js
More file actions
24 lines (19 loc) · 647 Bytes
/
Copy pathpart2.js
File metadata and controls
24 lines (19 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var part2Event = function() {
var initCallback = function(err, data){
if(err) {
showError("part2", "Uh-oh somethings not right, your authorized login failed - check your system key and secret??");
} else {
showView("part2b");
// callback(err, data);
}
};
var email = document.getElementById("email").value;
var password = document.getElementById("password").value;
initOptions.email = email;
initOptions.password = password;
initOptions.callback = initCallback;
cb.init(initOptions);
};
var part2bEvent = function() {
showView("part3");
};