1/* 2 * MAILCHIMP FORM 3 */ 4(function($){ 5 flowplayer(function(api, root) { 6 if( jQuery(root).hasClass('is-cva') ) return; 7 8 $(document).on('submit','#' + jQuery(root).attr('id') + ' .mailchimp-form' ,function(e){ 9 e.preventDefault(); 10 11 $('.mailchimp-response',root).remove(); 12 $('input[type=submit]',root).attr('disabled','disabled').addClass('fv-form-loading'); 13 14 var data = {action:"fv_wp_flowplayer_email_signup"}; 15 $('[name]',this).each(function(){ 16 data[this.name] = $(this).val(); 17 }); 18 $.post(fv_player.ajaxurl,data,function( response ) { 19 response = JSON.parse(response); 20 $('<div class="mailchimp-response"></div>').insertAfter('.mailchimp-form',root); 21 22 if( response.text.match(/already subscribed/) ) { 23 response.status = 'ERROR'; 24 } 25 26 if(response.status === 'OK'){ 27 $('.mailchimp-form input[type=text],.mailchimp-form input[type=email]',root).val(''); 28 $('.mailchimp-response',root).removeClass('is-fv-error').html(response.text); 29 30 setTimeout( function() { 31 $('.wpfp_custom_popup',root).fadeOut(); 32 }, 2000 ); 33 34 }else{ 35 $('.mailchimp-response',root).addClass('is-fv-error').html(response.text); 36 } 37 $('input[type=submit]',root).removeAttr('disabled').removeClass('fv-form-loading'); 38 }); 39 }); 40 }); 41}(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.