1function sbVinetDone() { 2 console.log('JOSH WAS HERE'); 3 4 sbVinetpABox("sbVinet-footer"); 5 sbVinetpABox("sbVinet-hp"); 6 7 sbVinetonT(false,'sbVinet-hp'); 8} 9 10function elite_book_now() { 11 jQuery('.main_booking_top_link').remove(); 12 jQuery('#primary-menu .menu-item-book').remove(); 13 14 jQuery("#main_booking_top").hide(); 15 jQuery("#mobile_booking_top").hide(); 16 17 if (window.innerWidth >= 742) { 18 if (_is_euro == '1' ) { 19 jQuery('.header-inner #primary-menu').append('<li class="menu-item-book"><a href="https://eliteislandholidays.com/book/main.aspx?Clear=True&resort=theclub" target="_blank" class="btn book-now " style="display: inline-block;">Book Now</a></li>'); 20 } 21 else { 22 jQuery('.header-inner #primary-menu').append('<li class="menu-item-book"><a href="https://eliteisland.reservhotel.com/win/owa/ibe5.main?hotel=10972" target="_blank" class="btn book-now main_booking_top_link" style="display: inline-block;">Book Now</a></li>'); 23 } 24 25 jQuery(".main_booking_top_link").hover( 26 function() { 27 28 if (window.innerWidth >= 742 && window.innerWidth <= 1239) { 29 //jQuery(".popup#booking-pop-widget").addClass('open'); 30 } 31 else { 32 jQuery("#main_booking_top").show(); 33 jQuery("#main_booking_top").slideDown(); 34 } 35 36 } 37 ); 38 39 jQuery(".bt-close").click(function(){ 40 jQuery("#main_booking_top").hide(); 41 jQuery("#mobile_booking_top").hide(); 42 }); 43 44 // jQuery(".main_booking_top_link").click( 45 // function(event) { 46 // event.preventDefault(); 47 48 // if (window.innerWidth >= 742 && window.innerWidth <= 1239) { 49 // jQuery(".popup#booking-pop-widget").addClass('open'); 50 // } 51 // else { 52 // jQuery("#mobile_booking_top").toggle(); 53 // } 54 55 // } 56 // ); 57 58 jQuery(".click-content").mouseover(function(){ 59 jQuery(".click-info").css("display", "block"); 60 }); 61 62 jQuery(".click-content").mouseout(function(){ 63 jQuery(".click-info").css("display", "none"); 64 }); 65 66 /* jQuery('.main_booking_top_link').click(function(){ 67 jQuery("html, body").animate({ scrollTop: 0 }, "slow"); 68 jQuery("#main_booking_top").show(); jQuery("#main_booking_top").slideDown(); 69 //return false; 70 }); */ 71 72 } 73 else { 74 if (_is_euro == '1' ) { 75 jQuery('#primary-menu').append('<li class="menu-item-book"><a href="https://eliteislandholidays.com/book/main.aspx?Clear=True&resort=theclub" target="_blank" class="btn book-now main_booking_top_link" style="display: block; text-align: center;">Book Now</a></li>'); 76 } 77 else { 78 jQuery('#primary-menu').append('<li class="menu-item-book"><a href="https://eliteisland.reservhotel.com/win/owa/ibe5.main?hotel=10972" target="_blank" class="btn book-now main_booking_top_link" style="display: block; text-align: center;">Book Now</a></li>'); 79 80 } 81 } 82} 83 84//elite_book_now(); 85 86window.addEventListener('load', function(event) { 87 elite_book_now(); 88 89 window.addEventListener('resize', function(event) { 90 elite_book_now(); 91 }, true); 92 93 jQuery('.open-booking-pop-widget').each(function() { 94 jQuery(this).click(function(event) { 95 event.preventDefault(); 96 97 if (_is_euro == '1' ) { 98 window.open('https://book.eliteislandholidays.co.uk/?resort=club-barbados', '_blank'); 99 } 100 else { 101 window.open('https://eliteisland.reservhotel.com/win/owa/ibe5.main?hotel=10972', '_blank'); 102 } 103 }); 104 }); 105 106 jQuery(".popup .bt-close").each(function() { 107 jQuery(this).click(function() { 108 jQuery(".popup").each(function() { jQuery(this).removeClass('open') }); 109 }); 110 }); 111 112 jQuery('#toggle-mobile-menu').click(function() { 113 114 jQuery('#mobile-main-menu').toggle(); 115 jQuery('#page').toggle(); 116 117 }); 118 119 jQuery('#close-mobile-menu').click(function() { 120 121 jQuery('#mobile-main-menu').toggle(); 122 jQuery('#page').toggle(); 123 124 }); 125 126});
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.