1/** 2 * Rearrange child elements in random order 3 * 4 * @see http://jsfiddle.net/C6LPY/2/ 5 */ 6(function($) { 7 $.fn.randomize = function() { 8 return this.each(function() { 9 var parent = $(this); 10 var children = parent.children(); 11 while(children.length) { 12 parent.append(children.splice(Math.floor(Math.random() * children.length), 1)[0]); 13 } 14 }); 15 } 16})(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.