1$(document).ready(function () { 2 3"use strict"; 4 5$('.hotel-menu > ul > li:has( > ul)').addClass('menu-dropdown-icon'); 6 7 8$('.hotel-menu > ul > li > ul:not(:has(ul))').addClass('normal-sub'); 9 10$(".hotel-menu > ul").before("<a href=\"#\" class=\"menu-mobile\">Navigation</a>"); 11 12$(".hotel-menu > ul > li").hover( 13function (e) { 14if ($(window).width() > 1010) { 15$(this).children("ul").fadeIn(150); 16e.preventDefault(); 17} 18}, function (e) { 19if ($(window).width() > 1010) { 20$(this).children("ul").fadeOut(150); 21e.preventDefault(); 22} 23} 24); 25 26$(document).on('click', function(e){ 27if($(e.target).parents('.hotel-menu').length === 0) 28$(".hotel-menu > ul").removeClass('show-on-mobile'); 29}); 30 31$(".hotel-menu > ul > li").click(function() { 32var thisMenu = $(this).children("ul"); 33var prevState = thisMenu.css('display'); 34$(".hotel-menu > ul > li > ul").fadeOut(); 35if ($(window).width() < 943) { 36if(prevState !== 'block') 37thisMenu.fadeIn(150); 38} 39}); 40 41$(".hotel-menu-mobile").click(function (e) { 42$(".hotel-menu > ul").toggleClass('show-on-mobile'); 43e.preventDefault(); 44}); 45 46});
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.