1(function($) { 2 /*OffersManager just detects in a bomb-proof way when the special offers snippet has loaded. */ 3 OffersManager={hasOffers:false, callbacks:{},debugEnabled:false,intervals:{}}; 4 OffersManager.callbacks.onSingle=function(selector, index) {OffersManager.debug('onSingle'); OffersManager.debug(selector); }; 5 OffersManager.debug=function(a) {if (this.debugEnabled && typeof window.console !== 'undefined' && console.log) {console.log(a);}}; 6 OffersManager.init=function() { 7 var i=0, selector=''; 8 if (typeof offersconf === 'undefined' || offersconf.length === 0) { 9 this.hasOffers=false; 10 return false; 11 } else { 12 for (i=0; i<offersconf.length; i++) { 13 selector=offersconf[i]; 14 this.startPolling(selector,i); 15 } 16 } 17 }; 18 OffersManager.startPolling=function(selector,index) { 19 var vn='_fbom_'+index, vnsel='_fbom_conf_'+index; 20 (function(index,selector,om) { 21 om.intervals[index]=setInterval(function() { 22 if ($(selector).size()>0) { 23 clearInterval(om.intervals[index]); 24 om.callbacks.onSingle(selector, index); 25 } 26 }, 100); 27 })(index, selector,this); 28 }; 29})(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.