5
background: url(blue_stripe.png);
6
word-break: break-word;
13
a:hover, .time a:hover {
14
text-decoration: underline;
17
p { line-height: 125% }
19
td { vertical-align: top; }
25
text-shadow: 1px 1px black;
26
font-family: Lucida Grande;
27
-webkit-border-radius: 7px;
32
-webkit-border-radius: 7px;
33
background: -webkit-gradient(linear, left top, left 220%, from(rgba(143, 6, 32, 0.8)), to(black))
47
text-decoration: none;
55
background-image: url('');
56
background-repeat: no-repeat;
57
-webkit-border-radius: 7px;
58
-webkit-box-reflect:below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.6, transparent), to(rgba(0,0,0, 0.6)));
62
text-decoration: none;
81
-webkit-border-radius: 7px;
87
background: -webkit-gradient(linear, left top, left 220%, from(rgba(254, 240, 152, 0.9)), to(black));
96
border: 3px solid rgba(110, 240, 255, 0.8);
101
border: 3px solid rgba(143, 6, 32, 0.8);
106
border: 3px solid rgba(255, 44, 188, 0.8);
120
<script src="jquery.js"></script>
122
// XXX: this is a twitter-specific hack currently...needs updating for other protocols
123
function addUserHeader(data) {
124
html = '<div id="'+ data.gId +'" class="message '+ data.username + data.protocol + ' ' + data.aId + data.bgcolor +'" title="'+ data.sender_nick +'">' +
126
<p class="content"> \
127
<span class="title">'+ data.sender +'</span><br /> \
128
<span class="text">'+ data.sender_followers_count +' followers</span><br /> \
129
<span class="text">'+ data.sender_location +'</span><br /> \
130
<span class="text"><a href="'+ data.external_profile_url +'">'+ data.external_profile_url +'</a></span> \
134
$(".header").html(html);
137
function addMessages(messages, msg) {
139
$.each(messages, function() {addMessage(this, msg)});
142
function clearMessages() {
143
$(".messages").html("");
146
function addDiggCount(message, data) {
147
message.html('<p><span class="diggcount">' + data.diggs + '</span><br /><small>diggs</small></p>');
148
message.css('display', 'block');
151
function setAccountConfig(data) {
152
$.each(data, function() {
153
for (var conf in this) {
154
if (conf.search("color") > 0)
155
setMessageColor(this.id, conf, this[conf].red, this[conf].green, this[conf].blue, 0.6);
160
function setGtkConfig(data) {
164
function addMessage(data, msg) {
165
html = '<div id="'+ data.gId +'" class="message '+ data.username + data.protocol + ' ' + data.aId + data.bgcolor +'">' +
167
(data.image ? '<td class="imagecolumn"> \
168
<a href="'+ data.profile_url +'"> \
169
<div class="imgbox" title="'+ data.sender_nick +'" style="background-image: url('+ data.image +');"></div> \
172
<div class="diggbox"></div> \
173
</td>' : '') + '<td> \
174
<p class="content"> \
175
<span class="title">'+ (data.title == undefined ? data.sender : data.title) +'</span> \
176
<span class="time"> (<a href="'+ 'gwibber:read/' + data.message_index +'">'+ data.time_string +'</a>' +
177
(data.reply_nick ? ' <a href="'+ data.reply_url +'">'+ msg.reply +' '+ data.reply_nick +'</a>' : '') +
179
<span class="text">'+ data.html_string +'</span> \
183
<div class="toggledupe"><img src="add.png" /></div> \
184
<div class="dupes"></div> \
185
<div class="replybutton">' +
186
(data.can_thread ? '<a href="gwibber:thread/' + data.message_index + '"><img src="thread.png" /></a>' : '') +
187
(data.can_reply ? '<a href="gwibber:reply/'+ data.message_index +'"><img src="reply.png" /></a>' : '') +
191
if (data.is_duplicate) {
192
$("#" + data.gId + " .dupes:first").append(html);
193
$("#" + data.gId + " .toggledupe:first").show(0).unbind().toggle(
194
function() {$(this).parent().find(".dupes").show(100)},
195
function() {$(this).parent().find(".dupes").hide(100)});
196
} else $(".messages").append(html);
198
if (data.protocol == "digg")
199
addDiggCount($(".diggbox:last"), data);
202
$(".message:last").addClass("unread");
205
$(".message:last").addClass("reply");
208
$(".message:last").addClass("private");
210
$(".message:last").hover(
211
function() {$(this).find(".replybutton").fadeIn(100)},
212
function() {$(this).find(".replybutton").hide(0)});
215
function setMessageColor(aId, colorName, r, g, b, a) {
216
$('.'+aId+colorName).css('background', '-webkit-gradient(linear, left top, left 220%, from(rgba('+r+','+g+','+b+','+a+')), to(black))')
223
<div class="messages">