1;(function ( $, window, document ) { 2 'use strict'; 3 4 $( 'form.checkout' ).on( 'click', 'input[name="payment_method"]', function() { 5 // Avoid toggling submit button if on confirmation screen 6 if ( $( '#payment' ).find( '.wc-gateway-ppec-cancel' ).length ) { 7 return; 8 } 9 10 var isPPEC = $( this ).is( '#payment_method_ppec_paypal' ); 11 var togglePPEC = isPPEC ? 'show' : 'hide'; 12 var toggleSubmit = isPPEC ? 'hide' : 'show'; 13 14 $( '#woo_pp_ec_button_checkout' ).animate( { opacity: togglePPEC, height: togglePPEC, padding: togglePPEC }, 230 ); 15 $( '#place_order' ).animate( { opacity: toggleSubmit, height: toggleSubmit, padding: toggleSubmit }, 230 ); 16 } ); 17})( jQuery, window, document );
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.