mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed something cool with the chat
This commit is contained in:
@@ -16,4 +16,4 @@
|
|||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<link type="text/css" rel="stylesheet" href="static/css/materialize.min.css" media="screen,projection"/>
|
<link type="text/css" rel="stylesheet" href="static/css/materialize.min.css" media="screen,projection"/>
|
||||||
<link rel="stylesheet" type="text/css" href="static/css/style.css" title="Default" />
|
<link rel="stylesheet" type="text/css" href="static/css/style.css" title="Default" />
|
||||||
<link rel="icon" type="image/png" href="static/images/favicon.png"/>
|
<link rel="icon" id="favicon" type="image/png" href="static/images/favicon.png"/>
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ document.getElementById("chat-btn").addEventListener("click", function(){
|
|||||||
$("#chat-btn i").css("opacity", 1);
|
$("#chat-btn i").css("opacity", 1);
|
||||||
clearInterval(blink_interval);
|
clearInterval(blink_interval);
|
||||||
blink_interval_exists = false;
|
blink_interval_exists = false;
|
||||||
|
$("#favicon").attr("href", "static/images/favicon.png");
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on("chat,"+chan.toLowerCase(), function(data)
|
socket.on("chat,"+chan.toLowerCase(), function(data)
|
||||||
@@ -26,6 +27,7 @@ socket.on("chat,"+chan.toLowerCase(), function(data)
|
|||||||
//$("#chat-btn").css("color", "grey");
|
//$("#chat-btn").css("color", "grey");
|
||||||
if(!blink_interval_exists)
|
if(!blink_interval_exists)
|
||||||
{
|
{
|
||||||
|
$("#favicon").attr("href", "static/images/highlogo.png");
|
||||||
blink_interval_exists = true;
|
blink_interval_exists = true;
|
||||||
blink_interval = setInterval(chat_blink, 2000);
|
blink_interval = setInterval(chat_blink, 2000);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user