diff --git a/assets/js/ia3.js b/assets/js/ia3.js index eddd643..00464a9 100644 --- a/assets/js/ia3.js +++ b/assets/js/ia3.js @@ -65,37 +65,6 @@ ia3 = { } } }, - foundTweetlist: function() { - var e = "", - g = {}, - f = $("#containsTweets"), - h = $("#containsTwoosers"); - $(document).bind("CORE:FOUND_TWEETS:FETCH", function() { - $.getJSON("http://search.twitter.com/search.json?callback=?&rpp=10&q=" + e.replace(/\+OR\+$/, ""), function(a) { - if (typeof a.results == "object" || typeof a.results == "array") { - g = a.results; - $(document).trigger("CORE:FOUND_TWEETS:UPDATE"); - } - }); - }); - $(document).bind("CORE:FOUND_TWEETS:UPDATE", function() { - f.empty(); - for (var b in g) { - var a = g[b]; - a.text = a.text.replace(/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/g, '$1'); - a.text = a.text.replace(/\@(\w+)/g, '@$1'); - f.append('
  • ' + a.from_user + ": " + a.text + '

    ' + $.timeago(a.created_at) + "

  • "); - } - setTimeout(function() { - $(document).trigger("CORE:FOUND_TWEETS:FETCH"); - }, - 180000); - }); - $("li h2 a", h).each(function() { - e += "from%3A" + $(this).html() + "+OR+"; - }); - $(document).trigger("CORE:FOUND_TWEETS:FETCH"); - } } }; -$(document).bind("CORE:HAS_INITIALIZED", ia3.listeners.hasInitialized).bind("CORE:HAS_RESIZED", ia3.listeners.hasResized).bind("CORE:FOUND_TWEETLIST", ia3.listeners.foundTweetlist); +$(document).bind("CORE:HAS_INITIALIZED", ia3.listeners.hasInitialized).bind("CORE:HAS_RESIZED", ia3.listeners.hasResized);