1/* neatShow.js 2 * version v1.2 (06/2013) 3 * Copyright 2013 Steve Papadopoulos. 4 * Released under the MIT license. 5 * http://stevepapa.com/neatshowjs 6 * Dependencies: jQuery v1.4+ 7 */ 8 9(function( $ ) { 10 11 jQuery.fn.neatShow = function (option) { 12 13 var selection = this; 14 var minSpeed = 400; 15 var maxSpeed = 1800; 16 17 if (typeof option === 'undefined') option = {}; 18 option.speed = option.speed || null; 19 option.mode = option.mode || null; 20 option.minSpeed = option.minSpeed || minSpeed; 21 option.maxSpeed = option.maxSpeed || maxSpeed; 22 23 if (option.mode == 'container') selection = this.find('img:not(:visible)'); 24 25 var neat = function(){ 26 27 option.speed = 'random' ? 28 this.speed = Math.floor(Math.random()*(option.maxSpeed-option.minSpeed+1)+option.minSpeed) : 29 this.speed = option.speed ; 30 31 $(this).fadeIn(this.speed); 32 }; 33 34 return selection.each(function () { 35 if (this.complete || this.readyState == 'complete') { 36 neat.call(this); 37 } else { 38 $(this).on('load',neat); 39 } 40 }); 41 }; 42 43}( 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.