PageSourceSearch

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

js flowerexplosion.nl collected 2026-09-27 08:54:15 UTC 3,721 bytes, 91 lines download raw bytes

1"use strict";
2function woof_init_radios() {
3    if (icheck_skin != 'none') {
4        jQuery('.woof_radio_term').iCheck('destroy');
5
6        let skin = jQuery('.woof_radio_term').parents('.woof_redraw_zone').eq(0).data('icheck-skin');
7        if (skin) {
8            skin = skin.split('_');
9            jQuery('.woof_radio_term').iCheck({
10                radioClass: 'iradio_' + skin[0] + '-' + skin[1]
11            });
12        } else {
13            jQuery('.woof_radio_term').iCheck({
14                radioClass: 'iradio_' + icheck_skin.skin + '-' + icheck_skin.color
15            });
16        }
17
18
19        jQuery('.woof_radio_term').off('ifChecked');
20        jQuery('.woof_radio_term').on('ifChecked', function (event) {
21            jQuery(this).attr("checked", true);
22            jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').removeClass('woof_radio_term_reset_visible');
23            jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').hide();
24            jQuery(this).parents('li').eq(0).find('.woof_radio_term_reset').eq(0).addClass('woof_radio_term_reset_visible');
25            var slug = jQuery(this).data('slug');
26            var name = jQuery(this).attr('name');
27            var term_id = jQuery(this).data('term-id');
28            woof_radio_direct_search(term_id, name, slug);
29        });
30
31        //***
32
33
34
35    } else {
36        jQuery('.woof_radio_term').on('change', function (event) {
37            jQuery(this).attr("checked", true);
38            var slug = jQuery(this).data('slug');
39            var name = jQuery(this).attr('name');
40            var term_id = jQuery(this).data('term-id');
41
42            jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').removeClass('woof_radio_term_reset_visible');
43            jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').hide();
44            jQuery(this).parents('li').eq(0).find('.woof_radio_term_reset').eq(0).addClass('woof_radio_term_reset_visible');
45
46            woof_radio_direct_search(term_id, name, slug);
47        });
48    }
49
50    //***
51
52    jQuery('.woof_radio_term_reset').on('click', function () {
53        woof_radio_direct_search(jQuery(this).data('term-id'), jQuery(this).attr('data-name'), 0);
54        jQuery(this).parents('.woof_list').find('.checked').removeClass('checked');
55        jQuery(this).parents('.woof_list').find('input[type=radio]').removeAttr('checked');
56        //jQuery(this).remove();
57        jQuery(this).removeClass('woof_radio_term_reset_visible');
58        return false;
59    });
60}
61
62
63function woof_radio_direct_search(term_id, name, slug) {
64
65    jQuery.each(woof_current_values, function (index, value) {
66        if (index == name) {
67            delete woof_current_values[name];
68            return;
69        }
70    });
71
72    if (slug != 0) {
73        woof_current_values[name] = slug;
74        jQuery('a.woof_radio_term_reset_' + term_id).hide();
75        jQuery('woof_radio_term_' + term_id).filter(':checked').parents('li').find('a.woof_radio_term_reset').show();
76        jQuery('woof_radio_term_' + term_id).parents('ul.woof_list').find('label').css({'fontWeight': 'normal'});
77        jQuery('woof_radio_term_' + term_id).filter(':checked').parents('li').find('label.woof_radio_label_' + slug).css({'fontWeight': 'bold'});
78    } else {
79        jQuery('a.woof_radio_term_reset_' + term_id).hide();
80        jQuery('woof_radio_term_' + term_id).attr('checked', false);
81        jQuery('woof_radio_term_' + term_id).parent().removeClass('checked');
82        jQuery('woof_radio_term_' + term_id).parents('ul.woof_list').find('label').css({'fontWeight': 'normal'});
83    }
84
85    woof_ajax_page_num = 1;
86    if (woof_autosubmit) {
87        woof_submit_link(woof_get_submit_link());
88    }
89}
90
91

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.