1/***** Ajax login script ******/ 2var $ = jQuery; 3$(document).ready(function($){ 4 $('#king-form>.btn-login').on( 'click', function(){ 5 $('#king-form p.status').show().text(ajax_user_object.loadingmessage); 6 $.ajax({ 7 url: ajax_user_object.ajaxurl, 8 data: $('#king-form').serialize(), 9 type: 'POST', 10 dataType: 'json', 11 success: function(response){ 12 $('#king-form p.status').show().text(response.message); 13 if (response.loggedin == true){ 14 document.location.href = ajax_user_object.redirecturl; 15 } 16 } 17 }); 18 }); 19 20 $('#king-form>.btn-resetpwd').on( 'click', function(){ 21 $('#king-form p.status').show().text(ajax_user_object.loadingmessage); 22 $.ajax({ 23 url: ajax_user_object.ajaxurl, 24 data: $('#king-form').serialize(), 25 type: 'POST', 26 dataType: 'json', 27 success: function(response){ 28 $('#king-form p.status').show().text(response.message); 29 if(response.status){ 30 $('input[name="email"]').val(''); 31 } 32 } 33 }); 34 }); 35 36 $('#king_form>.btn-register').on( 'click', function(){ 37 $('#king_form p.status').show().text(ajax_user_object.loadingmessage); 38 $.ajax({ 39 url: ajax_user_object.ajaxurl, 40 data: $('#king_form').serialize(), 41 type: 'POST', 42 dataType: 'json', 43 success: function(response){ 44 $('#king_form p.status').show().text(response.message); 45 if (response.loggedin == true){ 46 document.location.href = ajax_user_object.redirecturl; 47 } 48 } 49 }); 50 }); 51});
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.