1function onAvailable(n,i,o){if(void 0!==n&&void 0!==i){n.constructor!==Array&&(n=[n]),void 0===o&&(o=100);var w=function(n){n=n.split(".");for(var i=window[n.shift()];i&&n.length;)i=i[n.shift()];return void 0!==i},r="$_onAvailableIntervals",t="$_onAvailableCallbacks";window[r]=window[r]||[],window[t]=window[t]||[],window[t].push(i);var a=window[t].length-1;window[r].push(setInterval(function(n,i){return function(){for(var o=!0,a=0;a<i.length;a++)o=o&&w(i[a]);o&&(clearInterval(window[r][n]),void 0!==window[t][n]&&window[t][n]())}}(a,n),o))}}; 2onAvailable(['jQuery', 'Mustache'], function() { 3 (function($){ 4 var base_url = 'https://availpro-sdk-test.fastbooking-ssl.com/offers'; 5 $.ajax(base_url, { 6 data: avp_offers_args, 7 dataType: 'jsonp', 8 success: function(data, textStatus, jqXHR) { 9 if (data.success && data.data.length > 0) { 10 var rates_to_hide = avp_offers_exclude; 11 var container = $('#avp_offers'); 12 var container_slideshow = $('.widget-startingfrom'); 13 var tpl = $('#avp_offers_tpl').text(); 14 var tpl_slideshow = $('#avp_offers_ss').text(); 15 data.data = data.data.filter(function(el) { 16 return (rates_to_hide.indexOf(el.rate.code) == -1); 17 }); 18 var html_slideshow = Mustache.render(tpl_slideshow, data); 19 container_slideshow.html(html_slideshow); 20 var html = Mustache.render(tpl, data); 21 container.html(html); 22 // build fancybox link 23 container.find('.promo-wrapper .more a, .promo-wrapper .title, .promo-wrapper .price, .promo-wrapper .image').on('click',function () { 24 var html = jQuery(this).closest('.promo-wrapper').find('.details').html(); 25 if(typeof(html)=='undefined') return; 26 html = '<div id="offer_details">' + html + '</div>'; 27 jQuery.fancybox(html, { 28 padding: 0 29 }); 30 }); 31 } 32 } 33 }); 34 })(jQuery); 35});
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.