(function() {
  /*supports_geolocation = () ->
      !!navigator.geolocation

  get_location = (cb) ->
      if supports_geolocation()
          navigator.geolocation.getCurrentPosition cb, null, {maximumAge: 300000}

  parsed_location = (name) ->
      $('span[role="location"]').html "near <strong>#{name}</strong>"

  update_location = (position) ->
      lat = position.coords.latitude
      lon = position.coords.longitude
      url = "/api/location/?lat=#{lat}&lon=#{lon}"

      $.ajax {
          url: url,
          success: parsed_location
      }

  get_location update_location*/  $('div.feedback-form').hide();
  $('a.feedback-link').click(function() {
    $('div.feedback-form').slideToggle('slow');
    return false;
  });
  (function() {
    var emptied;
    emptied = false;
    return $('#join input.who').focus(function() {
      if (!emptied) {
        $(this).val('');
        return emptied = true;
      }
    });
  }).call(this);
}).call(this);

