H2 tags : OR\n \n \n if ($.browser.msie) $(\'.fb_connect_section\').hide();\n \n \n \n \n \n \n \n \n \n Username or Email:\n '; dlgBody += ' \n \n \n \n Password:\n \n \n Forgot?\n \n \n Keep '; dlgBody += 'me signed in\n \n \n \n Or Create an Account\n \n \n \n \n \n\n\nfunction show_register_tab(obj) {\n syncTabs(obj);\n $(\'#inline_login\')'; dlgBody += '.hide()\n $(\'#inline_register\').show().placify();\n}\n\n$(\'#inline_login\').placify();\nfunction inline_lo'; dlgBody += 'gin_cb(uid, username, ts, hash, bl) {\n if (uid) {\n $(\'#inline_login_error\').html(\'\');\n ag_login_cb('; dlgBody += 'uid, username, ts, hash, bl);\n } else {\n $(\'#inline_login_error\').html(\'Invalid username/password co'; dlgBody += 'mbination.\');\n }\n}\n\n\n \n \n '; dlgBody += ' \n \n '; dlgBody += ' \n '; dlgBody += ' \n \n \n'; dlgBody += ' \n \n At leas'; dlgBody += 't 5 characters.\n \n \n \n \n Correct email is very important.\n \n \n \n '; dlgBody += '\n At least 5 characters.\n \n \n \n \n Repeat to make sure.\n \n \n By clicking on the Create Account button, you are indicating that you have read and agree to the Terms of Service and Privacy Po'; dlgBody += 'licy.\n \n \n \n Or Join through Facebook\n \n \n \n \n\n\n\nf'; dlgBody += 'unction fb_inline_connect() {\n SSUtil.fb_connect(\n function(r){\n switch (r.result) {\n '; dlgBody += ' case \'link\':\n case \'signin\':\n case \'create\':\n SSUtil.hideLoadingSpinner();\n '; dlgBody += ' inline_login_cb(r.user_id, r.username, r.ts, r.hash, 0);\n //inline_register_cb(r.user_'; dlgBody += 'id, r.username, r.ts, r.hash, \'\');\n break;\n default:\n inline_register_cb(nul'; dlgBody += 'l, null, null, null, \'An error occurred, please try again later.\');\n }\n },\n function(){\n '; dlgBody += ' SSUtil.errorDialog();\n },\n $(\'#inline_register_type\').val(),\n $(\'#inline_register_seller'; dlgBody += '_id\').val()\n );\n}\nfunction inline_register_cb(uid, username, ts, hash, error) {\n if (uid) {\n $(\'#in'; dlgBody += 'line_register_error\').html(\'\');\n ag_register_cb(uid, username, ts, hash);\n } else {\n $(\'#inline_reg'; dlgBody += 'ister_error\').html(error);\n }\n}\n$(document).ready(function() {\n $(\'input[placeholder], textarea[plac'; dlgBody += 'eholder]\').placeholder();\n\n // Forgot your password functionality\n $(\"#forgot_password_form div\").h'; dlgBody += 'ide(); // initially email input and submit button is hidden\n $(\"#forgot_password_form img\").hide(); '; dlgBody += '// intially spinning ajax loader is hidden\n $(\"#forgot_password_form a\").click( function() { // Sho'; dlgBody += 'w email input field and submit button when \"Forgot?\" is clicked\n $(\"#forgot_password_form div\").to'; dlgBody += 'ggle(\'slow\');\n });\n $(\"#forgot_password_form input[type=submit]\").click( function() { // Show spinn'; dlgBody += 'ing ajax loader when submit button is clicked\n $(\"#forgot_password_form img\").show();\n });\n \n /'; dlgBody += '/ Validating input fields\n jQuery.validator.addMethod(\"username\", function(value, element) {\n ret'; dlgBody += 'urn this.optional(element) || !SSUtil.username_error(value);\n }, SSUtil.USERNAME_RULE);\n $(\'#inline'; dlgBody += '_register form\').first().validate({\n onkeyup:false,\n rules: {\n \"inline_register[username]\": {\n '; dlgBody += ' required: true,\n minlength: 5,\n maxlength: 30,\n username: true,\n remote: {\n '; dlgBody += ' url: \"/username_check\",\n data: {\n \"user[username]\": function() {\n return $('; dlgBody += '\'#inline_register_username\').val();\n } \n }\n }\n },\n \"inline_register[email]\": '; dlgBody += '{\n required: true,\n email: true,\n remote: {\n url: \"/email_check\",\n data: {'; dlgBody += '\n \"user[email]\": function() {\n return $(\'#inline_register_email\').val();\n }\n '; dlgBody += ' }\n }\n }, \n \"inline_register[password]\": {\n required: true,\n minlength: '; dlgBody += '5,\n maxlength: 30\n }, \n \"confirm_password\": {\n equalTo: \"#inline_register_passwo'; dlgBody += 'rd\"\n } \n },\n messages: {\n \"inline_register[username]\": {\n required: \"Too short\",\n '; dlgBody += ' minlength: \"Too short\",\n remote: \"Already taken\"\n },\n \"inline_register[email]\": {\n '; dlgBody += ' required: \"Invalid email\",\n email: \"Invalid email\",\n remote: \"Already taken\" \n },\n '; dlgBody += '\"inline_register[password]\": {\n required: \"Too short\",\n minlength: \"Too short\" \n },\n '; dlgBody += '\"confirm_password\": {\n equalTo: \"Must match\"\n }\n },\n success: function(label) {\n label.clos'; dlgBody += 'est(\'.unit\').find(\'.notice\').addClass(\"success\").removeClass(\'error\');\n label.remove(); // have to r'; dlgBody += 'emove to get it to go away...\n },\n errorPlacement: function(error, element) {\n element.closest(\'.un'; dlgBody += 'it\').find(\'.notice\').append(error);\n element.closest(\'.unit\').find(\'.notice\').addClass(\'error\').remo'; dlgBody += 'veClass(\"success\");\n }\n });\n});\n\n\n\n\n function ag_signin(obj) {\n syncTabs'; dlgBody += '(obj);\n $(\'#ag_login #inline_register\').hide()\n $(\'#ag_login #inline_login\').show().placify();\n'; dlgBody += ' }\n function ag_register(obj) {\n syncTabs(obj);\n $(\'#ag_login #inline_login\').hide()\n $(\'#'; dlgBody += 'ag_login #inline_register\').show().placify();\n }\n function syncTabs(obj) {\n $(obj).parent().pare'; dlgBody += 'nt().children(\".selected\").removeClass(\"selected\");\n $(obj).parent().addClass(\"selected\");\n }\n $'; dlgBody += '(\"#ag_login .selected a\").click();\n \n function ag_login_cb(uid, username, ts, hash, bl) {\n if (u'; dlgBody += 'id) {\n SSContext.viewer_id = uid;\n SSContext.viewer_uname = username;\n SSContext.viewe'; dlgBody += 'r_signed_in = true;\n $(\"#inline_login_dialog\").dialog(\"close\");\n $(\".ui-dialog\").hide();\n '; dlgBody += ' $(\".ui-widget-overlay\").hide();\n \n // look for signin link at the top, switch to sign o'; dlgBody += 'ut\n $(\"#navigation a.login\").parent().html(\'Sign Out\');\n\n // now you '; dlgBody += 'can proceed\n if (SSContext.assert_login_callback) {\n SSContext.assert_login_callback();\n '; dlgBody += ' }\n }\n }\n \n function ag_register_cb(uid, username, ts, hash, error) {\n if (uid) {\n '; dlgBody += 'SSContext.viewer_id = uid;\n SSContext.viewer_uname = username;\n SSContext.viewer_signed_in '; dlgBody += '= true;\n $(\"#inline_login_dialog\").dialog(\"close\");\n $(\".ui-dialog\").hide();\n $(\".ui-w'; dlgBody += 'idget-overlay\").hide();\n\n // look for signin link at the top, switch to sign out\n $(\"#navig'; dlgBody += 'ation a.login\").parent().html(\'Sign Out\');\n\n // now you can proceed\n '; dlgBody += 'if (SSContext.assert_login_callback) {\n SSContext.assert_login_callback();\n }\n }\n }\n\n'; SSUtil.popupDialog('inline_login_dialog', dlgBody,{modal:true,resizable:false,draggable:false,width:700,height:620,title:'Sign in or register'});
} else {
callback();
}
},
assert_login_callback: null
};
var fb_canvas_url = "http://apps.facebook.com/shopsquad/";
var fb_post_ownit_url = "http://www.shopsquad.com/ownit/";
Get Advice
Join
Sign In
Sign in through Facebook
OR |