PageSourceSearch

https://matsch-und-piste.de/wp-content/plugins/wpapps_press_gd_options/assets/js/gd-op-widget.js?ver=7.1.2

js matsch-und-piste.de collected 2026-10-03 21:39:09 UTC 5,011 bytes, 105 lines download raw bytes

1jQuery(document).ready(function() {
2    jQuery('.tabs-list li a').click(function(e) {
3        e.preventDefault();
4    });
5
6    jQuery('.tabs-list li').click(function() {
7       var tabid = jQuery(this).find('a').attr('href');
8       jQuery(this).parents('.tabs-gd-pm').children('.tab').removeClass('active');
9       jQuery(this).parents('.tabs-gd-pm').children('.tabs-list').children('li').removeClass('active');
10       jQuery(this).parents('.tabs-gd-pm').children(tabid).addClass('active');
11       jQuery(this).addClass('active');
12       store_in_session();
13    });
14
15    function store_in_session() {
16        var activeTab = '';
17        var tabids = [];
18        jQuery('.tabs-list').each(function() {
19            if(jQuery(this).find('li.active').length > 0) {
20                activeTab = jQuery(this).find('li.active').find('a').attr('href');
21                tabids.push(activeTab);
22            }
23        });
24
25        sessionStorage.setItem('active-tab-ids', tabids);
26        var urlslug = window.location.href.split('/').slice(-2)[0];
27        sessionStorage.setItem('url-slug', urlslug);
28    }
29
30    if (sessionStorage.getItem('active-tab-ids') != null && sessionStorage.getItem('url-slug') == window.location.href.split('/').slice(-2)[0]) {
31        var tabids = sessionStorage.getItem('active-tab-ids');
32        var tabidsAr = tabids.split(',');
33         console.log(tabidsAr);
34        jQuery('.tabs-gd-pm').each(function() {
35            jQuery(this).children('.tab.active').removeClass('active');
36            jQuery(this).children('.tabs-list').children('li.active').removeClass('active');
37        });
38
39        jQuery.each(tabidsAr, function(key, id) {
40            jQuery('.subtablist').each(function() {
41                jQuery(this).find('a[href="'+id+'"]').parent().addClass('active');
42            });
43
44            jQuery(id).addClass('active');
45        });
46    }
47
48    /* fluent crm notes widget */
49    if(jQuery('#wpapps_fluent_crm_add_note_button').length > 0) {
50        jQuery('#wpapps_fluent_crm_add_note_button').on('click', function() {
51            var current_element = jQuery(this);
52            var parent_wrapper = current_element.parents('.add-note-form-wrap');
53            var subscriber_id = current_element.data('subscriber');
54            var created_by = current_element.data('created_by');
55            var note_title = jQuery.trim(parent_wrapper.find('#wpapps_fluent_crm_note_title').val());
56            var note_description = jQuery.trim(parent_wrapper.find('#wpapps_fluent_crm_note_desc').val());
57            if(parent_wrapper.find('.wpapps-gd-fluent-crm-add-note-notices').text() != '') {
58                parent_wrapper.find('.wpapps-gd-fluent-crm-add-note-notices').text('').removeClass('error success').hide();
59            }
60
61            if(note_title == '' || note_title == null) {
62                parent_wrapper.find('.wpapps-gd-fluent-crm-add-note-notices').text('The title field is required!').addClass('error').show();
63                return false;
64            }
65
66            if(note_description == '' || note_description == null) {
67                parent_wrapper.find('.wpapps-gd-fluent-crm-add-note-notices').text('The description field is required!').addClass('error').show();
68                return false;
69            }
70
71            jQuery.ajax({
72                type: 'POST',
73                url: gd_op_common_var.ajax_url,
74                data : {
75                    action: 'wpapps_gd_fluent_crm_add_note',
76                    nonce: gd_op_common_var.nonce,
77                    subscriber_id: subscriber_id,
78                    created_by: created_by,
79                    note_title: note_title,
80                    note_description: note_description,
81                },
82                beforeSend: function() {
83                    jQuery('.wpapps-loader', parent_wrapper).remove();
84                    jQuery(current_element).after('<div class="wpapps-loader" style="display: inline-block;vertical-align: middle;"><i class="fa fa-refresh fa-spin fa-2x fa-fw"></i></div>');
85                },
86                success: function(data) {
87                    jQuery('.wpapps-loader', parent_wrapper).remove();
88                    parent_wrapper.find('.wpapps-gd-fluent-crm-add-note-notices').text(data.message);
89                    if(data.success === true) {
90                        parent_wrapper.find('#wpapps_fluent_crm_note_title').val('');
91                        parent_wrapper.find('#wpapps_fluent_crm_note_desc').val('');
92                        parent_wrapper.find('.wpapps-gd-fluent-crm-add-note-notices').addClass('success').show();
93                    }
94                    else {
95                        parent_wrapper.find('.wpapps-gd-fluent-crm-add-note-notices').addClass('error').show();
96                    }
97                },
98                error: function(xhr, textStatus, errorThrown) {
99                    jQuery('.wpapps-loader', parent_wrapper).remove();
100                }
101            });
102        });
103    }
104    /* end fluent crm notes widget */
105});

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.