From b30bb289a491db009020d608d81e134f1a0a04cb Mon Sep 17 00:00:00 2001 From: Neko Date: Mon, 11 Sep 2023 12:23:27 +0200 Subject: [PATCH] mixed up the chances --- assets/js/color.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/color.js b/assets/js/color.js index 3869695..baf4378 100644 --- a/assets/js/color.js +++ b/assets/js/color.js @@ -7,9 +7,9 @@ function colorRotate(){ if( Math.random() > 0.5){ if( Math.random() > 0.9){ - - document.getElementsByClassName('screen-content')[0].style.filter = "sepia(94%) hue-rotate("+Math.floor(Math.random()*360)+"deg) saturate(7) brightness(100%)" + setInterval(colorRotate, 50); } else { - setInterval(colorRotate, 50) + document.getElementsByClassName('screen-content')[0].style.filter = "sepia(94%) hue-rotate("+Math.floor(Math.random()*360)+"deg) saturate(7) brightness(100%)" + } }