1 2$(window).on('scroll resize', checkScrollEvent); 3 4function checkScrollEvent() { 5 if ($(window).scrollTop() > 300) { 6 $('#weather-widget').addClass("animated fadeIn slow"); 7 $('#weather-widget').css({ 'visibility': 'visible' }); 8 } 9} 10 11function getEarliestReservationDate(date = new Date()) { 12 const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; 13 14 date.setSeconds(date.getSeconds() - 7776000); // 7776000 = 90 days 15 return date.toLocaleDateString(undefined, options); 16} 17 18$(document).ready(function () { 19 20 $('.popup-gallery').magnificPopup({ 21 delegate: "a", 22 type: "image", 23 tLoading: "Loading image #%curr%...", 24 mainClass: "mfp-img-mobile", 25 fixedContentPos: true, 26 gallery: { 27 enabled: true, 28 navigateByImgClick: true, 29 preload: [0, 1] 30 }, 31 image: { 32 tError: '<a href="%url%">The image #%curr%</a> could not be loaded.' 33 } 34 }); 35 36 $('.carousel').carousel({ 37 interval: 6000 38 }) 39 40 $('.navigation-button').on('click', function (event) { 41 event.preventDefault(); 42 var sectionID = $(this).attr("data-id"); 43 scrollToID('#' + sectionID, 500); 44 $('.navbar-collapse').collapse('hide'); 45 }); 46 47 const datePicker = $('#ninety-day-container div').datepicker({ 48 todayHighlight: true 49 }) 50 datePicker.on("changeDate", function (e) { 51 const earliestToCall = getEarliestReservationDate(e.date) 52 $('#reservation-date').text(earliestToCall); 53 }); 54 55 function scrollToID(id, speed) { 56 var offSet = 66; 57 var targetOffset = $(id).offset().top - offSet; 58 var mainNav = $('#main-nav'); 59 $('html, body').animate({ scrollTop: targetOffset }, speed); 60 mainNav.css("height", "1px").removeClass("in").addClass("collapse"); 61 mainNav.removeClass("open"); 62 } 63 64});
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.