mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Dont flash chat icon on joins and skips
This commit is contained in:
@@ -67,6 +67,7 @@ socket.on("chat,"+chan.toLowerCase(), function(data)
|
||||
{
|
||||
if($("#chat-bar").position()["left"] != 0)
|
||||
{
|
||||
if(data.indexOf(":") >= 0){
|
||||
//$("#chat-btn").css("color", "grey");
|
||||
if(!blink_interval_exists)
|
||||
{
|
||||
@@ -75,6 +76,7 @@ socket.on("chat,"+chan.toLowerCase(), function(data)
|
||||
blink_interval = setInterval(chat_blink, 2000);
|
||||
}
|
||||
}
|
||||
}
|
||||
var color = intToARGB(hashCode(data.substring(0,data.indexOf(": ")))).substring(0,6);
|
||||
$("#chatchannel").append("<li><span style='color:"+color+";'>"+data.substring(0,data.indexOf(": "))+"</span></li>");
|
||||
var in_text = document.createTextNode(data.substring(data.indexOf(": ")));
|
||||
|
||||
Reference in New Issue
Block a user