1jQuery(document).ready(function($) { 2 $("#compo_payment_results").html(''); 3 $("#compopaymentbuttonbegin").click(function() { 4 $("#compo_payment_results").html('Odota...'); 5 6 var email = $('#compo_email').val().trim(); 7 var name = $('#compo_name').val().trim(); 8 if (email == '' || name == '') { 9 $("#compo_payment_results").html('<font color="red">Täytä kaikki tähdellä merkityt kentät.</font>'); 10 return; 11 } 12 var amount = $('#radiobutton1').val(); 13 if ($('#radiobutton2').is(":checked")) { 14 amount = $('#radiobutton2').val(); 15 } 16 var url = CompoAjax.ajaxurl+"?action=compo_validate_email"; 17 var request = $.ajax({ 18 type: "POST", 19 url: url, 20 data: {email: email} 21 }).done(function(msg) { 22 var obj = eval ("(" + msg + ")"); 23 if (obj.status != 0) { 24 $('#compo_payment_results').show(); 25 $('#compo_payment_results').html('<font color="red">'+obj.msg+'</font>'); 26 } else { 27 var url = CompoAjax.ajaxurl+"?action=compo_checkout_fi"; 28 var request2 = $.ajax({ 29 type: "GET", 30 url: url, 31 data: {email: email, name: name, amount: amount} 32 }).done(function(page) { 33 $('#checkout_fi').html(page); 34 }); 35 request2.fail(function(jqXHR, textStatus) { 36 alert( "Request failed: " + textStatus ); 37 }); 38 } 39 }); 40 41 request.fail(function(jqXHR, textStatus) { 42 alert( "Request failed: " + textStatus ); 43 }); 44 }); 45 46 $("#checkemailregistration").click(function() { 47 var status = $('#compo_ajax_result'); 48 status.html('Odota...'); 49 50 var email = $('input[name="email"]').val(); 51 var url = CompoAjax.ajaxurl+"?action=compo_validate_email"; 52 var request = $.ajax({ 53 type: "POST", 54 url: url, 55 data: {email: email} 56 }).done(function(msg) { 57 var obj = eval ("(" + msg + ")"); 58 if (obj.status != 0) { 59 status.show(); 60 status.html('<font color="red">'+obj.msg+'</font>'); 61 } else { 62 status.html('<font color="green">Olet jo yhdistyksen jäsen. Sinun ei tarvitse rekisteröityä uudelleen!</font>'); 63 } 64 }); 65 66 request.fail(function(jqXHR, textStatus) { 67 alert( "Request failed: " + textStatus ); 68 }); 69 }); 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.