PageSourceSearch

https://us.shopvidi.com/wp-content/plugins/custom-product-settings/assets/js/custom_step.js?ver=1.0.12

js shopvidi.com collected 2026-09-29 02:47:46 UTC 2,160 bytes, 56 lines download raw bytes

1jQuery(document).ready(function($) {
2    // 为多步表单添加跳过按钮
3    function addSkipButton() {
4        if ($('.gform_page_footer').length) {
5            // 只在多步表单的页脚添加
6            const step_number = $('.gf_step_active .gf_step_number').html();
7            
8            $('.gform_page_footer').each(function() {
9                if (!$(this).find('.skip-btn').length && (step_number == 2 || step_number == 3) ) {
10                    var skipBtn = $('<button type="button" class="gform_button button skip-btn">Skip</button>');
11                    $(this).append(skipBtn);
12                }
13            });
14        }
15    }
16    
17    // 初始添加
18    addSkipButton();
19    
20    // Gravity Forms AJAX页面切换时重新添加
21    $(document).on('gform_page_loaded', function(event, form_id, current_page){
22        setTimeout(addSkipButton, 100);
23    });
24    
25    // 跳过按钮点击事件
26    $(document).on('click', '.skip-btn', function() {
27       
28            var form = $(this).closest('form');
29            var formId = form.attr('id').replace('gform_', '');
30            var currentPage = parseInt(form.find('input[name="gform_target_page_number_' + formId + '"]').val() || form.find('input[name="gform_target_page_number"]').val());
31            
32            // 设置目标页面为下一页
33            var nextPage = currentPage ;
34            form.find('input[name="gform_target_page_number_' + formId + '"]').val(nextPage);
35            form.find('input[name="gform_target_page_number"]').val(nextPage);
36            
37           
38            // 提交表单
39            form.submit();
40        
41    });
42
43    $('#input_3_25').change(function() {
44        // 获取当前选中的值
45        var selectedValue = $(this).val();
46        
47        // 检查是否选中了"Social Media"
48        if (selectedValue === 'Social Media') {
49            // 为input元素添加aria-required属性
50            $('#input_3_27').attr('aria-required', 'true');
51        } else {
52            // 如果选中的不是"Social Media",移除aria-required属性
53            $('#input_3_27').removeAttr('aria-required');
54        }
55    });
56});

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.