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,12 +67,14 @@ socket.on("chat,"+chan.toLowerCase(), function(data)
|
|||||||
{
|
{
|
||||||
if($("#chat-bar").position()["left"] != 0)
|
if($("#chat-bar").position()["left"] != 0)
|
||||||
{
|
{
|
||||||
//$("#chat-btn").css("color", "grey");
|
if(data.indexOf(":") >= 0){
|
||||||
if(!blink_interval_exists)
|
//$("#chat-btn").css("color", "grey");
|
||||||
{
|
if(!blink_interval_exists)
|
||||||
$("#favicon").attr("href", "static/images/highlogo.png");
|
{
|
||||||
blink_interval_exists = true;
|
$("#favicon").attr("href", "static/images/highlogo.png");
|
||||||
blink_interval = setInterval(chat_blink, 2000);
|
blink_interval_exists = true;
|
||||||
|
blink_interval = setInterval(chat_blink, 2000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var color = intToARGB(hashCode(data.substring(0,data.indexOf(": ")))).substring(0,6);
|
var color = intToARGB(hashCode(data.substring(0,data.indexOf(": ")))).substring(0,6);
|
||||||
|
|||||||
Reference in New Issue
Block a user