1// Booking Summary Mobile and iPad 2if ($(window).width() < 1199) { 3 $("#booking-summary").detach().insertAfter(".mobile-hotel-info"); 4 $('.booking-summary-heading').click(function () { 5 $('.booking-summary-data').slideToggle(); 6 $(this).find('.icon-expand').toggleClass("rotate180"); 7 }); 8} 9// if ($(window).width() > 1200) { 10// $("#roomSlider1").detach().insertAfter("#roomDetails"); 11// } 12if ($(window).width() > 719) { 13 $(".confirmation-cards").each(function(){ 14 var largest = 0; 15 $(this).find(".confirmation-cards-card p").each(function(){ 16 var findHeight = $(this).height(); 17 if(findHeight > largest){ 18 largest = findHeight; 19 } 20 }); 21 var largest = largest + 0; 22 $(this).find(".confirmation-cards-card p").css({"height":largest+"px"}); 23 }); 24} 25// Mobile detach P3B 26if ($(window).width() < 991) { 27 $('.rate-name').click(function () { 28 $(this).closest('.rate-container').find('.rate-description').detach().insertAfter($(this).closest('.rate-container').find('.rate-name')); 29 }); 30 $(".room-modal-slider").detach().insertAfter(".room-modal-header"); 31} 32 33// Booking Summary Room Details 34$('.booking-summary-room-row').click(function () { 35 $(this).closest('.booking-summary-room-row').find('.booking-summary-room-row-expanded').slideToggle(); 36}); 37 38// .Fa rotate P3B 39$('.trigger-rotate').click(function () { 40 $(this).find('.fa').toggleClass('rotate180'); 41 $(this).find('i').toggleClass('rotate180'); 42}); 43 44 45// // View Rates P3B 46// $('.view-rates-btn').click(function () { 47// $(this).closest('.rate-wrapper').find('.rate-rooms').slideToggle(); 48// $("html, body").animate({ 49// scrollTop: $(this).closest('.rate-wrapper').find('.rate-details').offset().top - 10 50// }, 'slow'); 51// var value = $(this).text(); 52// console.log(value); 53// if (value.indexOf('show rooms') >= 0) { 54// $(this).html('hide rooms'); 55// } else { 56// $(this).html('show rooms'); 57// } 58// }); 59 60$('.rate-name').click(function () { 61 $(this).closest('.rate-container').find('.rate-description').slideToggle(); 62}); 63$('.expand-special-request').click(function () { 64 $(this).closest('section').find('.special-request-input').slideToggle(); 65}); 66// $(".view-rates-btn").click(function(){ 67// $(".icon-chevron-down").toggleClass("icon-chevron-up"); 68// }); 69// $(".plus-minus-icons").click(function(){ 70// $(".icon-plus-circle").toggleClass("icon-minus-circle"); 71// }); 72 73// Init tooltip 74$(function () { 75 $('[data-toggle="tooltip"]').tooltip() 76}) 77 78$('.hotel-info-buttons [data-toggle="tab"]').on('click', function () { 79 $('#modalTabs').modal('toggle'); 80 $('#modalTabs').find('[data-toggle="tab"]').removeClass('active'); 81 $('.nav-tab-' + $(this).attr('href').replace('#', '')).addClass('active'); 82}); 83 84$('.hotel-gallery').on('click', function () { 85 $('#modalTabs').modal('toggle'); 86 $('#modalTabs').find('[data-toggle="tab"]').removeClass('active'); 87 $('.nav-tab-' + $(this).attr('href').replace('#', '')).addClass('active'); 88}); 89 90// Lazy Load 91document.addEventListener('DOMContentLoaded', function () { 92 if (typeof LazyLoad != 'function') { 93 return; 94 } 95 var lazyLoadInstance = new LazyLoad({ 96 elements_selector: '.lazyload' 97 }); 98}); 99 100// Spinner 101$('.loading-spinner').one('click', function () { 102 $(this).append('<i class="fa fa-spinner fa-spin ml-2"></i>'); 103}); 104 105// Booking Widget 106$('.promo-code-link').on('click', function (e) { 107 e.preventDefault(); 108 $(this).next('.form-group').slideToggle(); 109}); 110 111$('.offers-form__filter-btn').click(function () { 112 $(this).closest('.offers-form').find('.offers-form__filter').slideToggle(); 113}); 114$('.offer-details__terms-link').click(function () { 115 $(this).closest('.offer-details__content').find('.offer-details__terms-content').slideToggle(); 116}); 117 118//Added 17/06/20 119$('.ibe-join-mobile-close').click(function () { 120 $('.ibe-join-mobile').hide(); 121});
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.