Skip to content

Commit 7edcac9

Browse files
committed
AllColors snippet will now show the number of colours user on the webpage
1 parent eb221dc commit 7edcac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippets/allcolors/allcolors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
return "background:" + color + ";color:" + color + ";border:1px solid #333;";
8787
};
8888

89-
console.group("All colors used in elements on the page: " + window.location.href);
89+
console.group("Total colors used in elements on the page: " + window.location.href + " are " +allColorsSorted.length);
9090
allColorsSorted.forEach(function (c) {
9191
console.groupCollapsed("%c %c " + c.key + " " + c.hexValue + " %c(" + c.value.count + " times)",
9292
colorStyle(c.key), nameStyle, countStyle);

0 commit comments

Comments
 (0)