-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (28 loc) · 1.35 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="color.css">
<title>Copy Random Color</title>
</head>
<body>
<h1 class="head">Copy <span> Random </span> Color</h1>
<div class="box" >
<div class="color" id="colorBox"></div>
<div class="text-line"><p onclick="copyFunc(), myTimeAlert(),setTimeout(myTimeAlertStop, 1000)" id="colorCode" >#1ABAAA </p><i onclick="copyFunc(), myTimeAlert(),setTimeout(myTimeAlertStop, 1000)" class="fa-regular fa-clone"></i></div>
<div class="prompt">
<p>Click above text to copy.</p>
</div>
</div>
<div id="notice" class="notification">
<p id="text"></p> <p>copied to clipboard</p>
</div>
<div class="colorButton" onclick="getRandomColor(), setRandomColor()">
<div class="backButton"></div>
<p class="textButton">Change Color <i class="fa-solid fa-shuffle"></i></p>
</div>
<script src="color.js"></script>
</body>
</html>