PageSourceSearch

https://lorodelcontadino.it/wp-content/plugins/wc-woopricely/extensions/woopricely/assets/script.js

js lorodelcontadino.it collected 2026-09-25 13:29:02 UTC 2,019 bytes, 60 lines download raw bytes

1"use strict";
2jQuery(document).ready(function ($) {
3    
4    run_pri_tips();
5    run_pri_timer();
6    $(document.body).on('updated_cart_totals', function () {
7        run_pri_tips();
8    });
9    $(document.body).on('updated_checkout', function () {
10        run_pri_tips();
11    });
12
13    $('form.checkout').on('change', 'input[name^="payment_method"]', function () {
14        update_checkout();
15    });
16
17    function run_pri_tips() {
18
19        $('.fee').each(function () {
20            var zcpri_fee = $(this);
21            var zcpri_fee_inf = zcpri_fee.find('.zc_zri_fee_rel');
22            zcpri_fee.find('th').append(zcpri_fee_inf);
23            zcpri_fee.find('td').find('.zc_zri_fee_rel').remove();
24            zcpri_fee_inf.removeClass('zc_zri_fee_rel');
25        });
26
27        $('.zc_zri_fee').tipTip({defaultPosition: 'top'});
28    }
29
30
31    function run_pri_timer() {
32        //data-zcpri_datetime="2020/10/10" data-zcpri_format="%D days %H:%M:%S"
33
34        $('.zc_zri_countdown_timer_clock').each(function () {
35            var clck = $(this);
36            var dt = clck.attr('data-zcpri_datetime');
37            var dt_days = clck.attr('data-zcpri_days');
38            var dt_hours = clck.attr('data-zcpri_hours');
39            var dt_minutes = clck.attr('data-zcpri_minutes');
40            var dt_seconds = clck.attr('data-zcpri_seconds');
41
42
43            $('.zc_zri_countdown_timer_clock').countdown(dt).on('update.countdown', function (event) {
44                clck.html(event.strftime(
45                        '<span class="zcpri_clk_t"><b>%D</b>' + dt_days + '</span>'
46                        + '<span class="zcpri_clk_t"><b>%H</b>' + dt_hours + '</span>'
47                        + '<span class="zcpri_clk_t"><b>%M</b>' + dt_minutes + '</span>'
48                        + '<span class="zcpri_clk_t"><b>%S</b>' + dt_seconds + '</span>'));
49            });
50        });
51
52
53    }
54
55    function update_checkout() {
56        $('body').trigger('update_checkout');
57    }
58});
59
60

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.