PageSourceSearch

https://theinnersanctumsanctuary.org/wp-content/plugins/woocommerc…/front-mep-form-builder.js?ver=1791343015

js theinnersanctumsanctuary.org collected 2026-10-07 03:18:03 UTC 4,520 bytes, 120 lines download raw bytes

1(function($) {
2
3    var p_f_height;
4    var is_collapse = true;
5    var show_row = 2;
6
7    var me = function ( element, row, is_collapse ) {
8
9        var p, c, c_height, init_height;
10
11        if ( is_collapse ) {
12            p = $(element);
13            p_f_height = p.height();
14            c = p.children();
15
16            if (c.length > 0) {
17                c_height = c.height();
18                row = parseInt(row);
19
20                // Is Mobile
21                if ($(window).width() <= 425) {
22                    row = row + 3;
23                }
24
25                init_height = row * c_height;
26                p.height(init_height);
27            }
28        }
29    }
30
31    var expand_section = function(e) {
32        var ele = $('.mep-event-attendee--inner');
33        is_collapse = !is_collapse;
34
35        if(is_collapse) {
36            me('.mep-event-attendee--inner', show_row, is_collapse);
37            $(e).text('See all');
38        } else {
39            ele.height(p_f_height);
40            $(e).text('See less');
41        }
42    }
43
44    $('#attendee--see-all').on('click', function() {
45        expand_section($(this));
46    });
47
48    // init
49    me('.mep-event-attendee--inner', show_row, is_collapse);
50
51
52    $(document).on('click', '[data-radio]', function () {
53        let target = $(this).closest('label');
54        let value = $(this).attr('data-radio');
55        target.find('.customRadio').removeClass('active');
56        $(this).addClass('active');
57        target.find('input').val(value).trigger('change');
58    });
59    $(document).on('click', '#mage_event_submit .customCheckboxLabel', function () {
60        let parent = $(this).closest('.customCheckBoxArea');
61        let value = '';
62        let separator = ',';
63        parent.find(' input[type="checkbox"]').each(function () {
64            if ($(this).is(":checked")) {
65                let currentValue = $(this).attr('data-checked');
66                value = value + (value ? separator : '') + currentValue;
67            }
68        }).promise().done(function () {
69            parent.find('input[type="text"]').val(value);
70        });
71    });
72    $(document).on('DOMSubtreeModified', '#mage_event_submit #ttyttl', function () {
73        setTimeout(function (){
74            if(parseInt($('#ttyttl').html())>0){
75                $('label.term_condition_area').slideDown(250);
76            }else{
77                $('label.term_condition_area').slideUp(250);
78            }
79        },1000);
80    });
81    /************File Upload*************/
82    $(document).on('click', '#mage_event_submit .attach_file_area .attach_file_view', function () {
83        let parent = $(this).closest('.attach_file_area');
84        parent.find('input[type="file"]').trigger('click');
85    });
86    $(document).on('change', '#mage_event_submit .attach_file_area input[type="file"]', function (e) {
87        let parent = $(this).closest('.attach_file_area');
88        let input = this;
89        let url = input.value;
90        let ext = url.substring(url.lastIndexOf('.') + 1).toLowerCase();
91        if (input.files && input.files[0] && (ext === "gif" || ext === "png" || ext === "jpg" || ext==="pdf")) {
92            if (input.files[0].size <= 1024000) {
93                let reader = new FileReader();
94                reader.onload = function (e) {
95                    if(ext==="pdf"){
96                        parent.find('.attach_file_view img').slideUp(250);
97                        parent.find('.attach_file_view span').slide
97Up(250);
98                        parent.find('.attach_file_view iframe').attr('src', e.target.result).slideDown(250);
99                    }else {
100                        parent.find('.attach_file_view iframe').slideUp(250);
101                        parent.find('.attach_file_view span').slideUp(250);
102                        parent.find('.attach_file_view img').attr('src', e.target.result).slideDown(250);
103                    }
104                }
105                reader.readAsDataURL(input.files[0]);
106            } else {
107                alert('Maximum size 1MB');
108                parent.find('.attach_file_view img').slideUp(250);
109                parent.find('.attach_file_view span').slideDown(250);
110                parent.find('.attach_file_view iframe').slideUp(250);
111                $(this).val('');
112            }
113        }else {
114            parent.find('.attach_file_view img').slideUp(250);
115            parent.find('.attach_file_view span').slideDown(250);
116            parent.find('.attach_file_view iframe').slideUp(250);
117            $(this).val('');
118        }
119    });
120})(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.