From c972d65f1eabbd6599a40eaff9d7b8cfd22ecd4e Mon Sep 17 00:00:00 2001 From: Chaphasilor Date: Sat, 11 Apr 2020 15:05:47 +0200 Subject: [PATCH] ditch jQuery's fadeIn and fadeOut methods --- public/js/chat.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/public/js/chat.js b/public/js/chat.js index 79d98aa..e50d814 100644 --- a/public/js/chat.js +++ b/public/js/chat.js @@ -874,15 +874,19 @@ function startUp() { var timedelay = 1; function delayCheck() { if (timedelay === 5) { - $(".multi-button").fadeOut(); - $("#header").fadeOut(); + // $(".multi-button").fadeOut(); + // $("#header").fadeOut(); + $(".multi-button").style = "display: none;"; + $("#header").style = "display: none;"; timedelay = 1; } timedelay = timedelay + 1; } $(document).mousemove(function () { - $(".multi-button").fadeIn(); - $("#header").fadeIn(); + // $(".multi-button").fadeIn(); + // $("#header").fadeIn(); + $(".multi-button").style = ""; + $("#header").style = ""; timedelay = 1; clearInterval(_delay); _delay = setInterval(delayCheck, 500);