PageSourceSearch

https://www.flooringexpo.com/wp-content/themes/carpetking/js/public-script.js

js flooringexpo.com collected 2026-09-29 11:49:52 UTC 4,206 bytes, 128 lines download raw bytes

1jQuery(document).ready(function ($) {
2    $('#reset_btn').click(function () {
3        $('#input_1_1').val('');
4    });
5
6    $('.testimonial-slidersec .testimonial-slides').slick({
7        dots: false,
8        infinite: true,
9        slidesToShow: 1,
10        autoplay: true,
11        arrows: false,
12        autoplaySpeed: 2000,
13        fade: true,
14        speed: 500,
15    });
16    $('.testimonial-slides > div').slick({
17        dots: false,
18        infinite: true,
19        slidesToShow: 1,
20        autoplay: true,
21        autoplaySpeed: 2000,
22        arrows: false, fade: true,
23        speed: 500,
24    });
25
26    jQuery('.menu').before('<a class="toggle"><i></i></a>');
27
28    jQuery('.toggle').click(function () {
29        jQuery(this).toggleClass('active');
30        jQuery(this).next().slideToggle(200);
31    });
32
33    jQuery('.menu > li > .sub-menu').before('<a class="child-trigger"><span></span></a>');
34
35    jQuery('a.child-trigger').click(function () {
36        jQuery(this).toggleClass('child-open');
37
38        jQuery(this).parent().siblings().find('.sub-menu').slideUp(250);
39
40        jQuery(this).next('.sub-menu').slideToggle(250);
41
42    });
43
44    jQuery(document).on('click', '.play-btn', function () {
45        jQuery('.home-video-popup').toggleClass('is-visible');
46    });
47
48    jQuery(document).on('click', '.ofrbox-btn', function () {
49		jQuery(document).find('#input_5_5').prop('disabled', false);
50        if(jQuery(this).hasClass('months-12')) {
51            jQuery(document).find('#input_5_5').val('12 MONTHS').trigger('change');
52        }else if(jQuery(this).hasClass('months-60')) {
53            jQuery(document).find('#input_5_5').val('60 MONTHS').trigger('change');
54        } else if(jQuery(this).hasClass('months-120')) {
55            jQuery(document).find('#input_5_5').val('120 MONTHS').trigger('change');
56        }
57		jQuery(document).find('#input_5_5').prop('disabled', 'disabled');
58        jQuery('.fin-ofrpopup-boxwrap').toggleClass('is-visible');
59        jQuery('body').toggleClass('no-scroll')
60    });
61
62
63    // gform date selection
64    gform.addFilter('gform_datepicker_options_pre_init', function (optionsObj, formId, fieldId) {
65        // Apply to field 2 only 
66        if (formId == 4 && fieldId == 9) {
67            optionsObj.minDate = 1;
68        }
69        return optionsObj;
70    });
71});
72
73jQuery(window).scroll(function ($) {
74    if (jQuery(this).scrollTop() > 151) {
75        jQuery('.header').addClass('fixed');
76    } else {
77        jQuery('.header').removeClass('fixed');
78    }
79});
80
81jQuery(window).load(function ($) {
82    equalheight('.same-height');
83    contentspace();
84    equalheight('.fin-ofr-boxwrap .box-top');
85    equalheight('.fin-ofr-boxwrap .box-bottom .wpb_text_column ul');
86});
87
88jQuery(window).resize(function ($) {
89    equalheight('.same-height');
90    contentspace();
91    equalheight('.fin-ofr-boxwrap .box-top');
92    equalheight('.fin-ofr-boxwrap .box-bottom .wpb_text_column ul');
93});
94
95function equalheight(container) {
96    var currentTallest = 0, currentRowStart = 0, rowDivs = new Array(), $el, topPosition = 0, currentDiv;
97    jQuery(container).each(function () {
98        $el = jQuery(this);
99        jQuery($el).height('auto')
100
101        topPosition = $el.position().top;
102        if (currentRowStart != topPosition) {
103            for (currentDiv = 0; currentDiv < rowDivs.length; currentDiv++) {
104                rowDivs[currentDiv].outerHeight(currentTallest);
105            }
106
107            rowDivs.length = 0;
108            currentRowStart = topPosition;
109            currentTallest = $el.height();
110            rowDivs.push($el);
111        } else {
112            rowDivs.push($el);
113            currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest);
114        }
115
116        for (currentDiv = 0; currentDiv < rowDivs.length; currentDiv++) {
117            rowDivs[currentDiv].height(currentTallest);
118        }
119    });
120}
121
122function contentspace() {
123    var windwidth = jQuery(window).width();
124    var containerwidth = jQuery('.container').width();
125    var contentlrspace = (windwidth - containerwidth) / 2;
126    jQuery('.testimonila-slide-content').css('padding-left', contentlrspace);
127    jQuery('.testimonila-slide-content').css('padding-right', contentlrspace);
128}

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.