1(function($) { 2 $.fn.watermark = function(css, text) { 3 return this.each(function() { 4 var i = $(this), w; 5 i.focus(function() { 6 w && !(w=0) && i.removeClass(css).data('w',0).val(''); 7 }) 8 .blur(function() { 9 !i.val() && (w=1) && i.addClass(css).data('w',1).val(text); 10 }) 11 .closest('form').submit(function() { 12 w && i.val(''); 13 }); 14 i.blur(); 15 }); 16 }; 17 $.fn.removeWatermark = function() { 18 return this.each(function() { 19 $(this).data('w') && $(this).val(''); 20 }); 21 }; 22})(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.