Skip to content

Commit

Permalink
Updates and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RedRussianBear committed Nov 21, 2018
1 parent c835047 commit b037f9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ $(document).ready(function () {

// Create new div to hold color information
const addition = $.parseHTML(
'<div><span>' +
color.raw_hex +
'</span><span>' +
color.w3c.name +
'</span></div>')[0];
'<div><span>'
+ color.raw_hex + '</span><span>'
+ color.w3c.name + '</span><span>'
+ color.value + '</span></div>'
)[0];

$(addition).css('background-color', color.raw_hex);
if (tinycolor(color.raw_hex).isLight()) $(addition).css('color', 'black');
Expand Down
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@


<body>
<div id="work_box">
<h1>Create a Color Scheme with Clarifai!</h1>
<input type="file" id="upload"/>
<div id="colors"></div>
</div>
<div id="work_box">
<h1>Create a Color Scheme with Clarifai!</h1>
<input type="file" id="upload"/>
<div id="colors"></div>
</div>
</body>

</html>

0 comments on commit b037f9e

Please sign in to comment.