Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
94 lines (87 loc) · 4.45 KB
/
Copy pathindex.html
File metadata and controls
94 lines (87 loc) · 4.45 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
<head>
<title>Chromania</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="v1.3/chromania.css">
<script src="library/colornames.compact.js" defer></script>
<script src="library/cuspLUT.js" defer></script>
<script src="library/Cc1.2.js" defer></script>
<script src="v1.3/chromania.js" defer></script>
</head>
<body>
<div id="output-panel">
<label id="search-cont">
<input id="color-name" value="Color name">
<svg id="search-icon" height="24px" width="24px"><use href="#svg-search"/></svg>
</label>
<div id="search-result"></div>
<div class="box given">
<div class="box match">Delta E</div>
</div>
<div id="hex-container">
<div>
<input class="hex given" type="text" value="input hex">
<svg class="copy-icon given" height="24px" width="24px"><use href="#svg-copy"/></svg>
</div>
<svg id="settings-icon" height="24px" width="24px"><use href="#svg-settings"/></svg>
<div>
<div class="hex match">match hex</div>
<svg class="copy-icon match" height="24px" width="24px"><use href="#svg-copy"/></svg>
</div>
</div>
</div>
<form id="settings" class="collapse" autocomplete="off">
<label class="settings-item">
Compact view<br>
Hide capsule buttons/inputs<br>
<input class="settings-checkbox n0" type="checkbox">
</label>
<label class="settings-item">
Live sliders<br>
Show color gradient on sliders
<input class="settings-checkbox n1" type="checkbox">
</label>
<label class="settings-item">
Geek mode<br>
Show gamut clipping info with sliders<br>
Middle = Out of gamut colors are not shown</br>
Bottom = Shown, gamut mapping by chroma reduction</br>
Top = Transparency indicates degree of clipping
<input class="settings-checkbox n2" type="checkbox" disabled>
</label>
<label class="settings-item">
Let there be light<br>
Light theme
<input class="settings-checkbox n3" type="checkbox">
</label>
</form>
<div id="palette">
<div id="addbtn">
<svg width="24px" height="24px"><use href="#svg-add"/></svg>
</div>
</div>
<div id="input-panel">
<!-- To be generated by script -->
</div>
<div id="ddetect" style="background: #fff"></div>
<svg id="svg-icons" width="0" height="0">
<symbol id="svg-search" viewBox="0 0 24 24">
<path d="M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
</symbol>
<symbol id="svg-copy" viewBox="0 0 24 24">
<path d="M15,20H5V7c0-0.55-0.45-1-1-1h0C3.45,6,3,6.45,3,7v13c0,1.1,0.9,2,2,2h10c0.55,0,1-0.45,1-1v0C16,20.45,15.55,20,15,20z M20,16V4c0-1.1-0.9-2-2-2H9C7.9,2,7,2.9,7,4v12c0,1.1,0.9,2,2,2h9C19.1,18,20,17.1,20,16z M18,16H9V4h9V16z"/>
</symbol>
<symbol id="svg-settings" viewBox="0 0 24 24">
<path d="M19.5,12c0-0.23-0.01-0.45-0.03-0.68l1.86-1.41c0.4-0.3,0.51-0.86,0.26-1.3l-1.87-3.23c-0.25-0.44-0.79-0.62-1.25-0.42 l-2.15,0.91c-0.37-0.26-0.76-0.49-1.17-0.68l-0.29-2.31C14.8,2.38,14.37,2,13.87,2h-3.73C9.63,2,9.2,2.38,9.14,2.88L8.85,5.19 c-0.41,0.19-0.8,0.42-1.17,0.68L5.53,4.96c-0.46-0.2-1-0.02-1.25,0.42L2.41,8.62c-0.25,0.44-0.14,0.99,0.26,1.3l1.86,1.41 C4.51,11.55,4.5,11.77,4.5,12s0.01,0.45,0.03,0.68l-1.86,1.41c-0.4,0.3-0.51,0.86-0.26,1.3l1.87,3.23c0.25,0.44,0.79,0.62,1.25,0.42 l2.15-0.91c0.37,0.26,0.76,0.49,1.17,0.68l0.29,2.31C9.2,21.62,9.63,22,10.13,22h3.73c0.5,0,0.93-0.38,0.99-0.88l0.29-2.31 c0.41-0.19,0.8-0.42,1.17-0.68l2.15,0.91c0.46,0.2,1,0.02,1.25-0.42l1.87-3.23c0.25-0.44,0.14-0.99-0.26-1.3l-1.86-1.41 C19.49,12.45,19.5,12.23,19.5,12z M12.04,15.5c-1.93,0-3.5-1.57-3.5-3.5s1.57-3.5,3.5-3.5s3.5,1.57,3.5,3.5S13.97,15.5,12.04,15.5z"/>
</symbol>
<symbol id="svg-add" viewBox="0 0 24 24">
<path d="M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"/>
</symbol>
<symbol id="svg-remove" viewBox="0 0 24 24">
<path d="M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"/>
</symbol>
</svg>
</body>
</html>