From b638dea9e6cf7513035ae8016207c654a99f7dae Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 2 Dec 2024 13:59:13 +0530 Subject: [PATCH 1/2] Toggle Bg Color --- scripts.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts.js b/scripts.js index 5ec3a13..7352012 100644 --- a/scripts.js +++ b/scripts.js @@ -1,3 +1,10 @@ +let isLightBlue = false; // Initial background color function changeBg() { - document.body.style.backgroundColor = "lightblue"; -} + // Check the current background color and toggle it + if (isLightBlue) { + document.body.style.backgroundColor = ""; // Default color + } else { + document.body.style.backgroundColor = "lightblue"; + } + isLightBlue = !isLightBlue; // Toggle the boolean flag +} \ No newline at end of file From 83efbc8fcbdbcea7ee87847dd04625a600c90f5e Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 2 Dec 2024 14:14:15 +0530 Subject: [PATCH 2/2] Links Added --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 250f671..f8975a4 100644 --- a/index.html +++ b/index.html @@ -14,10 +14,10 @@

Git - Software Configuration Managment (SCM)

Git Topics