added a random hex color generator

This commit is contained in:
zyqunix 2024-12-22 16:23:37 +01:00
parent c83218d182
commit 50ff6ad167
4 changed files with 145 additions and 0 deletions

20
color/index.html Normal file
View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Random Color Generator</title>
<link rel="shortcut icon" href="https://rimgo.pussthecat.org/RFbdMMB.png" type="image/x-icon">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="offscreenalert">Copied to clipboard!</div>
<button id="colorButton">Get Random Color</button>
<p>Press the hexadecimal to copy the color!</p>
<div id="main" class="main">
<div id="fullColor">Press the button to get a color!</div>
</div>
<script src="index.js"></script>
</body>
</html>