1jQuery( document ).ready( function( $ ) { 2 'use strict'; 3 4 $( '.hb-listing-book-accom' ).on( 'click', function() { 5 if ( $( this ).parents( '.hb-accom-listing-column' ).find( '.hb-accom-listing-booking-form' ).is( ':hidden' ) ) { 6 $( this ).parents( '.hb-accom-listing-column' ).find( '.hb-accom-listing-booking-form' ).slideDown(); 7 } else { 8 $( this ).parents( '.hb-accom-listing-column' ).find( '.hb-accom-listing-booking-form' ).slideUp(); 9 } 10 return false; 11 }); 12 13 $( '.hb-accom-listing-actions-wrapper' ).on( 'click', '.hb-listing-view-accom input', function( e ) { 14 e.preventDefault(); 15 $( this ).blur(); 16 window.open( $( this ).data( 'accom-url' ), $( this ).data( 'link-target' ) ); 17 }); 18 19 $( window ).resize( debouncer( function() { 20 if ( $( '.hb-accom-listing-row' ).width() < 650 ) { 21 $( 'div.hb-accom-listing-column' ).addClass( 'hb-accom-listing-mobile-view'); 22 } else { 23 $( 'div.hb-accom-listing-column' ).removeClass( 'hb-accom-listing-mobile-view'); 24 } 25 })); 26 27 function debouncer( func ) { 28 var timeoutID, 29 timeout = 50; 30 return function () { 31 var scope = this, 32 args = arguments; 33 clearTimeout( timeoutID ); 34 timeoutID = setTimeout( function () { 35 func.apply( scope, Array.prototype.slice.call( args ) ); 36 }, timeout ); 37 } 38 } 39 40});
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.