1( function( $ ) { 2 "use strict"; 3 4 $(document).ready(function() { 5 6 $('.wc-shortcodes-rsvp').each( function() { 7 var $this; 8 9 $this = $(this); 10 11 $this.find('.rsvp-button').click( function() { 12 var $button = $(this); 13 var data = $this.find('.rsvp-data').serialize(); 14 var $message = $this.find('.rsvp-message'); 15 var $messageParent = $message.parent(); 16 $message.text("Sending..."); 17 $messageParent.removeClass('wc-shortcodes-box-warning wc-shortcodes-box-success').addClass('wc-shortcodes-box-info').show(); 18 19 $.post( 20 WCShortcodes.ajaxurl, 21 data, 22 function( response ) { 23 if (response.success) { 24 $message.text(response.message); 25 $messageParent.removeClass('wc-shortcodes-box-warning wc-shortcodes-box-info').addClass('wc-shortcodes-box-success').show(); 26 $button.hide(); 27 } 28 else { 29 $message.text(response.message); 30 $messageParent.removeClass('wc-shortcodes-box-success wc-shortcodes-box-info').addClass('wc-shortcodes-box-warning').show(); 31 } 32 } 33 ); 34 }); 35 }); 36 37 }); 38} )( 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.