PageSourceSearch

https://www.laviedurail.com/wp-content/themes/vdr/js/shipping-script.js?ver=1.0

js laviedurail.com collected 2026-10-02 10:48:44 UTC 1,023 bytes, 32 lines download raw bytes

1jQuery(function($){
2
3    // disable AJAX update
4    $('#billing_country_field').removeClass('update_totals_on_change');
5    $('#shipping_country_field').removeClass('update_totals_on_change');
6
7    // when the country fields change
8    $('#billing_country, #shipping_country').change(function(){
9        var countries = {
10            'billing_country': $('#billing_country').val(),
11            'shipping_country': $('#shipping_country').val(),
12        };
13        $.ajax({
14            url: ajax_object.ajaxurl,
15            type : 'post',
16            data: {
17                'action': 'set_option_country',
18                'countries': countries
19            },
20            complete: function(){
21                // update checkout via AJAX
22                $(document.body).trigger('update_checkout');
23            },
24            success:function(data) {
25                console.log(data);
26            },
27            error: function(errorThrown){
28                console.log(errorThrown);
29            }
30        });  
31    });
32});

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.