-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
www
/
wp-content
/
plugins
/
woocommerce
/
assets
/
js
/
frontend
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
.htaccess
0.231KB
Edit File
Delete File
Rename
add-payment-method.js
1.082KB
Edit File
Delete File
Rename
add-payment-method.min.js
0.724KB
Edit File
Delete File
Rename
add-to-cart-variation.js
27.877KB
Edit File
Delete File
Rename
add-to-cart-variation.min.js
13.271KB
Edit File
Delete File
Rename
add-to-cart.js
5.646KB
Edit File
Delete File
Rename
add-to-cart.min.js
2.966KB
Edit File
Delete File
Rename
address-i18n.js
4.854KB
Edit File
Delete File
Rename
address-i18n.min.js
2.578KB
Edit File
Delete File
Rename
cart-fragments.js
5.507KB
Edit File
Delete File
Rename
cart-fragments.min.js
2.869KB
Edit File
Delete File
Rename
cart.js
15.923KB
Edit File
Delete File
Rename
cart.min.js
7.698KB
Edit File
Delete File
Rename
checkout.js
24.898KB
Edit File
Delete File
Rename
checkout.min.js
14.158KB
Edit File
Delete File
Rename
country-select.js
6.093KB
Edit File
Delete File
Rename
country-select.min.js
3.246KB
Edit File
Delete File
Rename
credit-card-form.js
0.574KB
Edit File
Delete File
Rename
credit-card-form.min.js
0.506KB
Edit File
Delete File
Rename
geolocation.js
3.812KB
Edit File
Delete File
Rename
geolocation.min.js
1.282KB
Edit File
Delete File
Rename
lost-password.js
0.155KB
Edit File
Delete File
Rename
lost-password.min.js
0.129KB
Edit File
Delete File
Rename
password-strength-meter.js
3.714KB
Edit File
Delete File
Rename
password-strength-meter.min.js
1.98KB
Edit File
Delete File
Rename
price-slider.js
2.993KB
Edit File
Delete File
Rename
price-slider.min.js
2.092KB
Edit File
Delete File
Rename
single-product.js
10.231KB
Edit File
Delete File
Rename
single-product.min.js
6.211KB
Edit File
Delete File
Rename
tokenization-form.js
3.751KB
Edit File
Delete File
Rename
tokenization-form.min.js
2.209KB
Edit File
Delete File
Rename
woocommerce.js
3.385KB
Edit File
Delete File
Rename
woocommerce.min.js
2.089KB
Edit File
Delete File
Rename
/*global wc_tokenization_form_params */ jQuery( function( $ ) { /** * WCTokenizationForm class. */ var TokenizationForm = function( $target ) { this.$target = $target; this.$formWrap = $target.closest( '.payment_box' ); // Params. this.params = $.extend( {}, { 'is_registration_required': false, 'is_logged_in' : false }, wc_tokenization_form_params ); // Bind functions to this. this.onDisplay = this.onDisplay.bind( this ); this.hideForm = this.hideForm.bind( this ); this.showForm = this.showForm.bind( this ); this.showSaveNewCheckbox = this.showSaveNewCheckbox.bind( this ); this.hideSaveNewCheckbox = this.hideSaveNewCheckbox.bind( this ); // When a radio button is changed, make sure to show/hide our new CC info area. this.$target.on( 'click change', ':input.woocommerce-SavedPaymentMethods-tokenInput', { tokenizationForm: this }, this.onTokenChange ); // OR if create account is checked. $( 'input#createaccount' ).on( 'change', { tokenizationForm: this }, this.onCreateAccountChange ); // First display. this.onDisplay(); }; TokenizationForm.prototype.onDisplay = function() { // Make sure a radio button is selected if there is no is_default for this payment method.. if ( 0 === $( ':input.woocommerce-SavedPaymentMethods-tokenInput:checked', this.$target ).length ) { $( ':input.woocommerce-SavedPaymentMethods-tokenInput:last', this.$target ).prop( 'checked', true ); } // Don't show the "use new" radio button if we only have one method.. if ( 0 === this.$target.data( 'count' ) ) { $( '.woocommerce-SavedPaymentMethods-new', this.$target ).remove(); } // Hide "save card" if "Create Account" is not checked and registration is not forced. var hasCreateAccountCheckbox = 0 < $( 'input#createaccount' ).length, createAccount = hasCreateAccountCheckbox && $( 'input#createaccount' ).is( ':checked' ); if ( createAccount || this.params.is_logged_in || this.params.is_registration_required ) { this.showSaveNewCheckbox(); } else { this.hideSaveNewCheckbox(); } // Trigger change event $( ':input.woocommerce-SavedPaymentMethods-tokenInput:checked', this.$target ).trigger( 'change' ); }; TokenizationForm.prototype.onTokenChange = function( event ) { if ( 'new' === $( this ).val() ) { event.data.tokenizationForm.showForm(); event.data.tokenizationForm.showSaveNewCheckbox(); } else { event.data.tokenizationForm.hideForm(); event.data.tokenizationForm.hideSaveNewCheckbox(); } }; TokenizationForm.prototype.onCreateAccountChange = function( event ) { if ( $( this ).is( ':checked' ) ) { event.data.tokenizationForm.showSaveNewCheckbox(); } else { event.data.tokenizationForm.hideSaveNewCheckbox(); } }; TokenizationForm.prototype.hideForm = function() { $( '.wc-payment-form', this.$formWrap ).hide(); }; TokenizationForm.prototype.showForm = function() { $( '.wc-payment-form', this.$formWrap ).show(); }; TokenizationForm.prototype.showSaveNewCheckbox = function() { $( '.woocommerce-SavedPaymentMethods-saveNew', this.$formWrap ).show(); }; TokenizationForm.prototype.hideSaveNewCheckbox = function() { $( '.woocommerce-SavedPaymentMethods-saveNew', this.$formWrap ).hide(); }; /** * Function to call wc_product_gallery on jquery selector. */ $.fn.wc_tokenization_form = function( args ) { new TokenizationForm( this, args ); return this; }; /** * Initialize. */ $( document.body ).on( 'updated_checkout wc-credit-card-form-init', function() { // Loop over gateways with saved payment methods var $saved_payment_methods = $( 'ul.woocommerce-SavedPaymentMethods' ); $saved_payment_methods.each( function() { $( this ).wc_tokenization_form(); } ); } ); } );
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat