Skip to content

Commit

Permalink
Show generated color beside function
Browse files Browse the repository at this point in the history
  • Loading branch information
gyoshev committed Jul 29, 2015
1 parent 9c7892e commit 41be093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module.exports = function(grunt) {
options: {
spawn: false
},
files: files.lib,
files: files.demo.concat(files.lib),
tasks: [ 'browserify' ]
}
}
Expand Down
2 changes: 1 addition & 1 deletion demo/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function suggest(e) {

if (suggestions.length) {
result = "<ul>" + suggestions.map(function(x) {
return "<li>" + x.format + "</li>";
return "<li><span>" + x.format + "</span> will generate <span title='(difference: " + x.difference + ")'>" + x.color.toCSS() + "</span></li>";
}).join("") + "</ul>";
}

Expand Down

0 comments on commit 41be093

Please sign in to comment.