PageSourceSearch

https://iapa-summit.info/wp-content/plugins/tes-subs-paywall/assets/js/tes-public.js?ver=7.1.3

js iapa-summit.info collected 2026-10-08 01:08:55 UTC 2,127 bytes, 62 lines download raw bytes

1/**
2 * tes-admin.js
3 *
4 * @since  1.0.2
5 * @author The Engine Shed (UK) Ltd
6 * @package TES_Subs_Paywall
7 */
8
9jQuery(document).ready( function($) {
10    "use strict";
11
12    /**
13     * Delivery to on change event
14     */
15    $("#tes_sub_region_id").change(function () {
16        
17        var tes_sub_region_id = $(this).val();
18        var tes_sub_prod_id = $("#tes_sub_prod_id").val();
19        var nonce = $('option:selected', this).attr('data-nonce');
20
21        if ($(this).val() !== '') {
22            tes_sub_region_id = $(this).val();
23        }
24
25        $("#tes_sub_price_id").prop("disabled", true);
26        $(".single_add_to_cart_button").prop("disabled", true);
27        $.ajax({
28            url: tes_public_ajax.ajaxurl,
29            //dataType : "json",
30            type: 'post',
31            data: {
32                action : 'public_region_trigger_ajax',
33                tes_sub_region_id : tes_sub_region_id,
34                tes_sub_prod_id : tes_sub_prod_id,
35                nonce : nonce
36            },
37            success : function (response) {
38
39                var price_options = $.parseJSON(response);
40
41                $("#tes_sub_price_id").prop("disabled", false);
42                $(".single_add_to_cart_button").prop("disabled", false);
43
44                $("#tes_sub_price_id").html('');
45                $.each(price_options, function() {
46                    $("#tes_sub_price_id").append('<option value="' + this.value + '" data-price="' + this.price + '" data-currency="' + this.currency + '" data-currency-symbol="' + this.currency_symbol + '">' + this.name + '</option>')
47                });
48
49                $("#tes_sub_price_id").trigger("change");
50            }
51        });
52    });
53
54    $("#tes_sub_price_id").change(function () {
55
56        //var price = $('option:selected', this).attr('data-price');
57        //var currency = $('option:selected', this).attr('data-currency');
58        //var currency_symbol = $('option:selected', this).attr('data-currency-symbol');
59
60        //$(".woocommerce-Price-amount").html('<span class="woocommerce-Price-currencySymbol">'+currency_symbol+'</span>' + price);
61    });
62});

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.