1jQuery(document).ready(function(){ 2 3 function PEPFU(){ 4 var pepFU = jQuery(window).innerHeight() - jQuery('footer').height() - jQuery('#wpadminbar').height(); 5 jQuery('body > .content').css('min-height', pepFU); 6 } 7 PEPFU() 8 9 /*add caret to dropdown menu*/ 10 /*open on hover or click*/ 11 jQuery('nav .menu-item-has-children > a').each( function(){ 12 jQuery(this).append('<span class="caret"></span>') 13 }) 14 jQuery('nav .menu-item-has-children').each( function(){ 15 jQuery(this).append('<span class="thereCaret"><img src="/wp-content/uploads/2020/04/right-arrow-grey-chevron.png" title="" alt=""/></span>') 16 }) 17 /*open on hover or click*/ 18 if (jQuery(window).innerWidth() > 1199) { 19 jQuery('nav .menu-item-has-children').hover(function(){ 20 jQuery(this).find('ul:first').stop().slideDown(300); 21 }, function(){ 22 jQuery(this).find('ul:first').stop().slideUp(200); 23 }); 24 }else{ 25 jQuery('nav .menu-item-has-children .thereCaret').click(function(){ 26 jQuery(this).parent().find('ul:first').toggleClass('openMenu'); 27 jQuery(this).toggleClass('active'); 28 }); 29 } 30 31 if(jQuery(window).innerWidth() > 600){ 32 var topHP = 0 + jQuery('#wpadminbar').height(); 33 }else{ 34 var topHP = 0; 35 } 36 37 /*Height header*/ 38 function HH(){ 39 var heiHeader = jQuery('.fixing').innerHeight(); 40 jQuery('header').height(heiHeader); 41 } 42 HH(); 43 jQuery('.searchOpen').click(function(){ 44 jQuery('header .headerSearch').stop().slideDown(300);; 45 }); 46 jQuery('.headerSearch').click(function(){ 47 setTimeout(function(){ 48 jQuery("#resortpro_sw_lodging_unit").focus(); 49 }, 200); 50 }) 51 52 /*cacl height and position*/ 53 function FiH(){ 54 if(window.innerWidth > 600){ 55 var tpFH = jQuery('.fixing').innerHeight() + jQuery('#wpadminbar').height(); 56 }else{ 57 var chCL = jQuery('.fixing').hasClass('activated'); 58 if(chCL == false){ 59 var tpFH = jQuery('.fixing').height() + jQuery('#wpadminbar').height(); 60 }else{ 61 var tpFH = jQuery('.fixing').height(); 62 } 63 } 64 var formHei = jQuery(window).innerHeight() - tpFH; 65 jQuery('header nav').css({'max-height': formHei}); 66 } 67 FiH() 68 69 jQuery(window).scroll(function(){ 70 /*header fixed pos*/ 71 if(jQuery(window).scrollTop() > 100){ 72 jQuery('.fixing').addClass('activated').css({'top': topHP}); 73 FiH(); 74 }else{ 75 jQuery('.fixing').removeClass('activated').attr('style', ''); 76 FiH(); 77 } 78 });/*End Scroll Function*/ 79 jQuery(window).resize(function(){ 80 HH(); 81 FiH(); 82 }); 83 84 /*Trigger Focus*/ 85 jQuery('.headerSearch').click(function(){ 86 setTimeout(function(){ 87 jQuery("#resortpro_sw_lodging_unit").focus(); 88 }, 200); 89 }); 90 91 jQuery('.modal_btn').click(function(e) { 92 e.preventDefault(); 93 jQuery('.modal_search').fadeIn(300); 94 }); 95 96 jQuery('.modal_search .close_modal').click(function() { 97 jQuery('.modal_search').fadeOut(300); 98 }); 99 100 jQuery('.for-widget-toggle').click(function(ev){ 101 ev.preventDefault(); 102 jQuery('.modal_search').slideToggle(300); 103 }); 104 105 jQuery('#resortpro_sw_bed').change(function() { 106 this.form.submit(); 107 }); 108 109 /*Mail Togling*/ 110 jQuery('.mobileMenuClose').click(function() { 111 jQuery('.CustomMobileMenu').removeClass('open'); 112 }) 113 emailClick = 1 114 jQuery('header .mail').click(function() { 115 if(emailClick == 1){ 116 jQuery('.CustomMobileMenu').addClass('open'); 117 } 118 119 }) 120 jQuery(document).mouseup(function (e){ 121 var div = jQuery(".CustomMobileMenu"); 122 var hzCL = jQuery('.CustomMobileMenu').hasClass('open'); 123 if (!div.is(e.target) && div.has(e.target).length === 0) { 124 if(hzCL == true){ 125 jQuery('.CustomMobileMenu').removeClass('open'); 126 emailClick = 0; 127 }else{ 128 emailClick = 1; 129 } 130 } 131 }); 132 var header_h = jQuery('header').innerHeight() + jQuery('#wpadminbar').height(); 133 jQuery(".CustomMobileMenu").css('max-height', 'calc(100vh - '+header_h+'px)'); 134 135 if(window.innerWidth < 992){ 136 jQuery('.footer-links.footer-block h3, footer .center-menu.footer-block h3').on('click', function () { 137 jQuery(this).next('ul').slideToggle('slow'); 138 jQuery(this).toggleClass('openLinks'); 139 }); 140 } 141 142 jQuery('#top-property-management').click(function(ev){ 143 ev.preventDefault(); 144 jQuery('html, body').animate({scrollTop:0}, 500); 145 }); 146 147});/*End Document Ready*/ 148 149 150 151
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.