-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
78 lines (65 loc) · 2.45 KB
/
popup.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
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="css-colors.css" rel="stylesheet">
</head>
<body>
<div class="wrapper">
<textarea id="exporter"></textarea>
<section id="tools" class="bar">
<span class="tool-section" data-select="single" id="tool-colorFormat">
<button id="shorthex" class="selected" title="Show HEX codes">Hex</button><button id="rgb" title="Show RGBA codes">RGB(A)</button><button id="hsl" title="Show HSLA codes">HSL(A)</button>
</span>
<span class="tool-section" id="tool-colorViews">
<button id="present" class="selected" title="Show colors used in the page">Used</button><button id="absent" title="Show colors mentioned in stylesheets, but currently absent from the page">Unused</button>
</span>
<span class="tool-section" id="tool-colorTypes">
<button id="colors" class="selected icon" title="Show Colors"></button><button id="grays" class="selected icon" title="Show Grays"></button><button id="alphas" class="selected icon" title="Toggle Semi-Transparent Shades"></button>
</span>
<span class="tool-section" id="tool-misc">
<button id="details" class="icon" title="Show more details"><button id="labels" class="icon selected" title="Toggle Labels"></button><button id="export" class="icon" title="Export the current set of colors"></button>
</span>
</section>
</div>
<section id="noti" class="notification"></section>
<div id="content-wrapper" class="wrapper">
<section id="list-wrap">
<ul class="list" id="thumbs">
</ul>
</section>
<div id="color-info">
<h3 class="bar" id="ci-title">Details</h3>
<div class="inner">
<div id="ci-color"></div>
<div id="ci-detail">
<div id="ci-flags">
<span id="ci-bg">Background</span>
<span id="ci-fg">Text</span>
<span id="ci-dom">Not Used</span>
</div>
<p id="ci-code"></p>
</div>
<div id="ci-norules">
<p>Ouch! Something prevented Bowerbird from fetching the CSS Rules
that feature this color.</p>
<p>This could happen if:</p>
<ul>
<li>You are on a local <code>file://</code> URL.</li>
<li>The CSS file path is on a different domain.</li>
</ul>
</div>
<div id="ci-rules">
</div>
</div>
</div>
</div>
<script>
var WebInspector = {}, colors = [];
</script>
<script src="vendor/Color.js"></script>
<script src="js/dom.js"></script>
<script src="js/color-utils.js"></script>
<script src="js/utils.js"></script>
<script src="js/popup.js"></script>
</body>
</html>