1// source --> https://innatbayfortune.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js 2function on_keydown_remove_from_cart(e){" "===e.key&&(e.preventDefault(),e.currentTarget.click())}function focus_populate_live_region(){var e=["woocommerce-message","woocommerce-error","wc-block-components-notice-banner"].map(function(e){return"."+e+'[role="alert"]'}).join(", "),o=document.querySelectorAll(e);if(0!==o.length){var t=o[0];t.setAttribute("tabindex","-1");var n=setTimeout(function(){t.focus(),clearTimeout(n)},500)}}function refresh_sorted_by_live_region(){var e=document.querySelector(".woocommerce-result-count"),o=document.querySelector('[data-wp-interactive="woocommerce/product-filters"]');if(e&&window.location.search&&!o){var t=e.innerHTML;e.setAttribute("role","alert"),e.setAttribute("aria-hidden","true");var n=setTimeout(function(){e.setAttribute("aria-hidden","false"),e.innerHTML="",e.innerHTML=t,clearTimeout(n)},2e3)}}function on_document_ready(){focus_populate_live_region(),refresh_sorted_by_live_region()}jQuery(function(e){e(".woocommerce-ordering").on("change","select.orderby",function(){e(this).closest("form").trigger("submit")}),e("input.qty:not(.product-quantity input.qty)").each(function(){var o=parseFloat(e(this).attr("min"));o>=0&&parseFloat(e(this).val())<o&&e(this).val(o)});var o="store_notice"+(e(".woocommerce-store-notice").data("noticeId")||"");if("hidden"===Cookies.get(o))e(".woocommerce-store-notice").hide();else{function t(o){["Enter"," "].includes(o.key)&&(o.preventDefault(),e(".woocommerce-store-notice__dismiss-link").click())}e(".woocommerce-store-notice").show(),e(".woocommerce-store-notice__dismiss-link").on("click",function n(r){Cookies.set(o,"hidden",{path:"/"}),e(".woocommerce-store-notice").hide(),r.preventDefault(),e(".woocommerce-store-notice__dismiss-link").off("click",n).off("keydown",t)}).on("keydown",t)}e(".woocommerce-input-wrapper span.description").length&&e(document.body).on("click",function(){e(".woocommerce-input-wrapper span.description:visible").prop("aria-hidden",!0).slideUp(250)}),e(".woocommerce-input-wrapper").on("click",function(e){e.stopPropagation()}),e(".woocommerce-input-wrapper :input").on("keydown",function(o){var t=e(this).parent().find("span.description");if(27===o.which&&t.length&&t.is(":visible"))return t.prop("aria-hidden",!0).slideUp(250),o.preventDefault(),!1}).on("click focus",function(){var o=e(this).parent(),t=o.find("span.description");o.addClass("currentTarget"),e(".woocommerce-input-wrapper:not(.currentTarget) span.description:visible").prop("aria-hidden",!0).slideUp(250),t.length&&t.is(":hidden")&&t.prop("aria-hidden",!1).slideDown(250),o.removeClass("currentTarget")}),e.scroll_to_notices=function(o){o.length&&e("html, body").animate({scrollTop:o.offset().top-100},1e3)},e('.woocommerce form .woocommerce-Input[type="password"]').wrap('<span class="password-input"></span>'),e(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),e(".password-input").each(function(){const o=e(this).find("input").attr("id"),t=e("<button>",{type:"button","class":"show-password-input","aria-label":woocommerce_params.i18n_password_show});t.attr("aria-describedby",o),e(this).append(t)}),e(".show-password-input").on("click",function(o){o.preventDefault(),e(this).hasClass("display-password")?(e(this).removeClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_show)):(e(this).addClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_hide)),e(this).hasClass("display-password")?e(this).siblings(['input[type="password"]']).prop("type","text"):e(this).siblings('input[type="text"]').prop("type","password"),e(this).siblings("input").trigger("focus")}),e("a.coming-soon-footer-banner-dismiss").on("click",function(o){var t=e(o.target);e.ajax({type:"post",url:t.data("rest-url"),data:{woocommerce_meta:{coming_soon_banner_dismissed:"yes"}},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",t.data("rest-nonce"))},complete:function(){e("#coming-soon-footer-banner").hide()}})}),"undefined"==typeof wc_add_to_cart_params&&e(document.body).on("keydown",".remove_from_cart_button",on_keydown_remove_from_cart),e(document.body).on("item_removed_from_classic_cart updated_wc_div",focu
2s_populate_live_region)}),document.addEventListener("DOMContentLoaded",on_document_ready); 3// source --> https://innatbayfortune.com/wp-content/plugins/js_composer/assets/js/vendors/woocommerce-add-to-cart.js 4(function ( $ ) { 5 'use strict'; 6 7 $( document ).ready( function () { 8 $( 'body' ).on( 'adding_to_cart', function ( event, $button, data ) { 9 if ( $button && $button.hasClass( 'vc_gitem-link' ) ) { 10 $button 11 .addClass( 'vc-gitem-add-to-cart-loading-btn' ) 12 .parents( '.vc_grid-item-mini' ) 13 .addClass( 'vc-woocommerce-add-to-cart-loading' ) 14 .append( $( '<div class="vc_wc-load-add-to-loader-wrapper"><div class="vc_wc-load-add-to-loader"></div></div>' ) ); 15 } 16 } ).on( 'added_to_cart', function ( event, fragments, cart_hash, $button ) { 17 if ( 'undefined' === typeof ($button) ) { 18 $button = $( '.vc-gitem-add-to-cart-loading-btn' ); 19 } 20 if ( $button && $button.hasClass( 'vc_gitem-link' ) ) { 21 $button 22 .removeClass( 'vc-gitem-add-to-cart-loading-btn' ) 23 .parents( '.vc_grid-item-mini' )
24 .removeClass( 'vc-woocommerce-add-to-cart-loading' ) 25 .find( '.vc_wc-load-add-to-loader-wrapper' ).remove(); 26 } 27 } ); 28 } ); 29})( window.jQuery ); 30// source --> https://innatbayfortune.com/wp-content/themes/iabf/custom.js?&ver=7.1 31// SCRIPT FOR TOCK BOOKING WIDGET 32 33!function(t,o,c,k){if(!t.tock){var e=t.tock=function(){e.callMethod?  e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e),  e.push=e,e.loaded=!0,e.version='1.0',e.queue=[];var f=o.createElement(c);f.async=!0,  f.src=k;var g=o.getElementsByTagName(c)[0];g.parentNode.insertBefore(f,g)}}(  window,document,'script','https://www.exploretock.com/tock.js');  tock('init', 'theinnatbayfortune'); 34 35jQuery(function ($) { 36 37 38// ACTIVATE ALL LINKS WITH CLASS TOCK-BOOKING FOR BOOKING WIDGET 39 40//$('.tock-booking').attr('data-tock-reserve', 'true').attr('data-tock-experience', '51110').attr('href', 'https://www.exploretock.com/theinnatbayfortune'); 41 42$('.tock-booking').attr('data-tock-reserve', 'true').attr('data-tock-experience', '295764').attr('href', 'https://www.exploretock.com/theinnatbayfortune'); 43 44$('.tock-booking.islander-days').attr('data-tock-reserve', 'true').attr('data-tock-experience', '280601').attr('href', 'https://www.exploretock.com/theinnatbayfortune'); 45 46 47 48// ROOMKEY BOOKING WIDGET 49 50$(document).ready(function(){ 51 52 $('.swh-checking-form .cms-room-btn a.swh-book').click(function(e) { 53 54 event.preventDefault(); 55 56 var arrival = $('#swh-room-check-in').val(); 57 var departure = $('#swh-room-check-out').val(); 58 var adults = $('#check-number-guests').val(); 59 60 if( arrival != '' && departure != '' && new Date(arrival).getTime() < new Date(departure).getTime() ) { 61 62 var ONE_DAY = 1000 * 60 * 60 * 24; 63 var arrivalDate = new Date(arrival); 64 var departureDate = new Date(departure); 65 var nights = Math.round((departureDate.getTime() - arrivalDate.getTime()) / ONE_DAY); 66 67 var roomsURL = 'https://www.bookonthenet.net/east/premium/eresmain.aspx?id=GxLnCfO3zYRvI%2bl7%2bj1Fdd24KcvpFLDMOuLyK4dC48Q%3d'; 68 roomsURL += '&arrival_date='; 69 roomsURL += arrival; 70 roomsURL += '&stay_nights='; 71 roomsURL += nights; 72 roomsURL += '&adults='; 73 roomsURL += adults; 74 75 window.location.href = roomsURL; 76 77 } 78 79 }) 80 81 82 $('form.swh-search .swh-search-submit input').click(function(e) { 83 84 event.preventDefault(); 85 86 var arrival = $('.swh-ft-check-in').val(); 87 var departure = $('.swh-ft-check-out').val(); 88 var adults = $('.swh-search-guests input').val(); 89 90 if( arrival != '' && departure != '' && new Date(arrival).getTime() < new Date(departure).getTime() ) { 91 92 var ONE_DAY = 1000 * 60 * 60 * 24; 93 var arrivalDate = new Date(arrival); 94 var departureDate = new Date(departure); 95 var nights = Math.round((departureDate.getTime() - arrivalDate.getTime()) / ONE_DAY); 96 97 var roomsURL = 'https://www.bookonthenet.net/east/premium/eresmain.aspx?id=GxLnCfO3zYRvI%2bl7%2bj1Fdd24KcvpFLDMOuLyK4dC48Q%3d'; 98 roomsURL += '&arrival_date='; 99 roomsURL += arrival; 100 roomsURL += '&stay_nights='; 101 roomsURL += nights; 102 roomsURL += '&adults='; 103 roomsURL += adults; 104 105 window.location.href = roomsURL; 106 107 } 108 109 }) 110 111 112}); 113 114 115// DISABLE CERTAIN MONTHS FOR ROOM BOOKING WIDGET 116 117$(document).on('DOMNodeInserted', function(e) { 118 if ($(e.target).is('.ui-datepicker-calendar')) { 119 120 $('.ui-datepicker tbody td[data-month="11"]').addClass('ui-datepicker-unselectable ui-state-disabled'); 121 $('.ui-datepicker tbody td[data-month="10"]').addClass('ui-datepicker-unselectable ui-state-disabled'); 122 $('.ui-datepicker tbody td[data-month="0"]').addClass('ui-datepicker-unselectable ui-state-disabled'); 123 $('.ui-datepicker tbody td[data-month="1"]').addClass('ui-datepicker-unselectable ui-state-disabled'); 124 $('.ui-datepicker tbody td[data-month="2"]').addClass('ui-datepicker-unselectable ui-state-disabled'); 125 $('.ui-datepicker tbody td[data-month="3"]').addClass('ui-datepicker-unselectable ui-state-disabled'); 126 127 } 128}); 129 130 131 132// DISABLE LINKS ON GALLERIES 133 134$(document).ready(function(){ 135 136 $('.gallery-media a').attr('href', '#').click(function( event ) { event.preventDefault(); }); 137 //$("a[href$='#']").click(function( event ) { event.preventDefault(); }); 138 139}); 140 141 142// ENABLE ANIMATIONS WHEN SCROLLED 143 144$(document).ready(function(){ 145 $('.fadeIn-when-visible').on('inview', function (event, visible) { 146 if (visible == true) { 147 $(this).addClass('animated delay-1s fadeIn'); 148 } else { 149 // element has gone out of viewport 150 } 151 }); 152}); 153 154 155 156// MOBILE MENU TOGGLE (apply on larger screens) 157 158$(document).ready(function(){ 159 160 if ($(window).width() > 991) { 161 $(document).find('.main-menu-toggle').remove(); 162 $('.main-navigation li.menu-item-has-children').append('<span class="main-menu-toggle"></span>'); 163 $('.main-menu-toggle').on('click', function () { 164 $(this).parent().find('> .sub-menu').toggleClass('submenu-open'); 165 $(this).parent().find('> .sub-menu').slideToggle(); 166 }); 167 } 168 169}); 170 171 172// SWAP COLUMNS ON MOBILE 173 174$(document).ready(function(){ 175 176 var columnsSwapped = 0; 177 178 $(window).resize(function() { 179 180 if( $(window).width() > 991 && columnsSwapped ) { 181 182 $('.vc_row.swap-columns-mobile').each(function () { 183 var swapColumns = $(this).children().siblings(); 184 swapColumns.first().insertAfter(swapColumns.last()); 185 }); 186 187 columnsSwapped = 0; 188 189 } 190 191 if( $(window).width() <= 991 && !columnsSwapped ) { 192 193 $('.vc_row.swap-columns-mobile').each(function () { 194 var swapColumns = $(this).children().siblings(); 195 swapColumns.first().insertAfter(swapColumns.last()); 196 }); 197 198 columnsSwapped = 1; 199 200 } 201 202 }).resize(); 203 204}
204); 205 206 207 208// WOOCOMMERCE TEXTAREA SIZING 209 210$(document).ready(function(){ 211 212 $('.woocommerce-additional-fields .woocommerce-input-wrapper #order_comments').attr('rows','8'); 213 214}); 215 216 217 218 219 220// BOOKING ALERT 221 222//$(document).ready(function(){ 223 224 225// $('#sr-res-root-home, #sr-res-root-home-top, #sr-res-root').click(function() { 226 227// alert('Planning to indulge in the FireWorks Feast? Due to a few technical glitches with our online booking system, your preferred date may show no availability when we still have seats. Please reach out to us at 1-888-687-3745 for hassle-free reservations.'); 228 229// }); 230 231//}); 232 233 234 235 236 237 238 239 240}); 241// source --> https://innatbayfortune.com/wp-content/themes/iabf/jquery.inview.js 242/** 243 * author Remy Sharp 244 * url http://remysharp.com/2009/01/26/element-in-view-event-plugin/ 245 */ 246(function ($) { 247 function getViewportHeight() { 248 var height = window.innerHeight; // Safari, Opera 249 var mode = document.compatMode; 250 251 if ( (mode || !$.support.boxModel) ) { // IE, Gecko 252 height = (mode == 'CSS1Compat') ? 253 document.documentElement.clientHeight : // Standards 254 document.body.clientHeight; // Quirks 255 } 256 257 return height; 258 } 259 260 $(window).scroll(function () { 261 var vpH = getViewportHeight(), 262 scrolltop = (document.documentElement.scrollTop ? 263 document.documentElement.scrollTop : 264 document.body.scrollTop), 265 elems = []; 266 267 // naughty, but this is how it knows which elements to check for 268 $.each($.cache, function () { 269 if (this.events && this.events.inview) { 270 elems.push(this.handle.elem); 271 } 272 }); 273 274 if (elems.length) { 275 $(elems).each(function () { 276 var $el = $(this), 277 top = $el.offset().top, 278 height = $el.height(), 279 inview = $el.data('inview') || false; 280 281 if (scrolltop > (top + height) || scrolltop + vpH < top) { 282 if (inview) { 283 $el.data('inview', false); 284 $el.trigger('inview', [ false ]); 285 } 286 } else if (scrolltop < (top + height)) { 287 if (!inview) { 288 $el.data('inview', true); 289 $el.trigger('inview', [ true ]); 290 } 291 } 292 }); 293 } 294 }); 295 296 // kick the event to pick up any elements already in view. 297 // note however, this only works if the plugin is included after the elements are bound to 'inview' 298 $(function () { 299 $(window).scroll(); 300 }); 301})(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.