From 551dd70061eb8c1bf6adb958848395bbd55b9a7f Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Tue, 30 Jun 2015 17:28:20 +0300 Subject: Fix dominants hex values --- client/button.js | 4 ++-- client/templates/photos.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/button.js b/client/button.js index 5e03a1f..3670c0e 100644 --- a/client/button.js +++ b/client/button.js @@ -55,12 +55,12 @@ function animate() { $('div#dominant1').css('background', 'rgba(' + palette[0][0] + ',' + palette[0][1] + ',' + palette[0][2] + ',1)'); $('div#dominant2').css('background', 'rgba(' + palette[1][0] + ',' + palette[1][1] + ',' + palette[1][2] + ',1)'); - $('div#dominant1').siblings('h5').text('#' + $('h5#dominant1').text('#' + palette[0][0].toString(16).toUpperCase() + palette[0][1].toString(16).toUpperCase() + palette[0][2].toString(16).toUpperCase() ) - $('div#dominant2').siblings('h5').text('#' + $('h5#dominant2').text('#' + palette[1][0].toString(16).toUpperCase() + palette[1][1].toString(16).toUpperCase() + palette[1][2].toString(16).toUpperCase() diff --git a/client/templates/photos.html b/client/templates/photos.html index 6a9b9c6..c45a831 100644 --- a/client/templates/photos.html +++ b/client/templates/photos.html @@ -24,12 +24,12 @@

Dominant color #1

-
#AABBCC
+
#AABBCC

Dominant color #2

-
#AABBCC
+
#AABBCC
@@ -37,9 +37,9 @@
-
#AABBCC
+
#AABBCC
-
#AABBCC
+
#AABBCC