Add helper for displaying colors
parent
b132ab9026
commit
d9073eb3a1
|
@ -1,6 +1 @@
|
||||||
<h3 class="c-base__title">
|
<h3 class="c-base__title">{{{color result_color}}}</h3>
|
||||||
{{result_color}} <span
|
|
||||||
class="rgb_color--color-box" style="color:{{result_color}}">
|
|
||||||
■
|
|
||||||
</span>
|
|
||||||
</h3>
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Handlebars.registerHelper('color', function(hex) {
|
||||||
|
return hex + ' <span class="rgb_color--color-box" style="color:' +
|
||||||
|
hex + '">■</span>';
|
||||||
|
});
|
Loading…
Reference in New Issue