PageSourceSearch

https://www.fieldings.com/js/cmsjquery.js?v=889931531

js fieldings.com collected 2026-10-06 02:36:05 UTC 35,660 bytes, 1,054 lines download raw bytes

1jQuery(document).ready(function () {
2	if ($('.slide-wrapper .svg-wrapper').length) {
3		$('.slide-wrapper .svg-wrapper svg').height($('.slide-wrapper').height());
4		$('.slide-wrapper .svg-wrapper').addClass('animated');
5	}
6	$('body').on('click', '.radio-menu label.placeholder', function() {
7		console.log('opening')
8		$(this).parents('.radio-menu').toggleClass('open')
9	})
10	$('body').on('click', '.radio-menu.open input', function() {
11		console.log('choosing')
12		menuParent = $(this).parents('.radio-menu');
13		menuParent.addClass('choosing');
14		menuParent.find('label').removeClass('checked');
15		if ($(this).is(':checked')) {
16			menuParent.addClass('chosen');
17			$(this).parents('label').addClass('checked');
18//			$('.radio-menu').addClass('chosen').removeClass('choosing');
19		} else {
20			$(this).parents('label').removeClass('checked');
21		}
22		setTimeout(function() {
23			menuParent.removeClass('open').removeClass('choosing');
24			console.log('closing')
25		}, 100)
26	});
27	/*
28	$('body').on('click', '.radio-menu:not(.open) label', function() {
29		console.log('opening')
30		$(this).parents('.radio-menu').toggleClass('open')
31	})
32	*/
33    $.getScript('/js/jquery.responsiveslides.min.js', function() {
34		// start slideshow
35		$(".slide-wrapper .slide_group").responsiveSlides({
36			auto: true,
37			pager: true,
38			nav: true,
39			//                      navContainer: '#sliderNav #nav',
40			nextText:'<div class="next_btn"></div>',
41			prevText:'<div class="previous_btn"></div>',
42			speed: 500,
43			timeout:5000
44		});
45		$(".mini-slideshow").responsiveSlides({
46	                auto: true,
47	                pager: true,
48	                nav: false,
49	                nextText:'<div class="next_btn"></div>',
50	                prevText:'<div class="previous_btn"></div>',
51	                speed: 500,
52	                timeout:5000
53	        });
54		$(".sliderPhotos").responsiveSlides({
55			auto: true,
56			pager: true,
57			nav: false,
58			speed: 500,
59			timeout:5000
60		});
61
62
63		// Smooth Scroll for Anchor links
64		$(document).on('click', 'a[href^="#"]', function (event) {
65		    event.preventDefault();
66
67			if ($.attr(this, 'href')=='#reservations') {
68				loadFancyBox('.reservationspop');
69				
70			} else {
71
72			    $('html, body').animate({
73			        scrollTop: $($.attr(this, 'href')).offset().top
74			    }, 500);
75			}
76		});
77		
78		// check for reservations #hashtag in the URL
79		if (document.location.hash =='#reservations') {
80			loadFancyBox('.reservationspop');
81		}
82		
83		if ($('.reservationspop.onload').length) {
84			loadFancyBox('.reservationspop');
85		}
86		if ($('.newsletterpop.onload').length) {
87			loadFancyBox('.newsletterpop');
88		}
89		
90	    if ($('.scrollable-slides').length) {
91			/*
92			maxh = 0;
93			$(".scrollable-slides .slideshow-wrapper li").each(function() {
94				maxh = Math.max(maxh, $(this).outerHeight());
95			})
96			$(".scrollable-slides .slideshow-wrapper li").height(maxh);
97			*/
98            $(".scrollable-slides .slideshow-wrapper").responsiveSlides({
99                    auto: true,
100					speed: 500,
101					timeout:10000,
102                    pager: false,
103                    nav: true,
104                    prevText:'<svg viewBox="0 0 60 61" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="29.5" transform="matrix(-1 0 0 1 60 0.96875)" stroke="#231F20"/><path d="M38.3536 30.6152C38.5488 30.8105 38.5488 31.127 38.3536 31.3223L35.1716 34.5043C34.9763 34.6995 34.6597 34.6995 34.4645 34.5043C34.2692 34.309 34.2692 33.9924 34.4645 33.7972L37.2929 30.9688L34.4645 28.1403C34.2692 27.9451 34.2692 27.6285 34.4645 27.4332C34.6597 27.238 34.9763 27.238 35.1716 27.4332L38.3536 30.6152ZM22 30.4688L38 30.4688V31.4688L22 31.4688V30.4688Z" fill="#231F20"/></svg>',
105                    nextText:'<svg viewBox="0 0 60 61" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="29.5" transform="matrix(-1 0 0 1 60 0.96875)" stroke="#231F20"/><path d="M38.3536 30.6152C38.5488 30.8105 38.5488 31.127 38.3536 31.3223L35.1716 34.5043C34.9763 34.6995 34.6597 34.6995 34.4645 34.5043C34.2692 34.309 34.2692 33.9924 34.4645 33.7972L37.2929 30.9688L34.4645 28.1403C34.2692 27.9451 34.2692 27.6285 34.4645 27.4332C34.6597 27.238 34.9763 27.238 35.1716 27.4332L38.3536 30.6152ZM22 30.4688L38 30.4688
105V31.4688L22 31.4688V30.4688Z" fill="#231F20"/></svg>',
106					navContainer: '.scrollable-slides .slideshow-wrapper .arrow-container'
107                    //manualControls:'.subpagesnav',
108                    /*                      after:function(i) {
109                    var newurl = $('.subpagesnav .rslides_here').attr('data-href');
110                    window.location.hash = newurl;
111                    }*/
112            });
113
114            var identifier = window.location.hash; //gets everything after the hashtag i.e. #home
115            if (identifier) {
116				$('.subpagesnav > div').each(function() {
117					if ($(this).attr('data-href') == identifier) {
118						$(this).children('a').trigger('click');
119					}
120				})
121            }
122	    }
123
124    });
125
126    // Mobile menu open/close
127    $('body').on('click', '.menu-button.mobileonly', function() {
128		parent = $('.nav-wrapper');
129        parent.toggleClass('open');
130        $(this).toggleClass('open');
131        $(this).toggleClass('closed');
132        $('body').toggleClass('no-scroll');
133    });
134   	$('body').on('click', '.main-nav__menu a', function() {
135        $('.nav-wrapper').removeClass('open');
136	});
137
138	touchtrigger=false;
139   	$('body').on('click touchstart', '.has-sub > span', function(e) {
140		if (e.type == 'touchstart') {
141			touchtrigger=true;
142		}
143		if (touchtrigger && e.type=='click') {
144		} // for older mobile devices need touchstart, but this stops from firing on both
145		else {
146			parentBox = $(this).parents('.has-sub');
147            parentBox.toggleClass('open')
148
149			$('.nav-wrapper').addClass('no-click')
150            if (!parentBox.hasClass('open')) {
151                    parentBox.addClass('closed');
152            } else {
153                    parentBox.removeClass('closed');
154            }
155
156			setTimeout(function() {
157				$('.nav-wrapper').removeClass('no-click')
158			}, 500);
159		}
160    })
161    $('.nav-wrapper').on('click', '.back', function() {
162            $(this).parents('.has-sub.open').removeClass('open');
163    });
164	$('body').on('click', '.toggle-search', function() {
165		$('.sitesearch').toggle();
166	})
167
168	$('body').on('click', '.toggle-sidebar', function() {
169		console.log('togg')
170		$(this).parent().find('.sidebar').toggleClass('closed')
171		$(this).toggleClass('closed')
172	})
173	/*
174	// for iPads
175    $('body').on('touchstart', '.has-sub a.top', function() {
176        if ($(this).parents('li').hasClass('hover')) {
177                action='close';
178        }  else{
179                action='open';
180        }
181        // close any others
182        $('.has-sub').removeClass('hover');
183
184        if (action=='close') {
185                $(this).parents('li.has-sub').removeClass('hover').addClass('closed');
186        } else {
187                $(this).parents('li.has-sub').addClass('hover').removeClass('closed');
188        }
189    })
190	*/
191
192	$('body').on('click', '.go-back', function() {
193		console.log('go');
194		history.go(-1);
195	});
196
197   	$('.calendar-wrapper').on('click', '.calendar-view', function() {
198		$('.monthly').addClass('active');
199	});
200   	$('.calendar-wrapper').on('click', '.list-view', function() {
201		$('.monthly').removeClass('active');
202	});
203	$('.newsletter-bubble').on('click', '.handle', function() {
204		$(this).parents('.main-header-image').toggleClass('newsletter-open');
205	})
206	$('.tab-boxes').on('click', '.item', function() {
207		parentWrapper = $(this).parents('.tab-boxes');
208		thisBox = $(this);
209		parentWrapper.find('.item').removeClass('active');
210		thisBox.addClass('active');
211	})
212    jQuery('.collapsible .handle').on('click', function() {
213            parentBox = jQuery(this).parents('.collapsible');
214            if (parentBox.hasClass('expanded')) {
215                parentBox.addClass('collapsed').removeClass('expanded');
216                parentBox.children('.content').slideUp();
217            } else {
218                parentBox.addClass('expanded').removeClass('collapsed');
219                parentBox.children('.content').slideDown();
220            }
221    });
222
223	if (typeof FontFaceObserver === 'undefined') {} else {
224		var font = new FontFaceObserver('Montserrat',{weight:800});
225
226		font.load().then(function () {
227			$('html').removeClass('wf-loading');
228		  //console.log('Font is available');
229		}, function () {
230		});
231	}
232    /* LAZY LOAD FUNCTION */
233    var isInViewport = function (elem, offset) {
234        var bounding = elem.getBoundingClientRect();
235        var scrollPos = window.pageYOffset;
236        botPos = (window.innerHeight || document.documentElement.clientHeight);
237
238		is_hidden=false;
239		//is_hidden = $(elem).css('opacity')=='0';
240			
241        if (bounding.top==0) {
242                bounding.top = $(elem).offset().top;
243//				console.log($(elem));
244//				console.log($(elem).is(':visible'));
245        }
246                elemPos = bounding.top;
247/*
248                if (bounding.top>0)
249                                elemPos -= botPos;
250                */
251
252        if (offset=='double') {
253                        adjust = botPos/2;
254                        elemPos -= adjust;//bounding.height*offset;
255        }
256        else if (offset) {
257                        adjust = botPos/offset;
258                        elemPos -= adjust;//bounding.height*offset;
259
260
261        } else {
262                        if (elemPos>0)
263                                elemPos -= botPos;
264        }
265		
266        return (
267                        (elemPos <= 0 && $(elem).is(':visible') && !is_hidden)
268                        // || (offset!=0 && scrollPos >= elemPos)
269                        /*&&
270            scrollPos >= elemPos
271            bounding.left >= 0 &&
272            bounding.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
273            bounding.right <= (window.innerWidth || document.documentElement.clientWidth)*/
274        );
275    };
276
277    assetsLoaded = loadedafterscroll = false;
278	var scrolled = false;
279    function lazyLoadScroll() {
280
281		if (scrolled) {
282			if ($('.fb-page').length && !$('#fb-root').length) {
283				$('body').prepend('<div id="fb-root"></div><script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v5.0"></script>');
284			}
285		}
286		$('.lazy-bg').each(function() {
287			if (isInViewport($(this).get(0),0)) {
288				imgsrc=$(this).attr('data-image');
289//				   console.log('loading '+imgsrc)
290				
291				if (imgsrc)
292					$(this).css('background-image', 'url('+imgsrc+')').removeClass('lazy-bg');
293			}
294		});
295		$('.lazy-vid').each(function() {
296			if (isInViewport($(this).get(0),0)) {
297                postersrc=$(this).attr('data-poster');
298                $(this).attr('poster', postersrc).removeClass('lazy-vid');
299			}
300		});
301        $('.lazy-iframe').each(function() {
302        	if (isInViewport($(this).get(0),0)) {
303                //console.log($(this));
304                framesrc=$(this).attr('data-lazy-src');
305                $(this).attr('src', framesrc).removeClass('lazy-iframe');
306  
307//				console.log('loaded');
308//				console.log(framesrc)
309      		}
310        });
311		$('.lazy-img,img.lazyload').each(function() {
312			if (isInViewport($(this).get(0),0)) {
313				imgsrc=$(this).attr('data-lazy-src');
314				if (typeof imgsrc === 'undefined')
315					imgsrc =  $(this).attr('data-src');
316
317
318				$(this).attr('src', imgsrc).removeClass('lazy-img').removeClass('lazyload');
319			}
320        });
321		$('.lazy-border').each(function() {
322			if (isInViewport($(this).get(0),0)) {
323				imgsrc=$(this).attr('data-border-image');
324				if (imgsrc)
325					$(this).css('border-image-source', 'url('+imgsrc+')').removeClass('lazy-border');
326			}
327		});
328
329        // content blocks
330        $('.contentBlock').each(function() {
331                if (isInViewport($(this).get(0),1.2)) {
332                        $(this).removeClass('out-of-view').addClass('in-view');
333                } else if (!$(this).hasClass('in-view')) { // once it's in view, leave it alone
334                        $(this).addClass('out-of-view');
335                }
336        });
337		
338		
339		
340        $('.in-view-elements > *').each(function() {
341                if (isInViewport($(this).get(0),1)) {
342                        $(this).removeClass('out-of-view').addClass('in-view');
343                } else if (!$(this).hasClass('in-view')) { // once it's in view, leave it alone
344                        $(this).addClass('out-of-view');
345                }
346        });
347                /*
348        $('.in-view-elements > table td > *').each(function() {
349                if (isInViewport($(this).get(0),1)) {
350                        $(this).removeClass('out-of-view').addClass('in-view');
351                } else if (!$(this).hasClass('in-view')) { // once it's in view, leave it alone
352                        $(this).addClass('out-of-view');
353                }
354       	});
355*/
356        $('.fadein > *:not(.in-view)').each(function() {
357                if (isInViewport($(this).get(0),1.2)) {
358                        $(this).removeClass('out-of-view').addClass('in-view');
359                } else if (!$(this).hasClass('in-view')) { // once it's in view, leave it alone
360                        $(this).addClass('out-of-view');
361                }
362        });
363        $('.fadeside:not(.in-view)').each(function() {
364                if (isInViewport($(this).get(0),1.2)) {
365                        $(this).removeClass('out-of-view').addClass('in-view');
366                } else if (!$(this).hasClass('in-view')) { // once it's in view, leave it alone
367                        $(this).addClass('out-of-view');
368                }
369        });
370		
371
372		if (scrolled) {
373
374			if (!loadedafterscroll) {
375				loadedafterscroll = true;
376
377                               if (typeof takeoverPop !== 'undefined')
378	                                takeoverPop();
379
380				$.getScript('/js/validation.js');
381				$.getScript('https://www.google.com/recaptcha/api.js');
382				
383				$.getScript('/js/main.js');
384
385				$.getScript('/js/rellax.min.js', function() {
386					const rellaxin = document.querySelectorAll(".rellax");
387					
388					rellaxin.forEach(el => {
389						thisParent = $(el).parents('.contentBlock').get(0);
390					  const rellax = new Rellax(el, {
391					    relativeToWrapper: true,
392					    wrapper: thisParent
393					  });
394
395					  window.addEventListener("scroll", () => { // fix to init
396					    rellax.refresh();
397					  });
398
399					});
400				})
401
402				loadFancyBox();
403				
404
405		        // top slideshow
406		        $('.slideshow .lazy-bg').each(function() {
407		           imgsrc=$(this).attr('data-image');
408//				   console.log('loaading '+imgsrc)
409		           $(this).css('background-image', 'url('+imgsrc+')').removeClass('lazy-bg');
410		        });
411			   	$('.mini-slideshow .lazy-bg').each(function() {
412 		           imgsrc=$(this).attr('data-image');
413 		           $(this).css('background-image', 'url('+imgsrc+')').removeClass('lazy-bg');
414				});
415			   	$('.sliderPhotos .lazy-img').each(function() {
416                    imgsrc =  $(this).attr('data-src');
417	                $(this).attr('src', imgsrc).removeClass('lazy-img');
418				});
419
420                $('.alt-img.lazy-img').each(function() {
421                                             imgsrc=$(this).attr('data-src');
422                         $(this).attr('src', imgsrc).removeClass('lazy-img');
423                 });
424
425
426				$.getScript('/js/jquery-ui-1.12.1.min.js', function() {
427				    $(".datepicker").datepicker();
428				});
429				
430				$.getScript('/js/jquery.ui.touch-punch.min.js');
431				loadCSS('https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css');
432
433
434                if ($('.featuredSlider').length || $('.featuredBuilderSlider').length) {
435                        loadCSS('https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.css');
436                        loadCSS('https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.min.css');
437                        $.getScript('https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js', function() {
438                                loadCarousels();
439                        });
440                }
441
442				if ($('.share-container').length) {
443					$.getScript('//s7.addthis.com/js/300/addthis_widget.js#pubid='+pubid+'&domready=1', function() {
444			            addthis.toolbox(
445			                        $(".addthis_toolbox").get()
446			                    );
447					});
448/* Moved to GTM 12/5/19
449*/
450				}
451
452			    $('.latest-news-wrapper .lazy-bg').each(function() {
453//					console.log($(this));
454			        imgsrc=$(this).attr('data-image');
455					if (imgsrc)
456						$(this).css('background-image', 'url("'+imgsrc+'")').removeClass('lazy-bg');
457			    });
458
459				loadCSS('/styles/flickity.min.css');
460				$.getScript('/js/flickity.min.js', function() {
461					$.getScript('/js/dualslides.js');
462					$('.latest-news .main-carousel').flickity({
463						// options
464						cellAlign: 'left',
465						imagesLoaded: true,
466						wrapAround: true,
467						draggable: true,
468						prevNextButtons: false
469					});
470				});
471			}
472		}
473
474		if (!assetsLoaded) {
475			assetsLoaded = true;
476
477			// couple second delay to load non-critical assets to help with page speed
478	        setTimeout(function () {
479				scrolled=true;
480				lazyLoadScroll();
481			}, 4000);
482		}
483
484    }
485        addEventListener('scroll', function() {
486			scrolled = true;
487			lazyLoadScroll();
488		}, {passive: true});
489	    addEventListener('click', function() {
490	            scrolled = true;
491	            lazyLoadScroll();
492	    }, {passive: true});
493	    addEventListener('touchend', function() { // for mobile
494	            scrolled = true;
495	            lazyLoadScroll();
496	    }, {passive: true});
497    	var y = window.scrollY;
498    	if  (y>0) // if already scrolled down on page load
499			scrolled=true;
500
501        lazyLoadScroll();
502		
503		$('.navigation-container').on('click', '.showMapView', { passive: true }, function() {
504            $.getScript( "//maps.googleapis.com/maps/api/js?key="+MAPKEY, function( data) {
505					loadCSS('/apps/maps/mapstyles.css?v=1.6')
506					$.getScript('/apps/maps/infobubble.js');
507					$.getScript('/apps/maps/getlistings.js', function() {
508						$.getScript('/apps/maps/jquery.map.js?v=1.2', function() {
509		                    initMap();
510						});
511					});
512            });
513		})
514
515		$('body').on('click', '.load-more', { passive: true }, function() {
516			$(this).parents('.previewmode').removeClass('previewmode');
517		    $('.filterable .lazy-bg').each(function() {
518		        imgsrc=$(this).attr('data-image');
519		        $(this).css('background-image', 'url('+imgsrc+')').removeClass('lazy-bg');
520		    });
521			$(this).hide();
522		})
523
524        $('.filters').on('click', '.filter', { passive: true }, function() {
525			console.log('filter')
526			$('.filterable .previewmode').removeClass('previewmode');
527		    $('.filterable .lazy-bg').each(function() {
528		        imgsrc=$(this).attr('data-image');
529		        $(this).css('background-image', 'url('+imgsrc+')').removeClass('lazy-bg');
530		    });
531
532			$('.load-more').hide();
533            fclass = $(this).attr('data-filter');
534            tagname = $(this).attr('data-tag');
535			console.log(fclass)
536            if (fclass=='' || ($(this).hasClass('on') && !$(this).parents('.filters').hasClass('singleView'))) {
537                    $('.item').show(); // re-activate all
538					$('.item > a').attr('data-fancybox-group', 'all');
539                    $('.filters .filter').removeClass('on');
540                    $('.filters .filter.all').addClass('on');
541                                    window.history.pushState('', '', '?');
542            } else {
543                    $('.filters .filter').removeClass('on');
544                    // activate current
545                    $(this).addClass('on');
546
547                    $('.filterable .item').each(function() {
548                            if ($(this).hasClass(fclass)) {
549								//console.log($(this).children('a').attr('data-cat'))
550								$(this).children('a').attr('data-fancybox-group', $(this).children('a').attr('data-cat'));
551                                $(this).show().addClass('active');
552                            }
553                            else {
554								$(this).children('a').removeAttr('data-fancybox-group');
555                                $(this).hide().removeClass('active');
556                            }
557                    })
558                    if (typeof tagname != 'undefined')
559                            window.history.pushState('', '', '?tag='+tagname);
560            }
561
562			if (typeof resetGridLayout === 'function')
563				resetGridLayout();
564        });
565
566		// Content Block 19, BG Swapping
567		$('.contentBlock').on('click', '.swap-bg', function() {
568			activate =  $(this).attr('data-activate');
569			
570			$(this).parents('.contentBlock').find('.img-wrapper .img').each(function() {
571				if ($(this).hasClass(activate))
572					$(this).addClass('active');
573				else
574					$(this).removeClass('active');
575			});
576		});
577
578        $('.showMapView').click(function() {
579                $('.mapContainer').show();
580                $('.showMapView').addClass('active');
581                $('.showListView').removeClass('active');
582                redrawMap();
583        })
584        $('.showListView').click(function() {
585                $('.mapContainer').hide();
586                $(this).addClass('active');
587                $('.showMapView').removeClass('active');
588        })
589		    // Home search preview (for Google GTM tracking)
590		    $('.plan-listings').on('click', '#homesearch_viewmore', { passive: true }, function() {
591		        $('.plan-listings .listings-container').removeClass('preview');
592		// no longer changing the url per Nate request 7/17/17
593		//      window.history.pushState(null, pagetitle, "/home-search-results");
594		        $(this).hide();
595		    });
596		        // Sort feature
597		    $('#sortresults').change(function () {
598		                var direction = 'asc'; // default
599		        var selection = this.value;
600		        if (selection.search('-desc') > 0) {
601		                direction = 'desc';
602		                selection = selection.replace('-desc', '')
603		        }
604		        featureList.sort(selection, { order: direction });
605		    });
606
607    // Mobile thumbnails click
608
609    if ($(window).width() <= 768) {
610        $('.thumbnails-section li').one('click', function(event) {
611            event.preventDefault();
612            $(this).children('.layer').css('opacity', '1');
613        });
614
615        $('.boxes li').one('click', function(event) {
616            event.preventDefault();
617            $(this).children('.layer').css('opacity', '1');
618        });
619
620		// mobile menu set to fixed on scroll up, hide on scroll down
621		// Hide Header on on scroll down
622		var didScroll;
623		var lastScrollTop = 0;
624		var delta = 5;
625		var navbarHeight = $('header').outerHeight();
626
627		$(window).scroll(function(event){
628		    didScroll = true;
629		});
630
631		setInterval(function() {
632		    if (didScroll) {
633		        hasScrolled();
634		        didScroll = false;
635		    }
636		}, 250);
637
638		function hasScrolled() {
639			//console.log(navbarHeight)
640		    var st = $(this).scrollTop();
641
642		    // Make sure they scroll more than delta
643		    if(Math.abs(lastScrollTop - st) <= delta)
644		        return;
645
646		    // If they scrolled down and are past the navbar, add class .nav-up.
647		    // This is necessary so you never see what is "behind" the navbar.
648		    if (st > lastScrollTop && st > navbarHeight){
649		        // Scroll Down
650		        $('header').removeClass('nav-down').addClass('nav-up');
651		    } else {
652		        // Scroll Up
653		        if(st + $(window).height() < $(document).height()) {
654		            $('header').removeClass('nav-up').addClass('nav-down');
655		        }
656		    }
657
658		    lastScrollTop = st;
659		}
660    }
661    $('.mobile-contant-open').click(function () {
662       $('.mobile-contact').toggleClass('open');
663    });
664
665
666	$('.navigate-wrapper').on('click', '.navigate-button', { passive: true }, function() {
667		parentBox = $(this).parents('.navigate-wrapper');
668		navigateTo =  parentBox.find('select').val();
669		parent.location.href=navigateTo;
670	});
671
672	jQuery('body').on('click', '.autoClose', { passive: true }, function() {
673	    jQuery(this).parent().hide();
674	});
675
676    /* ===============================================================================================================
677 	===============================================================================================================*/                                      
678
679	$('.tabbed-menu').on('click', '.tab', function() {
680		tid = $(this).attr('data-id');
681		$('.tabbed-menu .tab').removeClass('active');
682		$(this).addClass('active');
683		$('.tabbed-content > div').removeClass('active');
684		$('.tab-'+tid).addClass('active');
685	});
686			
687$('a[id]:empty').addClass('adjustAnchor');
688
689/* adjust #anchor links to make up for fixed header
690// The function actually applying the offset
691function offsetAnchor() {
692console.log('a');
693  if (location.hash.length !== 0) {
694console.log(window.pageYOffset);
695//    window.scrollTo(window.scrollX, window.scrollY - 250);
696    window.scrollTo(window.pageXOffset, window.pageYOffset - 250);
697  }
698}
699
700// Captures click events of all <a> elements with href starting with #
701$(document).on('click', 'a[href^="#"]', function(event) {
702  // Click events are captured before hashchanges. Timeout
703  // causes offsetAnchor to be called after the page jump.
704  window.setTimeout(function() {
705    offsetAnchor();
706  }, 0);
707});
708
709// Set the offset when entering page with hash present in the url
710window.setTimeout(offsetAnchor, 0);
711*/
712
713	/* Video */
714	    if (typeof objectFitVideos !== 'undefined') {
715	        objectFitVideos();
716	    }
717
718	/* start video after it's fully loaded */
719	videojQuery.on('canplaythrough', startPlaylist);
720
721	    /*
722	// If the video is in the cache of the browser,
723	// the 'canplaythrough' event might have been triggered
724	// before we registered the event handler.
725	    */
726	if (videoPlayer && videoPlayer.readyState > 3) {
727	    startPlaylist();
728	}
729
730});
731var video_count=0;
732var mobile_video_count=0;
733var videojQuery = jQuery('.bgvideo#bgvid_0');
734var videoPlayer = videojQuery.get()[0];
735var preloadedVideos = false;
736
737function startPlaylist() {
738        /* preload the rest of the videos */
739        if (!preloadedVideos) {
740            var winWidth = $(window).width();
741            var mobile = winWidth < 735;
742
743                if (mobile) {
744                        document.getElementById('vsource_0').src = mp4s[0];
745                        videoPlayer.load();
746                    videoPlayer.play();
747                }
748
749                videoWrapper = videojQuery.parent('.videoWrapper');
750                videoWrapper.show();
751                videojQuery.show();
752
753                $('.playvid').hide();
754                videoPlayer.muted= true;
755            videoPlayer.volume = 0.0;
756            videoPlayer.play();
757
758                setTimeout(function() {
759                        videojQuery.attr('poster', '');
760                        $('.slideshow .photo').css('background-image', 'none');
761                }, 2000);
762
763                for(pi=0;pi<mp4s.length;pi++) {
764                        doScaledTimeout(pi);
765                }
766        }
767	preloadedVideos = true;
768        /*
769
770	*/
771}
772function doScaledTimeout(i) {
773        setTimeout(function() {
774                thisvid = mp4s[i];
775                preloadVid(thisvid, i);
776        }, i * 2000);
777}
778function preloadVid(thisvid, vc) {
779        req = new XMLHttpRequest();
780        req.open('GET', thisvid, true);
781        req.responseType = 'blob';
782
783        req.onload = function() {
784           /* Onload is triggered even on 404
785           // so we need to check the status code
786        */
787           if (this.status === 200) {
788              var videoBlob = this.response;
789              var vid = URL.createObjectURL(videoBlob); // IE10+
790                        mp4s[vc] = vid;
791                        /*
792              // Video is now downloaded
793              // and we can set it as source on the video element
794                */
795                        if (vc > 0) {
796                        document.getElementById('vsource_'+vc).src = vid;
797                        }
798           }
799        }
800	req.onerror = function() {
801           /*
802        // Error
803                //alert(i)
804                */
805        }
806
807        req.send();
808}
809function run(){
810    var winWidth = $(window).width();
811    var mobile = winWidth < 735;
812
813
814        if (mobile) {
815            firstVideojQuery = $('.bgvideo#bgvid_0');
816            firstVideoPlayer = firstVideojQuery.get()[0];
817                mobile_video_count++;
818            if (mobile_video_count == mp4s.length) mobile_video_count = 0;
819                document.getElementById('vsource_0').src = mp4s[mobile_video_count];
820                firstVideoPlayer.load();
821            firstVideoPlayer.play();
822	} else {
823            lastPlayer = videoPlayer;
824            lastPlayerjQ = videojQuery;
825            video_count++;
826            if (video_count == mp4s.length) video_count = 0;
827
828            videojQuery = $('.bgvideo#bgvid_'+video_count);
829            videoPlayer = videojQuery.get()[0];
830
831            videoPlayer.muted= true;
832            videoPlayer.volume = 0.0;
833
834            videoPlayer.play();
835
836
837            videojQuery.parent('.videoWrapper').fadeIn();
838
839            lastPlayerjQ.parent('.videoWrapper').hide();
840
841            lastPlayer.currentTime = 0;
842        }
843};
844function updatePlayStatus(thisVideo) {
845	if (thisVideo.paused) {
846		$(thisVideo).parents('.img-wrapper').removeClass('playing')
847	} else {
848		$(thisVideo).parents('.img-wrapper').addClass('playing')
849	}
850}
851function triggerVideo(thisChild) {
852	thisVideo = $(thisChild).parents('.wrapper').find('video');
853	thisVideo.get(0).play();
854	updatePlayStatus(thisVideo);
855}
856function getAttributeValue(attribute, source)
857{
858    var regex = RegExp("<script?\\w+(?:\\s+(?:" + attribute + "=\"([^\"]*)\")|[^\\s>]+|\\s+)*>","gi");
859    var matches;
860    while ( matches = regex.exec(source) )
861    {
862        return matches[1]; 
863    }
864}
865
866function toggleExtraValue(thisForm, templateid) {
867	if (templateid.value==2) {
868		jQuery('.extravalue').show();
869	}
870	else
871		jQuery('.extravalue').hide();
872}
873	
874function loadCSS(csspath) {
875	var linkElem = document.createElement('link');
876	document.getElementsByTagName('head')[0].appendChild(linkElem);
877	linkElem.rel = 'stylesheet';
878	linkElem.type = 'text/css';
879	linkElem.href = csspath;
880}
881function loadCarousels() {
882    $('.featuredSlider.news-slider').slick({
883      centerMode: false,
884      variableWidth: false,
885      slidesToShow: 1,
886      slidesToScroll: 1,
887      autoplay: false,
888      autoplaySpeed: 4000,
889      infinite: true,
890      dots: false,
891      arrows: true,
892		appendArrows: $('.contentBlock.t24'),
893		prevArrow: '<div class="arrow prev"><svg viewBox="0 0 60 61" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="29.5" transform="matrix(-1 0 0 1 60 0.96875)" stroke="#231F20"/><path d="M38.3536 30.6152C38.5488 30.8105 38.5488 31.127 38.3536 31.3223L35.1716 34.5043C34.9763 34.6995 34.6597 34.6995 34.4645 34.5043C34.2692 34.309 34.2692 33.9924 34.4645 33.7972L37.2929 30.9688L34.4645 28.1403C34.2692 27.9451 34.2692 27.6285 34.4645 27.4332C34.6597 27.238 34.9763 27.238 35.1716 27.4332L38.3536 30.6152ZM22 30.4688L38 30.4688V31.4688L22 31.4688V30.4688Z" fill="#231F20"/></svg></div>',
894		nextArrow: '<div class="arrow next"><svg viewBox="0 0 60 61" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="29.5" transform="matrix(-1 0 0 1 60 0.96875)" stroke="#231F20"/><path d="M38.3536 30.6152C38.5488 30.8105 38.5488 31.127 38.3536 31.3223L35.1716 34.5043C34.9763 34.6995 34.6597 34.6995 34.4645 34.5043C34.2692 34.309 34.2692 33.9924 34.4645 33.7972L37.2929 30.9688L34.4645 28.1403C34.2692 27.9451 34.2692 27.6285 34.4645 27.4332C34.6597 27.238 34.9763 27.238 35.1716 27.4332L38.3536 30.6152ZM22 30.4688L38 30.4688V31.4688L22 31.4688V30.4688Z" fill="#231F20"/></svg></div>',
895      responsive: [
896        {
897          breakpoint: 1024,
898          settings: {
899            arrows: true,
900            centerMode: false,
901          slidesToScroll: 1,
902            slidesToShow: 2
903          }
904        },
905        {
906          breakpoint: 550,
907          settings: {
908            arrows: true,
909            centerMode: false,
910          slidesToScroll: 1,
911            slidesToShow: 1
912          }
913        }
914      ]
915    });
916    $('.featuredSlider.events-slider').slick({
917      centerMode: false,
918      variableWidth: false,
919      slidesToShow: 3,
920      slidesToScroll: 3,
921      autoplay: true,
922      autoplaySpeed: 4000,
923      infinite: true,
924      dots: false,
925      arrows: true,
926		prevArrow: '<img src="/images/arrow-blue.svg" class="arrow prev" alt="Previous" />',
927		nextArrow: '<img src="/images/arrow-blue.svg" class="arrow next" alt="Next" />',
928      responsive: [
929        {
930          breakpoint: 1024,
931          settings: {
932            arrows: true,
933            centerMode: false,
934          slidesToScroll: 1,
935            slidesToShow: 2
936          }
937        },
938        {
939          breakpoint: 550,
940          settings: {
941            arrows: true,
942            centerMode: false,
943          slidesToScroll: 1,
944            slidesToShow: 1
945          }
946        }
947      ]
948    });
949    $('.featuredSlider.by-the-numbers').slick({
950      centerMode: false,
951      variableWidth: true,
952      slidesToShow: 3,
953      slidesToScroll: 3,
954      autoplay: true,
955      autoplaySpeed: 4000,
956      infinite: true,
957      dots: false,
958      arrows: true,
959		prevArrow: '<img src="/images/arrow-blue.svg" class="arrow prev" alt="Previous" />',
960		nextArrow: '<img src="/images/arrow-blue.svg" class="arrow next" alt="Next" />',
961      responsive: [
962        {
963          breakpoint: 1024,
964          settings: {
965            arrows: true,
966            centerMode: false,
967          slidesToScroll: 1,
968            slidesToShow: 2
969          }
970        },
971        {
972          breakpoint: 550,
973          settings: {
974            arrows: true,
975            centerMode: false,
976          slidesToScroll: 1,
977            slidesToShow: 1
978          }
979        }
980      ]
981    });
982	
983    $('.featuredBuilderSlider').slick({
984      centerMode: false,
985      variableWidth: false,
986      slidesToShow: 1,
987          slidesToScroll: 1,
988      autoplay: false,
989      autoplaySpeed: 4000,
990      infinite: true,
991      dots: true,
992      arrows: false,
993      responsive: [
994        {
995          breakpoint: 1024,
996          settings: {
997            arrows: true,
998            centerMode: false,
999                          slidesToScroll: 1,
1000            slidesToShow: 1
1001          }
1002        }
1003      ]
1004    });
1005}
1006function loadFancyBox(triggerpop) {
1007	if (typeof fancyboxloaded === 'undefined') {
1008		fancyboxloaded = true;
1009		$.getScript('/fancybox2/jquery.fancybox.pack.js', function() {
1010			$.getScript('/js/fancybox.js?v=2.7', function() {
1011			    $('.newsletterpop').fancybox({
1012			        'href'   : '#newsletterpop',
1013 			        'titleShow'  : false,
1014					fitToView:true,
1015			        'showCloseButton' : false,
1016			        'wrapCSS' : 'popframe-bone',
1017			        'closeBtn' : true,
1018			        'scrolling' : 'no',
1019			        'showNavArrows' : false
1020			    });
1021		       	$('.newsletterpop').trigger('click');
1022				
1023			    $('.reservationspop').fancybox({
1024			        'href'   : '#reservations',
1025 			        'titleShow'  : false,
1026					fitToView:true,
1027			        'showCloseButton' : false,
1028			        'wrapCSS' : 'popframe-blue',
1029			        'closeBtn' : true,
1030			        'scrolling' : 'no',
1031			        'showNavArrows' : false
1032			    });
1033				
1034				if (triggerpop) {
1035					$(triggerpop).trigger('click');
1036				}
1037			});
1038		});
1039		loadCSS('/fancybox2/jquery.fancybox.css');
1040	} else if (triggerpop) {
1041		$(triggerpop).trigger('click');
1042	}
1043}
1044function GetReCaptchaID(containerID) {
1045	var retval = -1;
1046	$(".g-recaptcha").each(function(index) {
1047		if(this.id == containerID) {
1048			retval = index;
1049			return;
1050		}
1051	});
1052
1053	return retval;
1054}

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.