1function loginGoogle(idToken) { 2 3 var flow = getParameterByName("flow") == "" ? 0 : getParameterByName("flow"); 4 var src = getParameterByName("src") == "" ? "" : getParameterByName("src"); 5 var idorder = getParameterByName("idorder") == "" ? 0 : getParameterByName("idorder"); 6 7 var data = { 8 idToken: String(idToken), 9 flow: String(flow), 10 idOrder: String(idorder), 11 src: String(src) 12 }; 13 14 jQuery.ajax({ 15 type: "POST", 16 url: String(WebPath) + "services/VerticoServices.asmx/LoginGoogle", 17 contentType: "application/json; charset=utf-8", 18 dataType: "json", 19 async: false, 20 data: JSON.stringify(data), 21 22 beforeSend: function () { 23 jQuery('.main-box-loading').show(); 24 jQuery('.main-loading').show(); 25 }, 26 27 success: function (response) { 28 if (response.hasOwnProperty('d')) { 29 jsonReturn = jQuery.parseJSON(response.d); 30 } else { 31 jsonReturn = jQuery.parseJSON(response); 32 } 33 34 if (jsonReturn.islogged == "1") { 35 if ((jsonReturn.urlReturn != null || jsonReturn.urlReturn != '') && jsonReturn.urlReturn.indexOf('.aspx') > -1) { 36 window.location.href = WebPath + jsonReturn.urlReturn; 37 } else { 38 if (window.location.href.indexOf('login.aspx') > -1) { 39 window.location.href = WebPath + 'default.aspx'; 40 } 41 else { 42 window.location.reload(true); 43 } 44 } 45 } else if (jsonReturn.islogged == "-1") { 46 alert('Não foi possÃvel realizar o login!'); 47 window.location.reload(true); 48 } else { 49 //window.location = String(WebPath) + "login.aspx"; 50 window.location.href = String(WebPath) + "customer.aspx?flow=" + flow; 51 } 52 }, 53 54 complete: function () { 55 jQuery('.main-box-loading').hide(); 56 jQuery('.main-loading').hide(); 57 }, 58 59 error: function (error) { 60 //error: function (xhr, ajaxOptions, thrownError) { 61 } 62 }); 63}; 64 65function getParameterByName(name) { 66 name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); 67 var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), 68 results = regex.exec(location.search); 69 return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); 70}
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.