PageSourceSearch

https://texasretreat.com/wp-content/themes/sinatra-child/custom.js?ver=562072555

js texasretreat.com collected 2026-10-05 19:44:13 UTC 5,444 bytes, 137 lines download raw bytes

1jQuery(document).ready(function() {
2    function AddReadMore() {
3        var carLmt = 160;
4        var readMoreTxt = " ... Read More";
5        var readLessTxt = " Read Less";
6
7        jQuery(".addReadMore").each(function() {
8            if (jQuery(this).find(".firstSec").length)
9                return;
10
11            var allstr = jQuery(this).html();
12            if (allstr.length > carLmt) {
13                var firstSet = allstr.substring(0, carLmt);
14                var secdHalf = allstr.substring(carLmt, allstr.length);
15                var strtoadd = firstSet + "<span class='SecSec'>" + secdHalf + "</span><span class='readMore' title='Click to Show More'>" + readMoreTxt + "</span><span class='readLess' title='Click to Show Less'>" + readLessTxt + "</span>";
16                jQuery(this).html(strtoadd);
17            }
18        });
19
20        jQuery(document).on("click", ".readMore, .readLess", function() {
21            jQuery(this).closest(".addReadMore").toggleClass("showlesscontent showmorecontent");
22        });
23    }
24
25    function get_venues(post_id, next_post_id) {
26        jQuery.ajax({
27            type: "POST",
28            // dataType: "html",
29            url: "/wp-admin/admin-ajax.php",
30            data: { action: "wp_venueSection_func", id: post_id, nextid: next_post_id },
31            beforeSend: function(response) {
32                jQuery('.ajax-loader').css("visibility", "visible");
33                jQuery('.hime').css("visibility", "hidden");
34            },
35            success: function(response) {
36                jQuery('.venuesContain').html(response);
37                AddReadMore();
38            },
39            complete: function() {
40       
41                    jQuery('.slider-for').slick({
42                        slidesToShow: 1,
43                        slidesToScroll: 1,
44                        arrows: false,
45                        fade: true,
46                        asNavFor: '.slider-nav',
47                        adaptiveHeight: true
48                    });
49                    jQuery('.slider-nav').slick({
50                        slidesToShow: 1,
51                        slidesToScroll: 1,
52                        asNavFor: '.slider-for',
53                        dots: false,
54                        centerMode: true,
55                        focusOnSelect: true,
56                        variableWidth: true
57                    });
58           
59            }
60        });
61    }
62    get_venues('1317', '1313');
63
64    jQuery(document).on('change', "select.dropVenue", function() {
65        var post_id = jQuery(this).find('option:selected').val();
66        var next_post_id = jQuery(this).find('option:selected').next().val();
67
68        if (!jQuery(this).find('option:selected').next().val()) {
69            next_post_id = jQuery(this).find('option:selected').val();
70        }
71
72        //console.log(next_post_id + '--');
73        get_venues(post_id, next_post_id);
74    });
75
76    jQuery(document).on('click', ".nextpbtn", function(event) {
77        event.preventDefault();
78        var post_id = jQuery(this).attr('data-next');
79        var next_post_id = jQuery('select.dropVenue').find('option:selected').next().next().val();
80
81        if (!jQuery('select.dropVenue').find('option:selected').next().next().val()) {
82            next_post_id = jQuery('select.dropVenue').find('option:first-child').val();
83        }
84        //console.log(post_id + '--postid');
85        //console.log(next_post_id + '--nextpostid');
86        get_venues(post_id, next_post_id);
87    });
88
89    setTimeout(function() {
90        jQuery('.slider-for').slick({
91            slidesToShow: 1,
92            slidesToScroll: 1,
93            arrows: false,
94            fade: true,
95            asNavFor: '.slider-nav',
96            adaptiveHeight: true
97        });
98        jQuery('.slider-nav').slick({
99            slidesToShow: 12,
100            slidesToScroll: 1,
101            asNavFor: '.slider-for',
102            dots: false,
103            centerMode: true,
104            focusOnSelect: true,
105            variableWidth: true
106        });
107    }, 2000);
108
109    jQuery('.static_icon_section_col').hide();
110    jQuery('.animation_icon_section_col').each(function() {
111        var main_img = jQuery(this).find('img');
112        var m_img = main_img.attr('data-src');
113        var stat_parent_img = jQuery(this).prev('.static_icon_section_col').find('img').attr('src');
114
115        // main_img.attr('s_img', stat_parent_img);
116        // main_img.attr('an_img', m_img);
117
118        // main_img.attr('src', stat_parent_img);
119    });
120
121    jQuery('.animation_icon_section .elementor-col-33').each(function() {
122        jQuery(this).on("mouseover", function() {
123            var src1 = jQuery(this).find('.static_icon_section_col').find('img').attr('src');
124            var src2 = jQuery(this).find('.animation_icon_section_col').find('img').attr('src');
125            jQuery(this).find('.animation_icon_section_col').find('img').attr("src", src1);
126            jQuery(this).find('.static_icon_section_col').find('img').attr("src", src2);
127        }).on("mouseout", function() {
128            var src1 = jQuery(this).find('.static_icon_section_col').find('img').attr('src');
129            var src2 = jQuery(this).find('.animation_icon_section_col').find('img').attr('src');
130        });
131    });
132
133    setTimeout(function() {
134        jQuery('.elementor-date-field').attr('onfocus', "(this.type='date')");
135        jQuery('.elementor-date-field').attr('onblur', "(this.type='date')");
136    }, 2000);
137});

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.