Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 36 lines (35 sloc) 1.424 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
<!DOCTYPE html>
<html>
    <head>
        <title>Sina microblog</title>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
        <script src="/static/weibo.publish.js"></script>
        <link rel="stylesheet" type="text/css" href="/static/weibo.css" media="all" />
    </head>
    <body>
        <div id="tweet_box">
            <textarea></textarea><br />
            <button>发表新浪微博</button>
        </div>
        <div id="tweets">
            <ul>
# if(data.timeline && data.timeline.length) {
# var i, timeline = data.timeline, length = data.timeline.length;
# for(i = 0; i < length; i++ ) {
# var status = timeline[i];
# var domain = status.user.domain || status.user.id;
                <li>
                    <a href="http://t.sina.com.cn/{domain}" target="_blank"><img src="{status.user.profile_image_url}" /></a>
                    <em><a href="http://t.sina.com.cn/{domain}" target="_blank">{status.user.name}</a></em>
                    <span>{status.text} ({status.created_at})</span>
                    <cite>{status.source}</cite>
# if (status.thumbnail_pic) {
                    <br /><a href="{status.original_pic}" target="_blank" title="点击看大图"><img src="{status.thumbnail_pic}" /></a>
#}
                </li>
# }
# }
            </ul>
        </div>
    </body>
</html>
Something went wrong with that request. Please try again.