Commit 75d7113c authored by Alan Szlosek's avatar Alan Szlosek

background colors to help differentiate albums from songs. dont re-assign same player source

parent 5a897b73
......@@ -169,6 +169,10 @@ img {
}
#catalog .album > .title {
font-style: italic;
background-color: rgba(169,189,209,0.50);
}
#catalog .song > .title {
background-color: rgba(169,189,209,0.30);
}
......@@ -367,7 +371,7 @@ var fillCatalog = function() {
out.push(
tag(
'div',
{class: 'hidden flex song artist-' + artistId + ' album-' + albumId, "data-songid": i},
{class: 'hidden hidden2 flex song artist-' + artistId + ' album-' + albumId, "data-songid": i},
// For albums with Various artists, show artist name
tag('div', {class:'one title'}, ("00" + song.trackNumber).slice(-2) + '. ' + (song.albumArtist != song.artist ? song.artist + ' - ' : '') + song.name),
tag('div', {class:'button warning enqueue'},
......@@ -522,8 +526,8 @@ var player = {
if (player.playlist.length > 0) {
song = catalog.songs[ player.playlist[0] ];
path = './music' + song.file.split('/').map(encodeURIComponent).join('/');
if (path != handles.player.getAttribute('currentSrc')) {
handles.player.src = path;
if (path != handles.player.getAttribute('src')) {
handles.player.setAttribute('src', path);
handles.playing.innerText = song.artist + ' - ' + song.name;
document.title = song.artist + ' - ' + song.name;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment