/* <3 JS */

var coop = {};

coop.init = function() {
  //functions here
  
  //TheCoopChicago
  
  /*$.ajax({
    async: true,
    type: 'GET',
    data: {
      'num': 1
    },
    url: 'http://blog.coworkchicago.com/api/read/json',
    success: function(response) {
      console.log(response);
    }
  }); */
  
  // $.ajax({
  //    async: true,
  //    type: 'POST',
  //    data: {
  //      
  //    }
  //  });
  // var posts = tumblr_api_read.posts;
  //   
  //   var template = _.template($('#template').html(), posts);
  $("#carousel ul").cycle({
    fx: 'scrollUp'
  });
  
  $("#post").tweet({
    username: "TheCoopChicago",
    count: 1,
    retweets: false,
    template: "{avatar}{join}{text}{time}"
  });
};

$(function() { coop.init(); });
