PageSourceSearch

https://beautybox5.com/wp-content/plugins/woocommerce-products-filter/js/html_types/radio_ver-4.7.3.js

js beautybox5.com collected 2026-10-03 20:41:52 UTC 4,257 bytes, 94 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opens = _____WB$wombat$assign$function_____("opens");
10function woof_init_radios() {
11    if (icheck_skin != 'none') {
12        jQuery('.woof_radio_term').iCheck('destroy');
13
14        jQuery('.woof_radio_term').iCheck({
15            radioClass: 'iradio_' + icheck_skin.skin + '-' + icheck_skin.color,
16            //radioClass: 'iradio_square-green'        
17        });
18
19        jQuery('.woof_radio_term').unbind('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        //this script should be, because another way wrong way of working if to click on the label - removed
32        /*
33        jQuery('.woof_radio_label').unbind();
34        jQuery('label.woof_radio_label').click(function () {
35            jQuery(this).prev().find('.woof_radio_term').trigger('ifChecked');
36            jQuery(this).parents('.woof_list_radio').find('.checked').removeClass('checked');            
37            jQuery(this).prev().addClass('checked');
38            return false;
39        });
40        */
41        //***
42
43
44    } else {
45        jQuery('.woof_radio_term').on('change', function (event) {
46            jQuery(this).attr("checked", true);
47            var slug = jQuery(this).data('slug');
48            var name = jQuery(this).attr('name');
49            var term_id = jQuery(this).data('term-id');
50            woof_radio_direct_search(term_id, name, slug);
51        });
52    }
53
54    //***
55
56    jQuery('.woof_radio_term_reset').click(function () {
57        woof_radio_direct_search(jQuery(this).data('term-id'), jQuery(this).attr('name'), 0);
58        jQuery(this).parents('.woof_list').find('.checked').removeClass('checked');
59        jQuery(this).parents('.woof_list').find('input[type=radio]').removeAttr('checked');
60        jQuery(this).remove();
61        return false;
62    });
63}
64
65function woof_radio_direct_search(term_id, name, slug) {
66
67    jQuery.each(woof_current_values, function (index, value) {
68        if (index == name) {
69            delete woof_current_values[name];
70            return;
71        }
72    });
73
74    if (slug != 0) {
75        woof_current_values[name] = slug;
76        jQuery('a.woof_radio_term_reset_' + term_id).hide();
77        jQuery('woof_radio_term_' + term_id).filter(':checked').parents('li').find('a.woof_radio_term_reset').show();
78        jQuery('woof_radio_term_' + term_id).parents('ul.woof_list').find('label').css({'fontWeight': 'normal'});
79        jQuery('woof_radio_term_' + term_id).filter(':checked').parents('li').find('label.woof_radio_label_' + slug).css({'fontWeight': 'bold'});
80    } else {
81        jQuery('a.woof_radio_term_reset_' + term_id).hide();
82        jQuery('woof_radio_term_' + term_id).attr('checked', false);
83        jQuery('woof_radio_term_' + term_id).parent().removeClass('checked');
84        jQuery('woof_radio_term_' + term_id).parents('ul.woof_list').find('label').css({'fontWeight': 'normal'});
85    }
86
87    woof_ajax_page_num = 1;
88    if (woof_autosubmit) {
89        woof_submit_link(woof_get_submit_link());
90    }
91}
92
93
94}

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.