Merge pull request #103 from Tracerneo/master

Fix ID coloring style
This commit is contained in:
seaweedchan 2013-06-12 18:46:35 -07:00
commit 61e5218243

View File

@ -29,7 +29,7 @@ IDColor =
apply: ->
rgb = IDColor.ids[@] or IDColor.compute @
"background-color: rgb(#{rgb[0]},#{rgb[1]},#{rgb[2]}); color: " + if rgb[3] then "black;" else "white; border-radius: 3px; padding: 0px 2px;"
"background-color: rgb(#{rgb[0]},#{rgb[1]},#{rgb[2]}); color: " + if rgb[3] then "black; border-radius: 3px; padding: 0px 2px;" else "white; border-radius: 3px; padding: 0px 2px;"
hash: (str) ->
msg = 0
@ -38,4 +38,4 @@ IDColor =
while i < j
msg = ((msg << 5) - msg) + str.charCodeAt i
++i
msg
msg