1$(document).ready(function(){ 2 // on the login page, facebook login lets people log in or create an account 3 if (typeof LLFacebook != 'undefined') { 4 LLFacebook.onLogin = function (currentStatus) { 5 loginViaFacebook (currentStatus); 6 }; 7 bindFancyboxEvents (); 8 } 9}); 10 11/** 12 * link the current user's account with the facebook account whose id is given 13 */ 14function loginViaFacebook (currentStatus) 15{ 16 LLFacebook.loginViaFacebook (currentStatus, function (response) { 17 if (response.Status == 'SUCCESS' && response.LoginRedirect) { 18 document.location.href = response.LoginRedirect; 19 } else if (response.Status == 'ERROR') { 20 refreshPage (); 21 } 22 }, false, false, 'Login Page'); 23}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.