1/**! 2 * Script used in section: MY BOOKING ENGINE 3 */ 4 5if( window.console ) console.log('LOADED -> sections/my-booking-engine.js'); 6 7 8//* BookingEngine collapse BreakPoint 9// pageWidthMinDesktop = 992; 10// spostato in main.js del tema per poter customizzare il breakpoint 11// if( window.console ) console.log('> DEBUG (my-booking-engine.js) -> px: ' + pageWidthMinDesktop); 12 13 14 15//*** ON READY EVENTS 16jQuery(document).ready(function() { 17 18 responsive_bookingengine(true, pageWidthMinDesktop); 19 20 //*** ON RESIZE EVENTS 21 jQuery(window).resize(function() { 22 responsive_bookingengine(false, pageWidthMinDesktop); 23 }); 24 25 26 //* Booking Engine: SHOW IN MODAL WINDOW 27 jQuery('#modalsearchbar').on('show.bs.modal',function(event){ 28 29 target = jQuery( event.relatedTarget ); 30 if( jQuery(this).hasClass('append-be') ) { 31 jQuery('#modalsearchbar').find('.modal-body').append( jQuery('#corpoboxricerca') ); 32 } 33 34 jQuery('#modalsearchbar .room-title').html( target.attr('data-productname') ); 35 if( jQuery('#modalsearchbar #mybooking-productsel').length > 0 ){ 36 jQuery('#modalsearchbar #mybooking-productsel').val( target.attr('data-product') ) 37 } 38 else{ 39 jQuery('#modalsearchbar #ricercaEsperienza').append('<input type="hidden" id="mybooking-productsel" value="' + target.attr('data-product') + '" name="productsel" />'); 40 } 41 42 }); 43 44 //* Booking Engine: HIDE MODAL WINDOW 45 jQuery('#modalsearchbar').on('hide.bs.modal', function(e) { 46 if( jQuery(this).hasClass('append-be') ){ 47 jQuery('#mybooking-productsel').remove(); 48 jQuery('#searchbar').append( jQuery('#corpoboxricerca') ); 49 } 50 }); 51 52 53 54});// --end JQUERY(DOCUMENT).READY ------------------------------------------------------------------------------ // 55 56 57 58// MAKE BOOKING ENGINE RESPONSIVE 59function responsive_bookingengine( init, wbreakpoint ) { 60 61 if( pageWidth() < wbreakpoint ){ 62 jQuery('#mobilebookengine').append(jQuery('#contbookengine')); 63 jQuery('#contbookengine').find('#searchbar').removeClass('ibeoriz'); 64 } 65 else if( init == false ){ 66 jQuery('#desktopbookingengine').append(jQuery('#contbookengine')); 67 jQuery('#contbookengine').find('#searchbar').addClass('ibeoriz'); 68 } 69 70} 71 72 73 74
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.