-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (72 loc) · 2.96 KB
/
index.html
File metadata and controls
75 lines (72 loc) · 2.96 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Color Picker System</title>
<link rel="stylesheet" href="styles/custom/style.css">
<style></style>
<link rel="stylesheet" href="styles/packages/bootstrap/css/bootstrap.css">
</head>
<body>
<!-- Header -->
<h2>RGB & RGBA</h2>
<ul class="menu">
<li ><a href="pages/hsl.html">hsl</a></li>
<li ><a href="pages/hex.html">hex</a></li>
</ul>
<hr>
<!-- Selection -->
<div class="container">
<div class="row justify-">
<div class="col">
<label for="rgb-selection">RGB</label>
<input onclick="rgb.prepareRgb()" type="radio" name="rgb-or-rgba" id="rgb-selection">
</div>
<div class="col">
<label for="rgba-selection">RGBA</label>
<input checked onclick="rgb.prepareRgba()" type="radio" name="rgb-or-rgba" id="rgba-selection">
</div>
</div>
<div class="row">
<hr>
<!-- Red -->
<div class="parameter-area col-10 col-sm-6 col-md-4 col-lg-3">
<label class="form-label" for="rgb-red-input-range">Red ( r )</label>
<input class="form-range" oninput="rgb.redSet()" type="range" name="rgb-red-input-range"
id="rgb-red-input-range" min="0" max="255" value="100">
<p class="bg-primary" id="rgb-red-output-number">100</p>
</div>
<!-- Green -->
<div class="parameter-area parameter-area col-10 col-sm-6 col-md-4 col-lg-3">
<label class="form-label" for="rgb-green-input-range">Green ( g )</label>
<input class="form-range" oninput="rgb.greenSet()" type="range" name="rgb-green-input-range"
id="rgb-green-input-range" min="0" max="255" value="150">
<p class="bg-primary" id="rgb-green-output-number">150</p>
</div>
<!-- Blue -->
<div class="parameter-area col-10 col-sm-6 col-md-4 col-lg-3">
<label class="form-label" for="rgb-blue-input-range">Blue ( b )</label>
<input class="form-range" type="range" oninput="rgb.blueSet()" name="rgb-blue-input-range"
id="rgb-blue-input-range" min="0" max="255" value="200">
<p class="bg-primary" id="rgb-blue-output-number">200</p>
</div>
<!-- Alpha -->
<div id="rgb-alpha-area" class="parameter-area col-10 col-sm-6 col-md-4 col-lg-3">
<label for="rgb-alpha-input-range" class="form-label">Alpha or Opacity</label>
<input class="form-range" oninput="rgb.alphaSet()" type="range" value="100" min="0" max="100"
name="rgb-input-input-range" id="rgb-alpha-input-range">
<p class="bg-primary" id="rgb-alpha-output-number">1.0</p>
</div>
</div>
<!-- Color Output -->
<h3>Output</h3>
<div class="background-area">
<div class="area" id="rgb-output-color"></div>
</div>
</div>
<!-- Scripts -->
<script src="scripts/packages/bootstrap/js/bootstrap.bundle.js"></script>
<script src="scripts/custom/main.js"></script>
</body>
</html>