-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
48 lines (41 loc) · 1.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Color Code Converter</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<div class="square square1"></div>
<div class="square square2"></div>
<div class="square square3"></div>
<div class="square square4"></div>
<div class="square square5"></div>
<div class="color-picker">
<!-- div to display the color -->
<div id="colorCheck">Check The Color Here</div>
<div class="color-info">
<!-- Hex Group -->
<div class="color-group">
<p>HEX</p>
<input id="hexValue" type="text">
<abbr id="copyHex" title="Copy To Clipboard"><i class="fa-regular fa-copy"></i></abbr>
</div>
<!-- RGB Group -->
<div class="color-group">
<p>RGB</p>
<input type="text" id="rgbValue">
<abbr id="copyRGB" title="Copy To Clipboard"><i class="fa-regular fa-copy"></i></abbr>
</div>
</div>
<!-- Buttons -->
<button id="btn">Convert</button>
<button id="bg-toggler">View Color In Background</button>
</div>
<script src="script.js"></script>
</body>
</html>