1jQuery.noConflict(); 2 3jQuery(document).ready(function($) { 4 5 $('.kws_form:not(.has_errors):not(.has_success) input[type=text]').clearText(); 6 7 $('.kws_form .cc_success').vAlign(); 8 9}); 10 11(function (jQuery) { 12jQuery.fn.clearText = function() { 13 return this.focus(function() { 14 if( this.value == this.defaultValue ) { 15 this.value = ""; 16 } 17 }).blur(function() { 18 if( !this.value.length ) { 19 this.value = this.defaultValue; 20 } 21 }); 22}; 23})(jQuery); 24 25(function (jQuery) { 26 jQuery.fn.vAlign = function() { 27 return this.each(function(i){ 28 var ah = jQuery(this).height(); 29 var ph = jQuery(this).parent().height(); 30 var mh = (ph - ah) / 2; 31 jQuery(this).css('margin-top', mh); 32 }); 33 }; 34})(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.