PageSourceSearch

https://kneipensport.com/wp-content/plugins/yith-woocommerce-order…/assets/js/ywot.js?ver=2.14.0

js kneipensport.com collected 2026-10-03 00:25:30 UTC 3,450 bytes, 100 lines download raw bytes

1jQuery(function ($) {
2    $( 'a.track-button' ).each( function() {
3        $(this).tooltipster({
4            theme: [ 'tooltipster-borderless', ywot.is_account_page ? 'tooltipster-borderless-customized-frontend' : 'tooltipster-borderless-customized-backend' ],
5            content: $(this).attr( 'data-title' ),
6            contentAsHTML: true,
7            side: 'left',
8            updateAnimation: null,
9            delay: 200,
10            interactive: true,
11        });
12    });
13
14
15    var originalDefaultLabel = $("label[for='ywot_tracking_code']").text();
16    var originalDefaultPlaceholder = $("#ywot_tracking_code").attr('placeholder');
17
18    /*
19    Change label and placeholder for BRT_WITH_PACKAGE_NUMBER carrier
20     */
21    jQuery( '#ywot_carrier_id' ).on('change',function(){
22        var label = '';
23        var placeholder = '';
24        var currentCarrier = $(this).val();
25        if( currentCarrier == 'BRT_WITH_PACKAGE_NUMBER' ){
26            label = 'Package Number';
27            placeholder = 'Enter package number';
28        }else{
29            label = originalDefaultLabel;
30            placeholder = originalDefaultPlaceholder
31        }
32        $("label[for='ywot_tracking_code']").text(label);
33        $("#ywot_tracking_code").attr('placeholder',placeholder);
34    });
35
36    if ( ! ywot.is_license_active ) {
37        $( '#yith_woocommerce_order_tracking_panel_carriers #plugin-fw-wc #-description' ).addClass( 'yith-ywot-hide-description' );
38    }
39
40    $( '#yith_woocommerce_order_tracking_panel_import #plugin-fw-wc h2' ).last().attr( 'id', 'ywot-carriers-codes-table' );
41
42
43    // Handle fields dependencies in the order metabox.
44    var order_picked_up_field = $( '.yith-ywot-order-picked-up-container #ywot_picked_up' ),
45        order_picked_up       = order_picked_up_field.val(),
46        fields_deps           = $( '.yith-ywot-tracking-code, .yith-ywot-tracking-postcode, .yith-ywot-tracking-carrier-id, .yith-ywot-tracking-pickup-date, .yith-ywot-tracking-estimated-delivery-date' );
47
48    if ( 'no' === order_picked_up ) {
49        fields_deps.hide();
50    }
51
52    order_picked_up_field.on( 'change', function( e ) {
53        var opacity = 'yes' === $( this ).val() ? 1 : 0,
54			display = 'yes' === $( this ).val() ? 'block' : 'none';
55
56        fields_deps.fadeTo(
57            'slow',
58            opacity,
59            function () {
60                $( this ).css( { 'display': display } );
61            }
62        );
63    });
64
65    if ( $( '.ywot-import-tracking-codes' ).length ) {
66        $( '.ywot-import-tracking-codes' ).closest( 'form' ).attr( 'enctype', 'multipart/form-data' );
67    }
68
69    $( '#yith-ywot-import-button' ).on( 'click', function(e) {
70        e.preventDefault();
71
72        $( '#yith-ywot-import-csv' ).click();
73    });
74
75    $( '#yith-ywot-import-csv' ).on( 'change', function( e ) {
76        var file_name =  document.getElementById( 'yith-ywot-import-csv' ).files[0].name;
77
78        if ( file_name !== '' ) {
79            $( '.yith-ywot-file-name' ).html( file_name );
80        }
81    });
82
83    $( '.ywot-import-tracking-codes' ).on( 'click', function( e ) {
84        window.onbeforeunload = null;
85
86        e.preventDefault();
87
88        $( '.ywot-safe-submit-field' ).val( 'importing_tracking_codes' );
89        $( this ).closest( 'form' ).submit();
90    });
91
92    if ( $( '.ywot_import_result' ).length ) {
93		setTimeout(
94            function () {
95			    $('.ywot_import_result').remove();
96		    },
97            3000
98        );
99	}
100});

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.