From 14c8991b764e3dbc890e81d4b9c3c8e3063eb0d0 Mon Sep 17 00:00:00 2001 From: dan63047 Date: Thu, 12 Aug 2021 20:38:28 +0300 Subject: [PATCH] color change --- .vscode/launch.json | 14 -------------- script.js | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 8fdd378..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "firefox", - "request": "launch", - "name": "Launch Firefox against localhost", - "file": "${workspaceFolder}/index.html" - } - ] -} \ No newline at end of file diff --git a/script.js b/script.js index 85d6d78..78e285b 100644 --- a/script.js +++ b/script.js @@ -49,7 +49,7 @@ function changeBackgroundColor() { let local_t = t.getTime() - t.getTimezoneOffset()*60000 - 180*60000; let color_var = (local_t % 86400000 > 43200000) ? 1-(local_t % 21600000 / 21600000) : local_t % 21600000 / 21600000 let color_phase = local_t % 86400000 / 21600000 - let colors = [[38,41,52], [13,117,248]]; + let colors = [[112,38,112], [13,117,248]]; switch (Math.trunc(color_phase)) { case 0: case 2: