-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
50 lines (41 loc) · 1.83 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
<!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>
<!-- External CSS -->
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="../main.css">
</head>
<body>
<div class="container">
<div class="colorDisplay">
<!-- Color Display Box -->
</div>
<!-- Buttons for Color -->
<form>
<h1 id="title">Color Picker</h1>
<label for="red">Red</label> <br>
<input type="range" name="red" min="0" max="255" title="Red Color" class="rangeBtn"> <br>
<label for="green">Green</label> <br>
<input type="range" name="green" min="0" max="255" title="Green Color" class="rangeBtn"> <br>
<label for="blue">Blue</label> <br>
<input type="range" name="blue" min="0" max="255" title="Blue Color" class="rangeBtn">
</form>
<!-- Copy Button -->
<button type="button" id="copyBtn">
<span id="colorCode"></span>
<span id="copyIcon">
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 384 512">
<path
d="M280 64h40c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128C0 92.7 28.7 64 64 64h40 9.6C121 27.5 153.3 0 192 0s71 27.5 78.4 64H280zM64 112c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320c8.8 0 16-7.2 16-16V128c0-8.8-7.2-16-16-16H304v24c0 13.3-10.7 24-24 24H192 104c-13.3 0-24-10.7-24-24V112H64zm128-8a24 24 0 1 0 0-48 24 24 0 1 0 0 48z" />
</svg>
</span>
</button>
</div>
<!-- JavaScript -->
<script src="./script.js" defer></script>
</body>
</html>