// Released under MIT license: http://www.opensource.org/licenses/mit-license.php $('[placeholder]').focus(function() { var input = $(this); if (input.val() == input.attr('placeholder')) { input.val(''); input.removeClass('placeholder'); } }).blur(function() { var input = $(this); if (input.val() == '' || input.val() == input.attr('placeholder')) { input.addClass('placeholder'); input.val(input.attr('placeholder')); } }).blur().parents('form').submit(function() { $(this).find('[placeholder]').each(function() { var input = $(this); if (input.val() == input.attr('placeholder')) { input.val(''); } }) }); /* FILE ARCHIVED ON 12:11:34 Oct 16, 2016 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 06:26:31 Feb 08, 2020. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): esindex: 0.014 captures_list: 164.089 LoadShardBlock: 144.749 (3) CDXLines.iter: 14.837 (3) exclusion.robots: 0.192 PetaboxLoader3.datanode: 278.749 (5) RedisCDXSource: 1.162 exclusion.robots.policy: 0.179 PetaboxLoader3.resolve: 153.102 (2) load_resource: 325.319 */