From db2b25555cdf83f4fe0f1332a3d3c7e80c7c6e92 Mon Sep 17 00:00:00 2001 From: FURK4NGG <105324908+FURK4NGG@users.noreply.github.com> Date: Mon, 24 Feb 2025 19:47:53 +0300 Subject: [PATCH] Update 1.js --- JAVASCRIPT/1.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/JAVASCRIPT/1.js b/JAVASCRIPT/1.js index f227f16..3b53519 100644 --- a/JAVASCRIPT/1.js +++ b/JAVASCRIPT/1.js @@ -1,3 +1,13 @@ +/*CHANGE THEME*/ +let metaTheme = document.getElementById("themeMeta"); + if (metaTheme.content === "#ffffff") { + metaTheme.content = "#100f2c"; // Dark mode theme rengi + } else { + metaTheme.content = "#ffffff"; // Light mode theme rengi + } + }); + + /*SERVICES VISIBILITY*/ const boxes = document.querySelectorAll('.services_id'); @@ -385,9 +395,6 @@ function animateCircles() { animateCircles(); - - - /*DISABLE COPY-PASTE*/ const disabledKeys = ["c", "C", "x", "J", "u", "I"]; // keys that will be disabled const showAlert = e => {