// 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 08:04:33 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):
  PetaboxLoader3.resolve: 233.033 (3)
  load_resource: 248.255
  CDXLines.iter: 31.383 (3)
  exclusion.robots.policy: 0.285
  exclusion.robots: 0.307
  captures_list: 304.342
  RedisCDXSource: 5.095
  LoadShardBlock: 262.964 (3)
  esindex: 0.014
  PetaboxLoader3.datanode: 267.011 (5)
*/