-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (52 loc) · 1.79 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Color Picker</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/x-icon" href="https://hoocs151.github.io/hoocsxyz/images/ava.png">
</head>
<body>
<div class="container">
<div class="color-picker-wrapper">
<label for="color-picker">
Color Picker:
</label>
<input type="color" id="color-picker" value="#000000" />
<input type="text" id="hex-input" value="#000000" />
</div>
<div class="wrapper">
<label for="red">
R
</label>
<input type="range" id="red" min="0" max="255" value="0" />
</div>
<div class="wrapper">
<label for="green">
G
</label>
<input type="range" id="green" min="0" max="255" value="0" />
</div>
<div class="wrapper">
<label for="blue">
B
</label>
<input type="range" id="blue" min="0" max="255" value="0" />
</div>
<div class="result">
<input type="text" readonly value="rgb(0,0,0)" />
<span class="hex-code">#000000</span>
<button id="copy-btn">
<i class="far fa-copy"></i>Copy Color Code
</button>
<button id="random-btn">
<i class="fas fa-random"></i>Random Color
</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>