PageSourceSearch

https://www.termasfederacion.com/wp-content/themes/listingpro/assets/js/pricing.js

js termasfederacion.com collected 2026-10-07 15:59:01 UTC 7,491 bytes, 222 lines download raw bytes

1/*--------------------------------- Price plan Hide and show features----------------------------------*/
2
3jQuery(document).ready(function () {
4
5    //new code 2.6.15
6    jQuery(document).on('click', '.lp-hide-show-price-features', function () {
7        var $this = jQuery(this);
8        var showfeaures = jQuery(this).data('show');
9        var hidefeaures = jQuery(this).data('hide');
10        jQuery('.lp-hide-show-price-features').text(showfeaures);
11
12
13        if (false == jQuery(this).next().is(':visible')) { //hide current tab when click on other tab
14            //jQuery('.lp-price-list').slideUp(700);
15            jQuery(".lp-hide-show-price-features").removeClass('expanded');
16
17        }
18
19        $this.toggleClass('MoreDetails');
20
21        if ($this.hasClass('MoreDetails')) {
22            $this.text(hidefeaures);
23
24            //jQuery(this).closest('.section-lp-price-list').find('.lp-price-list').slideDown(700);
25            jQuery(".lp-price-list").fadeIn('400');
26
27        } else {
28
29            //jQuery(this).closest('.section-lp-price-list').find('.lp-price-list').slideUp(700);
30
31            $this.text(showfeaures);
32
33            jQuery(".lp-price-list").fadeOut('400');
34
35        }
36
37    });
38    //end new code 2.6.15
39});
40
41
42/*-------------------Selected Radio Button ----------------*/
43jQuery(document).ready(function () {
44    jQuery('.lp-price-cats-with-icon li input[type=radio]').click(function () {
45        jQuery('.lp-price-cats-with-icon li input[type=radio]:not(:checked)').parent().removeClass("active-category-radio");
46        jQuery('.lp-price-cats-with-icon li input[type=radio]:checked').parent().addClass("active-category-radio");
47    });
48});
49
50
51jQuery(document).ready(function () {
52    jQuery('.lp-price-cats-with-icon-v2 li input[type=radio]').click(function () {
53        jQuery('.lp-price-cats-with-icon-v2 li input[type=radio]:not(:checked)').parent().removeClass("active-category-radio-v2");
54        jQuery('.lp-price-cats-with-icon-v2 li input[type=radio]:checked').parent().addClass("active-category-radio-v2");
55    });
56});
57
58// Horizontal view 1 pricing version
59jQuery(document).ready(function () {
60    jQuery(document).on('click', '.horizontal_view_list li input[type=radio]', function () {
61
62        jQuery('.horizontal_view_list li input[type=radio]:not(:checked)').parent('label').removeClass("price_plan_active_disable");
63        jQuery('.horizontal_view_list li input[type=radio]:checked').parent('label').addClass("price_plan_active_disable");
64
65        // Add class for show horizontial view with the reference of this class    
66        jQuery('.lp_hori_view_plan_left_section').removeClass('horizontal_choose_button');
67        jQuery(this).closest('.lp_hori_view_plan_left_section').addClass('horizontal_choose_button');
68        // add class for horizontial plan height 
69        jQuery(this).closest('.lp-horizontial-specific').addClass('lp-horizontial-specific-height');
70
71    });
72    // remove class for horizontial plan height
73    jQuery(document).on('click', '.lp-standerd-exlusiv button', function (event) {
74        jQuery('.lp-horizontial-specific').removeClass('lp-horizontial-specific-height');
75    });
76    jQuery(document).on('click', '.lp_button_switcher span', function (event) {
77        jQuery('.lp-horizontial-specific').removeClass('lp-horizontial-specific-height');
78    });
79
80    jQuery('.horizontal_view_list li:nth(0) input[type=radio]').trigger('click').parent('label').addClass("price_plan_active_disable");
81});
82
83
84
85/*----------------slider for pricing plan category-----------------*/
86
87jQuery(document).ready(function () {
88
89    var x = jQuery('.lp_category_list_slide').children();
90
91    for (i = 0; i < x.length; i += 1) {
92        x.slice(i, i + 1).wrapAll('<div class="' + i + '"></div>');
93    }
94    if (jQuery('.lp_category_list_slide').length != 0) {
95        jQuery('.lp_category_list_slide').slick({
96            slidesToShow: 5,
97            slidesToScroll: 1,
98            prevNext: true,
99            arrows: true,
100            dots: false,
101            responsive: [
102                {
103                    breakpoint: 768,
104                    settings: {
105                        arrows: true,
106                        infinite: false,
107                        slidesToShow: 4,
108                        slidesToScroll: 1
109                    }
110                },
111                {
112                    breakpoint: 481,
113                    settings: {
114                        arrows: true,
115                        infinite: false,
116                        slidesToShow: 3,
117                        slidesToScroll: 1
118                    }
119                },
120
121                {
122                    breakpoint: 390,
123                    settings: {
124                        arrows: true,
125                        infinite: false,
126                        slidesToShow: 2,
127                        slidesToScroll: 1
128                    }
129                }
130            ]
131        });
132    }
133
134});
135
136
137/*--------------- Slider For pricing plan packages--------------*/
138
139
140/*jQuery(document).ready(function(){
141  jQuery('.slider_pricing_Plan').slick({
142   slidesToShow: 3,
143   slidesToScroll: 1,
144  arrows: true,
145  fade: true,
146  dots: true,
147  arrows:true
148  });
149});*/
150
151
152/*----------Drop down Category list for pricing plan-------------------*/
153
154jQuery(document).ready(function () {
155    //jQuery("#category_dropdown").select2({minimumResultsForSearch: -1});
156
157    jQuery('#category_dropdown').on('select2:select', function (e) {
158
159        $this = jQuery(this);
160        jQuery("body").addClass("listingpro-loading");
161        jQuery('#cats-selected-plans').html('');
162        var templatestyle = jQuery(this).closest('#select_style').data('style');
163
164        jQuery.ajax({
165            type: 'POST',
166            dataType: 'json',
167            url: ajax_term_object.ajaxurl,
168            data: {
169                'action': 'listingpro_select_plan_by_cat',
170                'term_id': $this.val(),
171                'templatestyle': templatestyle,
172            },
173            success: function (data) {
174                jQuery("body").removeClass("listingpro-loading");
175                if (data.plans) {
176                    jQuery('#cats-selected-plans').html(data.plans);
177                    var $hiddenField = '<input type="hidden" name="lp_pre_selected_cats" value="' + $this.val() + '" />';
178                    jQuery($hiddenField).appendTo(".price-plan-button");
179                }
180            }
181        });
182    });
183
184});
185
186
187// Pricing Plan tool tip 
188
189jQuery(document).ready(function () {
190
191
192    jQuery('.tooltip_price_features span').on('mouseover', function () {
193        var $this = jQuery(this);
194        $this.closest('.tooltip_price_features').find('.lp_tooltip_text').css("visibility", "visible");
195
196    });
197
198    jQuery('.tooltip_price_features span').on('mouseout', function () {
199        var $this = jQuery(this);
200        $this.closest('.tooltip_price_features').find('.lp_tooltip_text').css("visibility", "hidden");
201
202    });
203
204});
205
206// Pricing Plan tool tip  for ajax response
207
208jQuery(document).ready(function () {
209
210    jQuery(document).on('mouseover', '.tooltip_price_features span', function () {
211        var $this = jQuery(this);
212        $this.closest('.tooltip_price_features').find('.lp_tooltip_text').css("visibility", "visible");
213
214    });
215
216    jQuery(document).on('mouseout', '.tooltip_price_features span', function () {
217        var $this = jQuery(this);
218        $this.closest('.tooltip_price_features').find('.lp_tooltip_text').css("visibility", "hidden");
219
220    });
221});
222

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.