From 2101b7788b0608e8a28281dd64d33f4c36643838 Mon Sep 17 00:00:00 2001 From: Daniel Tam Date: Sat, 16 Jul 2022 23:31:23 -0500 Subject: [PATCH] set shuffle to change color upon hovering it --- index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.html b/index.html index ee89efc..8334dca 100644 --- a/index.html +++ b/index.html @@ -221,9 +221,15 @@ function toggleShuffleColor() { if (g_shuffle) { $('#btn-shuffle').css('color', '#FF9148'); + $('#btn-shuffle').hover(function(e) { + $(this).css("color",e.type === "mouseenter"?"#4e91ff":"#FF9148") + }); } else { $('#btn-shuffle').css('color', '#808080'); + $('#btn-shuffle').hover(function(e) { + $(this).css("color",e.type === "mouseenter"?"#4e91ff":"#808080") + }); } }