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