https://www.designeroutletalgarve.com/_assets/6a101b282a6a03d13b1a…/assets/smartresize.js?1790758556
1// @see https://github.com/peschee/jquery-smartresize/blob/master/jquery.smartresize.js 2 3// http://paulirish.com/2009/throttled-smartresize-jquery-event-handler/ 4(function($, sr){ 5 6 // debouncing function from John Hann 7 // http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/ 8 var debounce = function (func, threshold, execAsap) { 9 var timeout; 10 11 return function debounced () { 12 var obj = this, args = arguments; 13 14 function delayed () { 15 if (!execAsap) 16 func.apply(obj, args); 17 timeout = null; 18 } 19 20 if (timeout) 21 clearTimeout(timeout); 22 else if (execAsap) 23 func.apply(obj, args); 24 25 timeout = setTimeout(delayed, threshold || 100); 26 }; 27 }; 28 29 // smartresize 30 jQuery.fn[sr] = function(fn, threshhold){ return fn ? this.bind('resize', debounce(fn, threshhold)) : this.trigger(sr); }; 31 32})(jQuery,'smartresize');
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.