From c82713f42483eb3d6a0b2d5926cdcd3900526ddb Mon Sep 17 00:00:00 2001
From: php46 <phillipphan11@gmail.com>
Date: Thu, 23 Feb 2023 19:44:28 +0000
Subject: [PATCH] Update CI-ColorWebs/wwwroot/js/site.js

---
 CI-ColorWebs/wwwroot/js/site.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CI-ColorWebs/wwwroot/js/site.js b/CI-ColorWebs/wwwroot/js/site.js
index 9dff66e..8fc1adf 100644
--- a/CI-ColorWebs/wwwroot/js/site.js
+++ b/CI-ColorWebs/wwwroot/js/site.js
@@ -7,7 +7,7 @@ const context = canvas.getContext("2d");
 const cre = () => {
     var ranColor = [];
     for (var i = 0; i <= 5; i++){
-        const randomColor = Math.floor(Math.random()*16777215).toString(16);
+        const randomColor = "000000".replace(/0/g,function(){return (~~(Math.random()*16)).toString(16);});
         ranColor.push(randomColor)
     }
     color.innerHTML = "#" + ranColor[0];
-- 
GitLab