PageSourceSearch

https://rentalplaza.in/wp-content/plugins/woocommerce-products-fil…/slider/js/html_types/slider.js?ver=3.3.6.2

js rentalplaza.in collected 2026-09-24 09:43:10 UTC 3,269 bytes, 110 lines download raw bytes

1"use strict";
2function woof_init_sliders() {
3    jQuery.each(jQuery('.woof_taxrange_slider'), function (index, input) {
4	
5      try {	    
6	    var slags = jQuery(input).data('slags').split(',');
7	    var type = jQuery(input).data('type');
8            var tax = jQuery(input).data('tax');
9	    var skin = jQuery(input).data('skin');
10            var current = String(jQuery(input).data('current')).split(',');
11            var from_index = 0, to_index = slags.length - 1;
12
13            //***
14            if (current.length > 0 && slags.length > 0) {
15                jQuery.each(slags, function (index, v) {
16                    if (v.toLowerCase() == current[0].toLowerCase()) {
17                        from_index = index;
18                    }
19                    if (v.toLowerCase() == current[current.length - 1].toLowerCase()) {
20                        to_index = index;
21                    }
22                });
23            } else {
24                to_index = parseInt(jQuery(input).data('max'), 10) - 1;
25            }
26	    
27	    if (jQuery(input).data('current') && slags.length > 0 && 'single' == type) {
28		from_index = to_index;
29		to_index = 0;
30	    }
31	    
32
33            jQuery(input).ionRangeSlider({
34                decorate_both: false,
35                values_separator: "",
36                from: from_index,
37                to: to_index,
38                //min_interval: 1,
39                //type: 'double',
40		type: type,
41                prefix: '',
42                postfix: '',
43                prettify: true,
44                hideMinMax: false,
45                hideFromTo: false,
46                grid: true,
47                step: 1,
48                onFinish: function (ui) {
49                    //*** range
50		    if ('single' == type) {
51			woof_current_values[tax] = (slags.slice(0, ui.from+1)).join(',');
52		    } else {
53			woof_current_values[tax] = (slags.slice(ui.from, ui.to + 1)).join(',');
54		    }
55                    
56		    
57                    woof_ajax_page_num = 1;
58                    if (woof_autosubmit) {
59                        woof_submit_link(woof_get_submit_link());
60                    }
61
62                    woof_update_tax_slider(input);
63                    return false;
64                },
65                onChange: function (ui) {
66		       
67                    woof_update_tax_slider(input);
68                },
69                onRedraw: function (ui) {
70		    woof_update_tax_slider(input);
71                }
72            });
73
74            woof_update_tax_slider(input);
75
76        } catch (e) {
77
78        }
79    });
80
81    //***
82
83    jQuery('.woof_hide_slider').parent('.woof_block_html_items').parent('.woof_container_inner').parent('.woof_container_slider').remove();
84}
85
86
87
88function woof_update_tax_slider( input) {
89
90    var step = 1;
91
92    if (jQuery(input).data('grid_step') != undefined) {
93        step = parseInt(jQuery(input).data('grid_step'));
94        if (step == 0) {
95            return false;
96        }
97    }
98    var lbls = jQuery(input).prev('span').find(".irs-grid-text");
99    var i = 0;
100    for (i = 1; i < jQuery(lbls).length - 1; i++) {
101
102        if (i % step == 0 && step != -1) {
103            jQuery(lbls[i]).css('visibility', 'visible');
104        } else {
105            jQuery(lbls[i]).css('visibility', 'hidden');
106        }
107
108    }
109
110}

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.