1 2jQuery(function ($) { 3 4 // Randomize posts on things-to-do page 5 $(document).ready(function() { 6 var url = window.location.pathname; 7 if (url.includes('things-to-do')) { 8 var posts = $(".vrp-col-xs-12.left-side .vrpc-post"); 9 for(var i = 0; i < posts.length; i++){ 10 var target = Math.floor(Math.random() * posts.length -1) + 1; 11 var target2 = Math.floor(Math.random() * posts.length -1) +1; 12 posts.eq(target).before(posts.eq(target2)); 13 } 14 } 15 }) 16 17 18 if( $( document ).scrollTop() > 0 ){ 19 $( '.site-header' ).addClass( 'dark' ); 20 } 21 $(document).ready(function() { 22 $('.wp-block-uagb-tabs-child ').removeClass('homepage-tabs'); 23 }); 24 25 if ($(document).scrollTop() > 240) { 26 $('.theTabs').addClass('stick'); 27 $('#checkavailbox').addClass('fixed'); 28 } 29 30 // Add opacity class to site header 31 $(document).on('scroll', function () { 32 33 if ( $( document ).scrollTop() > 0 ){ 34 $( '.site-header' ).addClass( 'dark' ); 35 36 } else { 37 $( '.site-header' ).removeClass( 'dark' ); 38 } 39 40 if ($(document).scrollTop() > 240) { 41 $('.theTabs').addClass('stick'); 42 $('#checkavailbox').addClass('fixed'); 43 } else { 44 $('.theTabs').removeClass('stick'); 45 $('#checkavailbox').removeClass('fixed'); 46 } 47 48 $('#sharebox').hide(); 49 50 }); 51 52 $(document).ready(function(){ 53 $('.sidebarBtn').click(function(){ 54 $('.mobmenu-ulnav').toggleClass('mobmenu-active'); 55 }); 56 }) 57 $(document).ready(function () { 58 $("#mobmenu .sub-menu").hide(); 59 $("#mobmenu .current_page_item .sub-menu").show(); 60 $("#mobmenu li.menu-item").one("click", function (event) { // mouse CLICK instead of hover 61 console.log('click menu-item'); 62 // Only prevent the click on the topmost buttons 63 if ($(this).children('ul').length >=1) { 64 console.log('check for lenght passed'); 65 event.preventDefault(); 66 } 67 $("#mobmenu .sub-menu").hide(); // First hide any open menu items 68 $(this).find(".sub-menu").show(); // display child 69 event.stopPropagation(); 70 }); 71 72 73 }); 74 75 $(function () { 76 $('.page-id-0 a[href*="#"]:not([href="#"])').click(function () { 77 if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { 78 var target = $(this.hash); 79 target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); 80 if (target.length) { 81 $('html, body').animate({ 82 scrollTop: target.offset().top - 140 83 }, 1000); 84 return false; 85 } 86 } 87 }); 88 }); 89 90 $(".vrp-share-button").on('click', function () { 91 $('#sharebox').show(); 92 }); 93 94 95 96 $('.nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu').addClass('responsive-menu').before('<div class="responsive-menu-icon"></div>'); 97 98 $('.responsive-menu-icon').click(function () { 99 $(this).next('.nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu').slideToggle(); 100 }); 101 102 $(window).resize(function () { 103 if (window.innerWidth > 800) { 104 $('.nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu, nav .sub-menu').removeAttr('style'); 105 $('.responsive-menu > .menu-item').removeClass('menu-open'); 106 } 107 }); 108 109 $('.responsive-menu > .menu-item').click(function (event) { 110 if (event.target !== this) 111 return; 112 $(this).find('.sub-menu:first').slideToggle(function () { 113 $(this).parent().toggleClass('menu-open'); 114 }); 115 }); 116 117 jQuery('#menu-main-menu li').on("click", function () { 118 jQuery(this).siblings('.menu-open').children('ul').slideToggle(); 119 jQuery(this).siblings().removeClass("menu-open"); 120 }); 121 122}); 123 124jQuery(document).ready(function ($) { 125 126 jQuery('.searchlinks span.selection > span > span[title="- Choose -"] ').html("Select By Name"); 127 128 jQuery('.abe-unit-links span.selection > span > span[title="- Choose -"] ').html("Select By Name"); 129 130 $('input').on('invalid', function (e) { 131 setTimeout(function () { 132 $('html, body').animate({ scrollTop: document.documentElement.scrollTop - 150 }, 0); 133 }, 0); 134 }); 135 136 /* MENU SEARCH TOGGLE */ 137 jQuery('li.popup-search').on('click', function (e) { 138 e.preventDefault(); 139 jQuery('.properties-popup-content').toggleClass("display"); 140 }); 141 142 jQuery('.close-properties-popup').on('click', function (e) { 143 e.preventDefault(); 144 jQuery('.properties-popup-content').removeClass("display"); 145 }); 146 147 jQuery('li.popup-mail').on('click', function (e) { 148 e.preventDefault(); 149 jQuery('.popup-email-content').toggleClass("display"); 150 }); 151 152 jQuery('.close-popup').on('click', function (e) { 153 e.preventDefault(); 154 jQuery('.popup-email-content').removeClass("display"); 155 }); 156 157 158 // $(function() { 159 // $('.list2').addClass('is-read is-open'); 160 // }); 161 162 163 // $("#ac-2").attr("style", "display:block") 164 165 166 167 168 169}); 170 171 172jQuery(document).ready(function ($) { 173 174 $('a.mtsnb-link').click(function(){ 175 window.open(this.href); 176 return false;
177 }); 178 179 180 $('.browse-listings-slider .gb-block-layout-column-inner').slick({ 181 slidesToShow: 3, 182 slidesToScroll: 1, 183 infinite: true, 184 centerMode: true, 185 dots: false, 186 centerPadding: '350px', 187 responsive: [ 188 { 189 breakpoint: 1920, 190 settings: { 191 slidesToShow: 3, 192 slidesToScroll: 3, 193 infinite: true, 194 centerPadding: '350px', 195 dots: false 196 } 197 }, 198 { 199 breakpoint: 1440, 200 settings: { 201 slidesToShow: 3, 202 slidesToScroll: 3, 203 infinite: true, 204 centerPadding: '230px', 205 dots: false 206 } 207 }, 208 { 209 breakpoint: 1024, 210 settings: { 211 slidesToShow: 3, 212 slidesToScroll: 3, 213 infinite: true, 214 centerPadding: '230px', 215 dots: false 216 } 217 }, 218 { 219 breakpoint: 600, 220 settings: { 221 slidesToShow: 2, 222 slidesToScroll: 2 223 } 224 }, 225 { 226 breakpoint: 480, 227 settings: { 228 slidesToShow: 1, 229 centerPadding: '100px', 230 slidesToScroll: 1 231 } 232 } 233 ] 234 }); 235 236 237 $('.town-events .uagb-post__items').slick({ 238 slidesToShow: 3, 239 slidesToScroll: 1, 240 infinite: true, 241 centerMode: true, 242 dots: false, 243 centerPadding: '350px', 244 responsive: [ 245 { 246 breakpoint: 1920, 247 settings: { 248 slidesToShow: 3, 249 slidesToScroll: 3, 250 infinite: true, 251 centerPadding: '350px', 252 dots: false 253 } 254 }, 255 { 256 breakpoint: 1440, 257 settings: { 258 slidesToShow: 3, 259 slidesToScroll: 3, 260 infinite: true, 261 centerPadding: '230px', 262 dots: false 263 } 264 }, 265 { 266 breakpoint: 1024, 267 settings: { 268 slidesToShow: 3, 269 slidesToScroll: 3, 270 infinite: true, 271 centerPadding: '230px', 272 dots: false 273 } 274 }, 275 { 276 breakpoint: 600, 277 settings: { 278 slidesToShow: 2, 279 slidesToScroll: 2 280 } 281 }, 282 { 283 breakpoint: 480, 284 settings: { 285 slidesToShow: 1, 286 centerPadding: '100px', 287 slidesToScroll: 1 288 } 289 } 290 ] 291 }); 292 293 // handle links with @href started with '#' only 294 $(document).on('click', 'a[href^="#"]', function(e) { 295 // target element id 296 var id = $(this).attr('href'); 297 298 // target element 299 var $id = $(id); 300 if ($id.length === 0) { 301 return; 302 } 303 304 // prevent standard hash navigation (avoid blinking in IE) 305 e.preventDefault(); 306 307 // top position relative to the document 308 var pos = $id.offset().top-180; 309 310 // animated top scrolling 311 $('body, html').animate({scrollTop: pos}); 312 }); 313 314 $(window).load(function() { 315 $(".loader-main").delay(30).fadeOut("slow"); 316 $("#overlayer").delay(30).fadeOut("slow"); 317 }) 318 319 }); 320
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.