Empty commit

This commit is contained in:
Git 2013-04-10 08:00:43 +00:00
parent b009e2c889
commit 6790608346

View File

@ -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">';