-
-
Save yuiseki/889914 to your computer and use it in GitHub Desktop.
花見.荒川智則.jp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%title 梅ラボ花見 #o873 | |
%script{:src => "http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"} | |
%script{:src => "http://platform.twitter.com/anywhere.js?id=r6SEKr3NYesSmDL8bGeiLw&v=1"} | |
%link{:href => "http://ssig33.com/common.css", :type => "text/css", :rel => "stylesheet"} | |
#all | |
%h1 花見します | |
%h2 誰が来るの? | |
荒川智則 | |
%h2 どこでやんの? | |
代々木公園 | |
%h2 いつやるの? | |
2011/04/03 am 11:00 ~ | |
#sign_in | |
#tweetBox | |
#timeline | |
%table | |
%tr#timeline_before | |
:javascript | |
var twitter; | |
twttr.anywhere(function(obj) { | |
twitter = obj; | |
twitter.hovercards(); | |
twitter("#sign_in").connectButton({ | |
authComplete: function(){ | |
twitter("#tweetBox").tweetBox({ | |
label: "花見!", | |
defaultContent: "#o873" | |
}); | |
} | |
}); | |
if(twitter.isConnected()){ | |
twitter("#tweetBox").tweetBox({ | |
label: "花見!", | |
defaultContent: "#o873" | |
}); | |
}; | |
}); | |
$.getJSON("http://search.twitter.com/search.json?callback=?", {q: "#o873", lang: "ja"}, function(data, status){ | |
$.each(data["results"].reverse(), function(){ | |
html = "<tr>"; | |
html += "<td><img style='width:48px;height:48px;max-width:48px;' src='"+this["profile_image_url"]+"' /></td>"; | |
html += "<td>"+this["from_user"]+"</td><td>"+this["text"]+" <a class='lightgrey' href='http://twitter.com/"+this["from_user"]+"/"+this["id_str"]+"'>"+this["created_at"]+"</td>" | |
html += "</tr>"; | |
$("#timeline_before").after(html); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment