PageSourceSearch

https://www.grandeshores.com/modules/accommodations/javascripts/global/accommodationsSortForm.js?v=49

js grandeshores.com collected 2026-09-26 12:18:12 UTC 1,616 bytes, 51 lines download raw bytes

1$(document).ready(function(){
2
3  function sortAccommodations() {
4  	$.ajax({
5  		type: "POST",
6  		url: siteFolder + "ajax/accommodations/",
7  		data: $('form#accommodationsSortForm').serialize(),
8      success: function(data) {
9        console.log('hit ajax');
10      	$('#cms-accommodations-wrap').html(data);
11      },
12      error: function(xhr, textStatus, error){
13        //console.log(xhr.statusText);
14        //console.log(textStatus);
15        //console.log(error);
16        console.log(error);
17      }
18  	});
19
20  }
21  // On page load, update sort
22  //sortAccommodations();
23
24  // Select change, update sort
25  $('#accommodationsNumberBeds').on('change',function(){
26    console.log('hit change');
27    sortAccommodations();
28  });
29
30	if ($('#YouTubeTourBtn').length) {
31		$('#YouTubeTourBtn').on('click', function(){
32			$('#youTubeTour')[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
33		});
34	}
35
36	if ($('.virtual-tour-modal-youtube').length) {
37		$('.virtual-tour-modal-youtube .i-modal-close').on('click', function(){
38			$('#youTubeTour')[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
39		});
40	}
41
42  // PROPERTY GALLERY LOAD
43  if ($('.hidden-gallery').length) {
44    // LOAD GALLERY IF BUTTON IS CLICKED - IF CHANGED, UPDATE THE CLICK EVENT FOR PROPERTY IMAGE ABOVE
45    $('.gallery-btn').on('click', function() {
46      var accommodationsGallery = $(this).closest('.cms-accommodations-row').find('.hidden-gallery a');
47      accommodationsGallery.eq(0).click();// STARTING AT 0 - CORRELATES TO NUMBER OF IMAGE IN GALLERY TO LOAD
48    });
49  }
50
51});

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.