mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-02-07 13:59:07 +00:00
Empty commit
This commit is contained in:
parent
b009e2c889
commit
6790608346
@ -153,6 +153,10 @@
|
|||||||
tasteometerHtml += '<li class="lastfm_essential">Compatibility: ';
|
tasteometerHtml += '<li class="lastfm_essential">Compatibility: ';
|
||||||
var compatibility = Math.round(j['score'] * 100);
|
var compatibility = Math.round(j['score'] * 100);
|
||||||
var background;
|
var background;
|
||||||
|
if (compatibility < 0 || compatibility > 100) {
|
||||||
|
compatibility = "Unknown";
|
||||||
|
tasteometerHtml += compatibility;
|
||||||
|
} else {
|
||||||
if (compatibility < 50){
|
if (compatibility < 50){
|
||||||
background = 'rgb(255, '+Math.floor(255*compatibility/50)+', 0)'
|
background = 'rgb(255, '+Math.floor(255*compatibility/50)+', 0)'
|
||||||
} else {
|
} else {
|
||||||
@ -165,6 +169,7 @@
|
|||||||
</div>\r\
|
</div>\r\
|
||||||
</div>\r\
|
</div>\r\
|
||||||
</li>';
|
</li>';
|
||||||
|
}
|
||||||
// Only print shared artists if there are any
|
// Only print shared artists if there are any
|
||||||
if (j['artists']['matches'] != 0){
|
if (j['artists']['matches'] != 0){
|
||||||
sharedArtistsHtml += '<li>Shared artists:</li><li><ul class="nobullet">';
|
sharedArtistsHtml += '<li>Shared artists:</li><li><ul class="nobullet">';
|
||||||
|
Loading…
Reference in New Issue
Block a user