vendor: 1,231 bytes, lines 1-55
1/** 2 * IAS None Left Extension 3 * An IAS extension to show a message when there are no more pages te load 4 * https://infiniteajaxscroll.com 5 * 6 * This file is part of the Infinite AJAX Scroll package 7 * 8 * Copyright 2014-2018 Webcreate (Jeroen Fiege) 9 */ 10 11var IASNoneLeftExtension = function(options) { 12 options = jQuery.extend({}, this.defaults, options); 13 14 this.ias = null; 15 this.uid = (new Date()).getTime(); 16 this.html = (options.html).replace('{text}', options.text); 17 18 /** 19 * Shows none left message 20 */ 21 this.showNoneLeft = function() { 22 var $element = jQuery(this.html).attr('id', 'ias_noneleft_' + this.uid), 23 $lastItem = this.ias.getLastItem(); 24 25 $lastItem.after($element); 26 $element.fadeIn(); 27 }; 28 29 return this; 30}; 31 32/** 33 * @public 34 */ 35IASNoneLeftExtension.prototype.bind = function(ias) { 36 this.ias = ias; 37 38 ias.on('noneLeft', jQuery.proxy(this.showNoneLeft, this)); 39}; 40 41/** 42 * @public 43 * @param {object} ias 44 */ 45IASNoneLeftExtension.prototype.unbind = function(ias) { 46 ias.off('noneLeft', this.showNoneLeft); 47}; 48 49/** 50 * @public 51 */ 52IASNoneLeftExtension.prototype.defaults = { 53 text: 'You reached the end.', 54 html: '<div class="ias-noneleft" style="text-align: center;">{text}</div>' 55};
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.