diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-07-06 17:09:34 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-07-06 17:09:34 +0300 |
| commit | 29a13fad099417b26416bdd0a539502d8195cd81 (patch) | |
| tree | 181a33cfc9207dd2cab5f2012a057297f8973ae6 /client/button.js | |
| parent | 4b86b497cdae02a6908a7027e17695089b36d2fb (diff) | |
Dominants page styles
Diffstat (limited to 'client/button.js')
| -rw-r--r-- | client/button.js | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/client/button.js b/client/button.js index 35f7267..93bc6c6 100644 --- a/client/button.js +++ b/client/button.js @@ -55,16 +55,13 @@ 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)'); - $('h5#dominant1').text('#' - + palette[0][0].toString(16).toUpperCase() - + palette[0][1].toString(16).toUpperCase() - + palette[0][2].toString(16).toUpperCase() - ) - $('h5#dominant2').text('#' - + palette[1][0].toString(16).toUpperCase() - + palette[1][1].toString(16).toUpperCase() - + palette[1][2].toString(16).toUpperCase() - ) + $('ol#dominant1 li.r').text('R-' + palette[0][0].toString(16).toUpperCase()); + $('ol#dominant1 li.g').text('G-' + palette[0][1].toString(16).toUpperCase()); + $('ol#dominant1 li.b').text('B-' + palette[0][2].toString(16).toUpperCase()); + + $('ol#dominant2 li.r').text('R-' + palette[1][0].toString(16).toUpperCase()); + $('ol#dominant2 li.g').text('G-' + palette[1][1].toString(16).toUpperCase()); + $('ol#dominant2 li.b').text('B-' + palette[1][2].toString(16).toUpperCase()); $('div.dominants').show(); }, delay + 2000); |
