1jQuery( function( $ ) { 2 3 $( document.body ).on( 'updated_checkout payment_method_selected', function() { 4 $( 'input.woocommerce-SavedPaymentMethods-tokenInput:checked' ) 5 .siblings( '.woocommerce-TotalPayments' ) 6 .show(); 7 } ); 8 9 $( document.body ).on( 'click', ':input.woocommerce-SavedPaymentMethods-tokenInput', function() { 10 $( '.woocommerce-TotalPayments' ).hide(); 11 12 $( this ).siblings( '.woocommerce-TotalPayments' ).show(); 13 } ); 14 15} );
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.