From c61038ae971d9c2b8deedd10f9e491ad5675923e Mon Sep 17 00:00:00 2001 From: Shivam Kaushik <105926192+ShivamKaushik316@users.noreply.github.com> Date: Sun, 5 Mar 2023 16:12:35 +0530 Subject: [PATCH 1/6] For dark mode --- darkmode.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 darkmode.js diff --git a/darkmode.js b/darkmode.js new file mode 100644 index 0000000..462fedb --- /dev/null +++ b/darkmode.js @@ -0,0 +1,17 @@ +const options={ + + bottom: '64px', // default: '32px' + right: '32px', // default: '32px' + left: 'unset', // default: 'unset' + time: '0.7s', // default: '0.3s' + mixColor: '#fff', // default: '#fff' + backgroundColor: '#fff', // default: '#fff' + buttonColorDark: '#100f2c', // default: '#100f2c' + buttonColorLight: '#fff', // default: '#fff' + saveInCookies: true, // default: true, + label: '🌓', // default: '' + autoMatchOsTheme: true // default: true + +} +const darkmode = new Darkmode(options); +darkmode.showWidget(); \ No newline at end of file From 7772e6d3753b991f99752cfe91396f38301e706f Mon Sep 17 00:00:00 2001 From: Shivam Kaushik <105926192+ShivamKaushik316@users.noreply.github.com> Date: Sun, 5 Mar 2023 16:13:10 +0530 Subject: [PATCH 2/6] Delete darkmode.js --- darkmode.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 darkmode.js diff --git a/darkmode.js b/darkmode.js deleted file mode 100644 index 462fedb..0000000 --- a/darkmode.js +++ /dev/null @@ -1,17 +0,0 @@ -const options={ - - bottom: '64px', // default: '32px' - right: '32px', // default: '32px' - left: 'unset', // default: 'unset' - time: '0.7s', // default: '0.3s' - mixColor: '#fff', // default: '#fff' - backgroundColor: '#fff', // default: '#fff' - buttonColorDark: '#100f2c', // default: '#100f2c' - buttonColorLight: '#fff', // default: '#fff' - saveInCookies: true, // default: true, - label: '🌓', // default: '' - autoMatchOsTheme: true // default: true - -} -const darkmode = new Darkmode(options); -darkmode.showWidget(); \ No newline at end of file From 04a0007ac007311b9cdb4791a2967f96135d17e6 Mon Sep 17 00:00:00 2001 From: Shivam Kaushik <105926192+ShivamKaushik316@users.noreply.github.com> Date: Sun, 5 Mar 2023 16:14:11 +0530 Subject: [PATCH 3/6] Update index.html --- index.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/index.html b/index.html index 70eec90..fe290cb 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@ + Github + + + + +