1$(document).ready(function(){ 2 $('body').addClass('home page-template page-template-page-home page-template-page-home-php page page-id-72 light luxury with-booking-panel scroll') 3 4 $('.main-menu-item-sub').on('mouseover', function (element) { 5 $(this).find('.sub-menu').show() 6 }) 7 $('.main-menu-item-sub').on('mouseout', function (element) { 8 $(this).find('.sub-menu').hide() 9 }) 10 11 // START - Menu Options 12 $('#nav-open').on('click', function (){ 13 if ($('#nav-overlay').hasClass('hidden')) { 14 $('#nav-overlay').addClass('show') 15 $('#nav-overlay').removeClass('hidden') 16 $('#nav-overlay').slideDown("800", "easeInQuart") 17 } else { 18 $('#nav-overlay').addClass('hidden') 19 $('#nav-overlay').removeClass('show') 20 } 21 }) 22 23 $('#nav-close').on('click', function () { 24 $('#nav-overlay').addClass('hidden') 25 $('#nav-overlay').removeClass('show') 26 }) 27 //END Menu Options 28 29 //Booking Panel Label Change 30 $('.LDSSearch-fromDate label').text('Arrival') 31 $('.LDSSearch-toDate label').text('Departure') 32 33 $('.room-node-item').on('mouseenter touchstart', function (){ 34 $(this).find('img').addClass('room-image-hover') 35 $(this).find('p').addClass('showText') 36 $(this).addClass('hoverItem') 37 }) 38 $('.room-node-item').on('mouseleave touchend', function (){ 39 $(this).find('img').removeClass('room-image-hover') 40 $(this).find('p').removeClass('showText') 41 $(this).removeClass('hoverItem') 42 }) 43 44 $('.gallery-image-list-div').find('[data-attribute="0"]').addClass('active-images') 45 $('.gallery-page-list').find('[data-attribute="0"]').addClass('active-gallery') 46 47 $('.gallery-page').on('click', function (e) { 48 $('.gallery-image-list-div').find('.active-images').removeClass('active-images') 49 $('.gallery-page-list').find('.active-gallery').removeClass('active-gallery') 50 51 var galery_id = $(this).attr('data-attribute'); 52 $(this).addClass('active-gallery') 53 $('.gallery-image-list-div').find('[data-attribute="'+galery_id+'"]').addClass('active-images') 54 }) 55 56 $('.mobile-booking-panel').on('click', function () { 57 $('.booking-panel').show() 58 $('.mobile-panel-close').show() 59 $(this).hide() 60 }) 61 62 $('.mobile-panel-close').on('click', function () { 63 $('.booking-panel').hide() 64 $('.mobile-panel-close').hide() 65 $('.mobile-booking-panel').show() 66 }) 67 68 $('#map-display').on('click', function (){ 69 // $('.map-element').toggle("slow"); 70 $('.map-element').addClass('map-show') 71 }) 72 73 $('.map-close-button').on('click', function (){ 74 // $('.map-element').toggle("slow"); 75 $('.map-element').removeClass('map-show'); 76 }) 77 78 $('#map_canvas').next().css('margin-top', '20px') 79 80 $('.desktop-ham-sub-down').on('click', function (){ 81 $(this).parent().find('.sub-menu-hamburger').show(); 82 $(this).parent().find('.sub-menu-hamburger').css("opacity", "1") 83 $(this).parent().find('.desktop-ham-sub-up').show() 84 $(this).hide() 85 }) 86 87 $('.desktop-ham-sub-up').on('click', function (){ 88 $(this).parent().find('.sub-menu-hamburger').hide(); 89 $(this).parent().find('.sub-menu-hamburger').css("opacity", "0") 90 $(this).parent().find('.desktop-ham-sub-down').show() 91 $(this).hide() 92 }) 93 94 $('.room-node-item').on('click', function (){ 95 window.location = $(this).attr("data-url"); 96 }) 97 98 $('.altDatesButton').on('click', function () { 99 if (screen.width < 768) { 100 $('.booking-panel').show() 101 $('.mobile-panel-close').show() 102 $('.mobile-booking-panel ').hide() 103 } 104 }) 105 106}); 107
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.