This repository was archived by the owner on Mar 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (46 loc) · 1.79 KB
/
index.html
File metadata and controls
46 lines (46 loc) · 1.79 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Color picker</title>
<!-- http://proger.i-forge.net/The_smallest_transparent_pixel/ -->
<link rel="icon" href="data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA=">
<link rel="stylesheet" href="css/style.css">
<script type="module" src="js/main.js" defer></script>
</head>
<body>
<div id="main-container">
<div id="color-container">
<h1>Color picker</h1>
<div id="color-picker">
<div class="rgb-picker">
<label for="red">Red</label>
<input type="number" id="red" class="color-input">
</div>
<div class="rgb-picker">
<label for="blue">Blue</label>
<input type="number" id="green" class="color-input">
</div>
<div class="rgb-picker">
<label for="green">Green</label>
<input type="number" id="blue" class="color-input">
</div>
</div>
<div id="color-converter">
<p>HEX value: #<span id="hex-value"></span></p>
<p>Binary values:</p>
<ul>
<li>Red: <span id="binary-red-value"></span></li>
<li>Green: <span id="binary-green-value"></span></li>
<li>Blue: <span id="binary-blue-value"></span></li>
</ul>
</div>
<div id="transparency-container">
<label for="transparency-slider">Transparency</label>
<input type="range" id="transparency-slider">
<output id="transparency-output" for="transparency-slider"></output>
</div>
</div>
</div>
</body>
</html>