1/* 2 -------------------------------- 3 Infinite Scroll Behavior 4 Manual / Twitter-style 5 -------------------------------- 6 + https://github.com/paulirish/infinitescroll/ 7 + version 2.0b2.110617 8 + Copyright 2011 Paul Irish & Luke Shumard 9 + Licensed under the MIT license 10 11 + Documentation: http://infinite-scroll.com/ 12 13*/ 14 15(function($, undefined) { 16 $.extend($.infinitescroll.prototype,{ 17 18 _setup_twitter: function infscr_setup_twitter () { 19 var opts = this.options, 20 instance = this; 21 22 // Bind nextSelector link to retrieve 23 $(opts.nextSelector).click(function(e) { 24 if (e.which == 1 && !e.metaKey && !e.shiftKey) { 25 e.preventDefault(); 26 instance.retrieve(); 27 } 28 }); 29 30 // Define loadingStart to never hide pager 31 instance.options.loading.start = function (opts) { 32 opts.loading.msg 33 .appendTo(opts.loading.selector) 34 .show(opts.loading.speed, function () { 35 instance.beginAjax(opts); 36 }); 37 } 38 }, 39 _showdonemsg_twitter: function infscr_showdonemsg_twitter () { 40 var opts = this.options, 41 instance = this; 42 43 //Do all the usual stuff 44 opts.loading.msg 45 .find('img') 46 .hide() 47 .parent() 48 .find('div').html(opts.loading.finishedMsg).animate({ opacity: 1 }, 2000, function () { 49 $(this).parent().fadeOut('normal'); 50 }); 51 52 //And also hide the navSelector 53 $(opts.navSelector).fadeOut('normal'); 54 55 // user provided callback when done 56 opts.errorCallback.call($(opts.contentSelector)[0],'done'); 57 58 } 59 60 }); 61})(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.