1 2(function ($) { 3 4 //this event is triggered by the components itself 5 $('qw-offers').on('qwOffersOnLoad', function () { 6 initOfferList(); 7 }); 8 9 10 // original function found on Hotel Gabriel; needed to associate room cards to corresponding page 11 // https://git.fastbooking.ch/webprogram/hotel-gabriel/-/blob/master/src/js/room-list.js 12 // indexing variable room_id_mapping is created by a php function (see templates/utils.php) 13 14 15 function initOfferList() { 16 document.addEventListener('qwOffersOfferClick', function (e) { 17 var strRoomId = e.detail.roomId; 18 19 if (typeof room_id_mapping[strRoomId] !== 'undefined') { 20 window.location.href = room_id_mapping[strRoomId]; 21 } else { 22 alert('Room not found'); 23 } 24 }); 25 } 26 27}(jQuery) );
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.