// Generated by CoffeeScript 1.6.2
(function() {
  $('#boardcast').submit(function() {
    var _this = this;

    if (this.password.value && this.content.value) {
      $.getJSON('http://my-card.in/servers.json', function(data) {
        var server, _i, _len;

        $('#result').empty();
        data.push({
          index: 'http://122.0.65.70:7986/'
        });
        for (_i = 0, _len = data.length; _i < _len; _i++) {
          server = data[_i];
          $('<li/>').append($('<iframe />', {
            src: "" + server.index + "?operation=boardcast&pass=" + _this.password.value + "&content=" + _this.content.value,
            "class": "result",
            scrolling: 'no'
          })).appendTo('#result');
        }
        return $(_this.content).val('');
      });
    }
    return false;
  });

}).call(this);
