1( function( $ ) { 2 $( document ).on( "click touchstart", '.cptch_reload_button', function() { 3 var captcha = $( this ).parent().parent( '.cptch_wrap' ); 4 if ( captcha.length ) { 5 $( this ).addClass( 'cptch_active' ); 6 $.ajax({ 7 type: 'POST', 8 url: cptch_vars.ajaxurl, 9 data: { 10 action: 'cptch_reload', 11 cptch_nonce: cptch_vars.nonce 12 }, 13 success: function( result ) { 14 captcha.replaceWith( result ); 15 }, 16 error : function ( xhr, ajaxOptions, thrownError ) { 17 alert( xhr.status ); 18 alert( thrownError ); 19 } 20 }); 21 } 22 }).on( "touchstart", function( event ) { 23 if ( cptch_vars.enlarge == '1' ) { 24 var element = $( event.target ); 25 if ( element.hasClass( 'cptch_img' ) ) { 26 event.preventDefault(); 27 element.toggleClass( 'cptch_reduce' ); 28 $( '.cptch_img' ).not( element ).removeClass( 'cptch_reduce' ); 29 } else { 30 $( '.cptch_img' ).removeClass( 'cptch_reduce' ); 31 } 32 } 33 }); 34})(jQuery);
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.