').css({height: '16px'}).appendTo($text);
+ // Mainstream Score, Arthouse Score ----------------------------------------
+
+ ['votes', 'likes'].forEach(function(key) {
+ var value = data[key] || 0;
+ $('
')
+ .css({marginBottom: '4px'})
+ .append(formatKey(key == 'votes' ? 'Mainstream Score' : 'Arthouse Score'), true)
+ .append(
+ Ox.Theme.formatColor(value * 1.2, 'hue')
+ .css({textAlign: 'right'})
+ .html(Ox.formatNumber(value, 1) + '%')
+ )
+ .appendTo($statistics);
+ });
+
// Hue, Saturation, Lightness, Volume --------------------------------------
['hue', 'saturation', 'lightness', 'volume'].forEach(function(key) {
+ var value = data[key] || 0;
$('
')
.css({marginBottom: '4px'})
.append(formatKey(key, true))
.append(
- Ox.Theme.formatColor(
- data[key] || 0, key == 'volume' ? 'lightness' : key
- ).css({textAlign: 'right'})
+ Ox.Theme.formatColor(value, key == 'volume' ? 'lightness' : key)
+ .css({textAlign: 'right'})
)
.appendTo($statistics);
});