1/* Copy and paste in footer for active Placeholder text in all older IE browsers */ 2 3 <script type="text/javascript"> 4 $(function() { 5 var input = document.createElement("input"); 6 if(('placeholder' in input)==false) { 7 $('[placeholder]').focus(function() { 8 var i = $(this); 9 if(i.val() == i.attr('placeholder')) { 10 i.val('').removeClass('placeholder'); 11 if(i.hasClass('password')) { 12 i.removeClass('password'); 13 this.type='password'; 14 } 15 } 16 }).blur(function() { 17 var i = $(this); 18 if(i.val() == '' || i.val() == i.attr('placeholder')) { 19 if(this.type=='password') { 20 i.addClass('password'); 21 this.type='text'; 22 } 23 i.addClass('placeholder').val(i.attr('placeholder')); 24 } 25 }).blur().parents('form').submit(function() { 26 $(this).find('[placeholder]').each(function() { 27 var i = $(this); 28 if(i.val() == i.attr('placeholder')) 29 i.val(''); 30 }) 31 }); 32 } 33 }); 34 </script>
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.