update css

This commit is contained in:
Anthony Minessale 2014-07-24 21:39:03 +05:00
parent fbf4ccdf02
commit cd5e6d331a
2 changed files with 49 additions and 44 deletions

View File

@ -29,9 +29,6 @@
cursor: pointer; cursor: pointer;
} }
#chatwin #chatwin
{ {
background-color: #eeeeee; background-color: #eeeeee;
@ -43,6 +40,14 @@
text-align: left; text-align: left;
border-style:inset; border-style:inset;
font-size: 10pt; font-size: 10pt;
color: #3333ff;
}
.chatuid
{
font-size: 7pt;
font-weight: bold;
color: #ff3333;
} }
.l1 .l1

View File

@ -111,7 +111,7 @@ var callbacks = {
var body = data.body.replace(/(http[s]{0,1}:\/\/\S+)/g, "<a target='_blank' href='$1'>$1<\/a>"); var body = data.body.replace(/(http[s]{0,1}:\/\/\S+)/g, "<a target='_blank' href='$1'>$1<\/a>");
body = body.replace(/(?:\r\n|\r|\n)/g, '<br />'); body = body.replace(/(?:\r\n|\r|\n)/g, '<br />');
$("#chatwin").append("<b>" + data.from + "</b>:<br>" + "" + body + "" + "<br>"); $("#chatwin").append("<span class=chatuid>" + data.from + ":</span><br>" + body);
$('#chatwin').animate({"scrollTop": $('#chatwin')[0].scrollHeight}, "fast"); $('#chatwin').animate({"scrollTop": $('#chatwin')[0].scrollHeight}, "fast");
break; break;