// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

$(document).ready(function() {
  $("#notice").hide().fadeIn(3000).fadeOut(5000);

  $('.js-warning').remove();
  var contactForm = $("#timed-comment-form");
  if (contactForm.length > 0) {
    $.get("/contact/token", function(txt) {
      $("#timed-comment-form").append("<input type=\"hidden\" name=\"ts\" value=\""+txt+"\" />");
    });
  }
});
