Update darkmode.js
This commit is contained in:
parent
db21f59bee
commit
3df8e70e06
@ -3,10 +3,8 @@ $(document).ready(function() {
|
|||||||
var isChecked = $("#darkModeCheckbox").is(":checked");
|
var isChecked = $("#darkModeCheckbox").is(":checked");
|
||||||
if (isChecked) {
|
if (isChecked) {
|
||||||
const body = document.querySelector('body');
|
const body = document.querySelector('body');
|
||||||
//body.style.backgroundColor = '#141414';
|
body.style.backgroundColor = '#141414';
|
||||||
//body.style.color = '#f1f1f1';
|
body.style.color = '#f1f1f1';
|
||||||
body.style = 'background: linear-gradient(39deg, rgba(0,0,0,1) 0%, rgba(128,3,251,1) 20%, rgba(107,6,255,1) 40%, rgba(88,31,255,1) 60%, rgba(43,0,255,1) 80%, rgba(0,0,0,1) 100%);';
|
|
||||||
// linear-gradient(39deg, rgba(0,0,0,1) 0%, rgba(128,3,251,1) 20%, rgba(107,6,255,1) 40%, rgba(88,31,255,1) 60%, rgba(43,0,255,1) 80%, rgba(0,0,0,1) 100%);
|
|
||||||
|
|
||||||
const paragraphs = document.querySelectorAll('p');
|
const paragraphs = document.querySelectorAll('p');
|
||||||
paragraphs.forEach(function(p) {
|
paragraphs.forEach(function(p) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user