Merge lp:~martijn/udstream/gdata into lp:udstream
Proposed by
Martijn vdS
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~martijn/udstream/gdata |
Merge into: | lp:udstream |
To merge this branch: | bzr merge lp:~martijn/udstream/gdata |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martijn vdS | Approve | ||
Paul Hummer (community) | Needs Fixing | ||
Review via email: mp+2548@code.launchpad.net |
To post a comment you must log in.
Here's the diff for this branch:
=== modified file 'lifestream.html' ajax.googleapis .com/ajax/ libs/jquery/ 1.2.6/jquery. min.js"></script> format = function (mask,
--- lifestream.html 2008-12-12 00:16:45 +0000
+++ lifestream.html 2008-12-27 19:16:42 +0000
@@ -14,12 +14,16 @@ td.time, td.source {
color: #aaa;
background: white;
}
-tr.flickr td.data { color: white; background: #0c0; }
-tr.twitter td.data { color: white; background: #933; }
-tr.identica td.data { color: white; background: #339; }
-tr.flickr:hover td { color: white; background: #0d0; }
-tr.twitter:hover td { color: white; background: #a33; }
+tr.flickr td.data { color: white; background: #0c0; }
+tr.twitter td.data { color: white; background: #933; }
+tr.identica td.data { color: white; background: #339; }
+tr.picasa td.data { color: white; background: #8c8; }
+tr.youtube td.data { color: white; background: #c00; }
+tr.flickr:hover td { color: white; background: #0d0; }
+tr.twitter:hover td { color: white; background: #a33; }
tr.identica:hover td { color: white; background: #33a; }
+tr.picasa:hover td { color: white; background: #8d8; }
+tr.youtube:hover td { color: white; background: #d00; }
</style>
<script src="http://
<script>
@@ -136,13 +140,13 @@ Date.prototype.
return dateFormat(this, mask, utc);
};
- search. twitter. com/search. json?callback= ?&q=%23$ TAG", "twittersearch"], api.flickr. com/services/ feeds/photos_ public. gne?tags= $TAG&lang= en-us&format= json&jsoncallba ck=?", "flickr"], pipes.yahoo. com/pipes/ pipe.run? _id=qGysIErH3RG VW2OJBRNMsA& _render= json&tag= $TAG&_callback=?", "identicasearch"] pipes.yahoo. com/pipes/ pipe.run? _id=qGysIErH3RG VW2OJBRNMsA& _render= json&tag= $TAG&_callback=?", "identicasearch"], gdata.youtube. com/feeds/ videos? alt=json- in-script& vq=$TAG& callback=?", "gdata"], picasaweb. google. com/data/ feed/api/ all?alt= json-in- script& q=$TAG& callback=?", "gdata"], nodeName. toLowerCase( ) == "table") { 11T02:30: 43-08:00 format createElement( "tr"); tr).click( function( ){ location.href = link; }); className = "time"; appendChild( timetd) ; createElement( 'img'); function( ){ style.position = "absolute"; body.appendChil d(this. img); body.removeChil d(this. img); appendChild( td); createElement( "td"); appendChild( document. createTextNode( src)); appendChild( tr);
-
ls = {
tag_api: [
["http://
["http://
- ["http://
+ ["http://
+ ["http://
+ ["http://
],
init: function(tag, element) {
if (element && element.
@@ -158,7 +162,7 @@ ls = {
}
}
},
- addItem: function(td, time, src, link) {
+ addItem: function(td, time, src, link, thumbnail) {
// time should be in ISO 2008-12-
var tr = document.
$(
@@ -168,6 +172,19 @@ ls = {
timetd.
tr.
td.className = "data";
+ if(thumbnail) {
+ td.img = document.
+ td.img.src = thumbnail ;
+
+ $(td).hover(
+ this.img.
+ this.img.style.top = (this.offsetTop + this.offsetHeight) + "px";
+ this.img.style.left = this.offsetLeft + "px";
+ document.
+ }, function(){
+ document.
+ });
+ }
tr.
var srctd = document.
srctd.
@@ -184,6 +201,7 @@ ls = {
});
if (!found) ls.element.
},
+
tw...