feat: Create initial web page with HTML, CSS, and JavaScript for dynamic greeting color.

This commit is contained in:
almazlar
2026-02-07 19:31:24 +03:00
parent 4ade568a7e
commit 4b280514c4
3 changed files with 59 additions and 0 deletions

6
script.js Normal file
View File

@@ -0,0 +1,6 @@
function changeColor() {
const title = document.getElementById('greeting');
const colors = ['#00ff88', '#ff0088', '#0088ff', '#ffff00'];
const randomColor = colors[Math.floor(Math.random() * colors.length)];
title.style.color = randomColor;
}