PageSourceSearch

https://doit.software/wp-content/plugins/ultimate-addons-for-conta…/addons/multistep/assets/js/progressbar.js

js doit.software collected 2026-10-02 11:28:30 UTC 2,956 bytes, 63 lines download raw bytes

1(function ($) {
2
3    $(document).ready(function () {
4        jQuery('.wpcf7-form').each(function(){
5                var form_id = $(this).find("input[name=_wpcf7]").val(),
6                navListItems  = $(this).find('.uacf7-steps div.setup-panel div a[data-form-id="' + form_id + '"]'),
7                allWells      = $(this).find('.uacf7-step'),
8                allNextBtn    = $(this).find('.uacf7-next[data-form-id="' + form_id + '"]'),
9                allPrevBtn    = $(this).find('.uacf7-prev[data-form-id="' + form_id + '"]'),
10                allStepTitle  =  $(this).find('.step-title[data-form-id="' + form_id + '"]');  
11                
12                allWells.hide();
13
14                navListItems.click(function (e) {
15                    e.preventDefault();
16                    var $target = $($(this).attr('href')),
17                        title   = $($(this).attr('title-id')),
18                        $item   = $(this);
19
20                    if (!$item.hasClass('disabled')) {
21                        navListItems.removeClass('uacf7-btn-active').addClass('uacf7-btn-default');
22                        $item.addClass('uacf7-btn-active');
23                        allWells.hide();
24                        $target.show();
25                        allStepTitle.hide();
26                        title.show();
27                        $target.find('input:eq(0)').focus();
28                    }
29                });
30
31                allPrevBtn.click(function () {
32                    var curStep = $(this).closest(".uacf7-step"),
33                        curStepBtn = curStep.attr("id"),
34                        prevStepSteps = $('div.setup-panel div a[href="#' + curStepBtn + '"]').parent().prev().children("a");
35
36                    prevStepSteps.removeAttr('disabled').trigger('click');
37                });
38
39                allNextBtn.click(function () {
40                    var curStep = $(this).closest(".uacf7-step"),
41                        curStepBtn = curStep.attr("id"),
42                        nextStepWizard = $('div.setup-panel div a[href="#' + curStepBtn + '"]').parent().next().children("a"),
43                        curInputs = curStep.find("input[type='text'],input[type='url']"),
44                        isValid = true;
45
46                    $(".form-group").removeClass("has-error");
47                    for (var i = 0; i < curInputs.length; i++) {
48                        if (!curInputs[i].validity.valid) {
49                            isValid = false;
50                            $(curInputs[i]).closest(".form-group").addClass("has-error");
51                        }
52                    }
53
54                    //if (isValid)
55                        //nextStepWizard.removeAttr('disabled').trigger('click');
56                });
57
58                //$('div.setup-panel div a.uacf7-btn-active').trigger('click');
59                $('#'+form_id+'step-1.uacf7-step.step-content.step-start').show();
60        });
61        
62    });
63})(jQuery);

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.