removed dark mode from main

This commit is contained in:
css pro 2024-11-06 10:48:24 -08:00 committed by GitHub
parent a2a9647ee6
commit 0f849387fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,26 +1,6 @@
// main.js
$(document).ready(function() {
// Dark Mode Functionality
function updateDarkMode() {
var isChecked = $("#darkModeCheckbox").is(":checked");
var body = document.querySelector('body');
var paragraphs = document.querySelectorAll('p');
var headings = document.querySelectorAll('h1, h2, h3');
var footer = document.querySelector('.footer');
var buttons = document.querySelectorAll('button, .source-btn, .dsc-btn, .clr-btn');
var versionTexts = document.querySelectorAll('.version-text');
if (isChecked) {
body.classList.add('dark-mode');
} else {
body.classList.remove('dark-mode');
}
}
$("#darkModeCheckbox").on("change", updateDarkMode);
updateDarkMode();
// Clr data
function openClrModal() {
document.getElementById('clr-data-model').style.display = 'flex';