-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
140 lines (114 loc) · 4.15 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CSS Color Picker and HSL Modifier</title>
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
<div class="row">
<!-- HSL Color Modifier Section -->
<section class="hsl-modifier">
<h2>HSL Color Modifier</h2>
<div class="hsl-controls">
<div class="sliders">
<label for="hueRange">Hue:</label>
<input type="range" id="hueRange" min="0" max="360" value="180">
<span id="hueValue">180</span><br>
<label for="saturationRange">Saturation:</label>
<input type="range" id="saturationRange" min="0" max="100" value="50">
<span id="saturationValue">50</span><br>
<label for="lightnessRange">Lightness:</label>
<input type="range" id="lightnessRange" min="0" max="100" value="50">
<span id="lightnessValue">50</span><br>
<label for="alphaRange">Transparency:</label>
<input type="range" id="alphaRange" min="0" max="1" step="0.01" value="1">
<span id="alphaValue">1</span><br>
<button id="exportHSLModifierBtn">Copy hsla(180, 50%, 50%, 1) to clipboard</button><br/>
<span id="copyMessageHSL" class="copy-message"></span>
</div>
<div id="modifierColorDisplay"></div>
</div>
<section class="entities-preview">
<h2>Preview</h2>
<div class="entities-grid">
<div class="entity">
<i class="fas fa-fan fan" id="icon_1"></i>
<div class="label">AC Office</div>
<div class="status" id="acOfficeCoolStatus">On</div>
</div>
<div class="entity">
<i class="fa-solid fa-bell" id="icon_2"></i>
<div class="label">Bell</div>
</div>
<div class="entity">
<i class="fa-solid fa-house-user" id="icon_3"></i>
<div class="label">User Home</div>
</div>
<div class="entity">
<i class="fas fa-fan fan"id="icon_4"></i>
<div class="label">AC Office</div>
<div class="status" id="acLivingHeatStatus">Off</div>
</div>
<div class="entity">
<i class="fa-solid fa-user" id="icon_5"></i>
<div class="label">User Logged</div>
</div>
<div class="entity">
<i class="fa-regular fa-user" id="icon_6"></i>
<div class="label">User Logged</div>
</div>
</div>
</section>
</section>
<!-- Extended Color Keywords Picker -->
<section class="color-keywords">
<h2>Extended Color Picker</h2>
<!--
<div id="keywordColorDisplay" style="width: 250px; height: 250px; border: 1px solid #000; background-color: aliceblue;"></div>
<select id="colorKeywordPicker"></select>
<button id="exportKeywordBtn">Copy aliceblue to clipboard</button>
<span id="copyMessageKeyword" class="copy-message"></span>
-->
<div id="colorTableContainer"></div>
<!-- Notification for clipboard copy -->
<span id="copyNotification" class="copy-message"></span>
<section class="entities-preview">
<h2>Preview 1</h2>
<div class="entities-grid">
<div class="entity">
<i class="fas fa-fan fan" id="picon_1"></i>
<div class="label">AC Office</div>
<div class="status" id="acOfficeCoolStatus1">On</div>
</div>
<div class="entity">
<i class="fa-solid fa-bell" id="picon_2"></i>
<div class="label">Bell</div>
</div>
<div class="entity">
<i class="fa-solid fa-house-user" id="picon_3"></i>
<div class="label">User Home</div>
</div>
<div class="entity">
<i class="fas fa-fan fan" id="picon_4"></i>
<div class="label">AC Office</div>
<div class="status" id="acLivingHeatStatus">Off</div>
</div>
<div class="entity">
<i class="fa-solid fa-user" id="picon_5"></i>
<div class="label">User Logged</div>
</div>
<div class="entity">
<i class="fa-regular fa-user" id="picon_6"></i>
<div class="label">User Logged</div>
</div>
</div>
</section>
</section>
</div>
<span id="copyNotification" class="copy-message"></span>
<script src="scripts.js"></script>
</body>
</html>