PageSourceSearch

https://flowerexplosion.nl/wp-content/plugins/woocommerce-products…/html_types/select_radio_check.js?ver=1.4.0

js flowerexplosion.nl collected 2026-09-27 08:54:25 UTC 4,091 bytes, 113 lines download raw bytes

1"use strict";
2
3jQuery(function ($) {
4    $(document).on('click', function (e) {
5        if (!$(e.target).parents().hasClass("woof_select_radio_check")) {
6            $(".woof_select_radio_check dd ul").hide(200);
7            $(".woof_select_radio_check_opened").removeClass('woof_select_radio_check_opened');
8        }
9    });
10});
11
12
13function woof_init_select_radio_check() {
14    jQuery(".woof_select_radio_check dt a.woof_select_radio_check_opener").on('click', function () {
15        var _this = this;
16        jQuery.each(jQuery(".woof_select_radio_check_opener"), function (i, sel) {
17            if (sel !== _this) {
18                jQuery(this).parents('.woof_select_radio_check').find("dd ul").hide();
19                jQuery(this).parents('.woof_select_radio_check').find('.woof_select_radio_check_opened').removeClass('woof_select_radio_check_opened');
20            }
21        });
22
23
24        //+++
25        jQuery(this).parents('.woof_select_radio_check').find("dd ul").slideToggle(200);
26        if (jQuery(this).parent().hasClass('woof_select_radio_check_opened')) {
27            jQuery(this).parent().removeClass('woof_select_radio_check_opened');
28        } else {
29            jQuery(this).parent().addClass('woof_select_radio_check_opened');
30        }
31    });
32
33    //+++
34
35    if (Object.keys(woof_current_values).length > 0) {
36        jQuery.each(woof_current_values, function (index, value) {
37
38            if (!jQuery('.woof_hida_' + index).length) {
39                return;
40            }
41
42            value = value.toString().trim();
43            if (value.search(',')) {
44                value = value.split(',');
45            }
46            //+++
47            var txt_results = new Array();
48            var v_results = new Array();
49            jQuery.each(value, function (i, v) {
50                var txt = v;
51                var is_in_custom = false;
52                if (Object.keys(woof_lang_custom).length > 0) {
53                    jQuery.each(woof_lang_custom, function (i, tt) {
54                        if (i == index) {
55                            is_in_custom = true;
56                            txt = tt;
57                        }
58                    });
59                }
60
61                if (!is_in_custom) {
62                    try {
63                        txt = jQuery("input[data-anchor='woof_n_" + index + '_' + v + "']").val();
64                    } catch (e) {
65                        console.log(e);
66                    }
67
68                    if (typeof txt === 'undefined')
69                    {
70                        txt = v;
71                    }
72                }
73
74                txt_results.push(txt);
75                v_results.push(v);
76
77            });
78
79            if (txt_results.length) {
80                jQuery('.woof_hida_' + index).addClass('woof_hida_small');
81                jQuery('.woof_hida_' + index).html('<div class="woof_products_top_panel2"></div>');
82                var panel = jQuery('.woof_hida_' + index).find('.woof_products_top_panel2');
83                panel.show();
84                panel.html('<ul></ul>');
85                jQuery.each(txt_results, function (i, txt) {
86                    panel.find('ul').append(
87                            jQuery('<li>').append(
88                            jQuery('<a>').attr('href', "").attr('data-tax', index).attr('data-slug', v_results[i]).append(
89                            jQuery('<span>').attr('class', 'woof_remove_ppi').append(txt)
90                            )));
91                });
92
93            } else {
94                jQuery('.woof_hida_' + index).removeClass('woof_hida_small');
95                jQuery('.woof_hida_' + index).html(jQuery('.woof_hida_' + index).data('title'));
96            }
97
98        });
99
100    }
101
102    //***
103
104    jQuery.each(jQuery('.woof_mutliSelect'), function (i, txt) {
105        if (parseInt(jQuery(this).data('height'), 10) > 0) {
106            jQuery(this).find('ul.woof_list:first-child').eq(0).css('max-height', jQuery(this).data('height'));
107        } else {
108            jQuery(this).find('ul.woof_list:first-child').eq(0).css('max-height', 100);
109        }
110    });
111
112
113}

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.