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

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