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 => {