PageSourceSearch

https://connectingcousinstravel.com/wp-content/plugins/destinations/assets/jquery.destinations.js?ver=7.0.5

js connectingcousinstravel.com collected 2026-10-08 23:16:49 UTC 4,305 bytes, 158 lines download raw bytes

1(function($) {
2
3  $('.vc_grid-filter>.vc_grid-filter-item').on('click', function() {
4    $('.vc_grid-filter>.vc_grid-filter-item:not(:first-child)').toggle();
5  });
6
7  setTimeout(function(filter) {
8    $('#destinations').filterData({
9      aspectRatio: '4:3',
10      itemDistance : 20,
11      containerMargin: '25px auto 25px',
12      filterController: '.destinations-filters',
13      responsive : [
14          {
15              breakpoint : 1200,
16              containerWidth : 1100,
17              settings : {
18                  nOfRow : Math.ceil($('.destination-item').length/3),
19                  nOfColumn : 3
20              }
21          },
22          {
23              breakpoint : 992,
24              containerWidth : 970,
25              settings : {
26                  nOfRow : Math.ceil($('.destination-item').length/2),
27                  nOfColumn : 2
28              }
29          },
30          {
31              breakpoint : 768,
32              containerWidth : $(window).width(),
33              settings : {
34                  nOfRow : 38,
35                  nOfColumn : 1
36              }
37          }
38      ]
39    });
40
41    if (document.location.search.length) {
42      $('.destination-filters').trigger('change');
43    }
44
45    $('.accordion').each(function() {
46      var t = $(this),
47          h = t.innerHeight(),
48          fh = t.css('height', 'auto').innerHeight();
49
50      t.data('height', h);
51      t.data('full-height', fh);
52      if ( !t.hasClass('expanded') ) {
53        t.css('height', h);
54      }
55
56      setTimeout(function() {
57        $('.destination-filters a:not(.active)').each(function() {
58          var target = $(this).data('target');
59          $('.explore-destination[data-filter*="' + target + '"]').removeClass('loading').hide();
60        });
61      }, 500 );
62    });
63  },1000);
64
65  $('.destination-filters a').on('click', function(e) {
66    e.preventDefault();
67
68    var target = $(this).data('target');
69
70    $('.destination-filters a').removeClass('active');
71    $(this).addClass('active');
72
73    if ( 'all' == target ) {
74      $('.explore-destination').show();
75    } else {
76      $('.explore-destination').hide();
77      $('.explore-destination[data-filter*="' + target + '"]').show();
78    }
79  });
80
81  $('.locals-filters a').on('click', function(e) {
82    e.preventDefault();
83
84    var target = $(this).data('target');
85
86    $('.locals-filters a').removeClass('active');
87    $(this).addClass('active');
88
89    if ( 'all' == target ) {
90      $('.locals-description').show();
91    } else {
92      $('.locals-description').hide();
93      $('.locals-description[data-filter*="' + target + '"]').show();
94    }
95  });
96
97  $('.poi-filters a').on('click', function(e) {
98    e.preventDefault();
99
100    var target = $(this).data('target');
101
102    $('.poi-filters a').removeClass('active');
103    $(this).addClass('active');
104
105    if ( 'all' == target ) {
106      $('.poi-section').show();
107    } else {
108      $('.poi-section').hide();
109      $('.poi-section[data-filter*="' + target + '"]').show();
110    }
111  });
112
113  $('.accordion').on('click', function() {
114      var t = $(this);
115      
116      if (t.hasClass("expanded")) {
117          var h = t.data('height');
118          t.animate({height:h}, function() { t.removeClass('expanded'); });
119      } else {
120          var h = t.data('full-height');
121          jQuery('.accordion.expanded').trigger('click');
122          t.addClass('expanded');
123          t.animate({height:h}, function() {});
124      }
125
126  });
127
128  // var h = $('.destination-filters').children().length * $('.destination-filters').innerHeight();
129  // $('.mobile-trigger, .destination-filters a').on('click tap', function() {
130  //   var p = $('.destination-filters'),
131  //     ph = p.innerHeight();
132    
133  //   if ( ph < h ) {
134  //     p.height(h);
135  //   } else {
136  //     p.removeAttr('style');
137  //   }
138  // });
139
140  $('.destination-carousel').bxSlider({
141    minSlides: 1,
142    maxSlides: 1,
143    mode: 'fade',
144    infiniteLoop: true,
145    pause: 8000,
146    auto: true,
147    autoHover: true,
148    //autoControls: true,
149    //autoStart: true,
150    speed: 1000,
151    pager: false,
152    controls: true,
153    adaptiveHeight: true,
154    autoStart: true,
155    hideControlOnEnd: true,
156  });
157
158})(jQuery);

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.