function generateAlbumHeaderHTML() { var html; html = 'AlbumArtist'; return html; } function generateAlbumHTML(rowcolor, childid, parentid, coverart, title, artist, rating) { var html; html = ''; html += ''; html += ''; html += ''; if (rating === 5) { html += ''; } else { html += ''; } html += ''; if (coverart == undefined) { html += ''; } else { html += ''; } html += '' + title + ''; html += '' + artist + ''; html += ''; return html; } function generateSongHeaderHTML() { var html; html = 'TrackTitleArtistAlbumTime'; return html; } function generateSongHTML(rowcolor, childid, parentid, track, title, artist, album, coverart, rating, m, s) { var html; html = ''; html += ''; html += ''; html += ''; html += ''; if (rating === 5) { html += ''; } else { html += ''; } html += ''; html += '' + track + ''; html += '' + title + ''; html += '' + artist + ''; var coverartSrc; if (coverart == undefined) { coverartSrc = 'images/albumdefault_25.jpg'; } else { coverartSrc = baseURL + '/getCoverArt.view?v=' + version + '&c=' + applicationName + '&f=jsonp&size=25&id=' + coverart; } html += '' + album + ''; html += '' + m + ':' + s + ''; html += ''; return html; } function refreshRowColor(el) { $.each($(el + ' tr.song'), function (i) { $(this).removeClass('even odd'); var rowcolor; if (i % 2 === 0) { rowcolor = 'even'; } else { rowcolor = 'odd'; } $(this).addClass(rowcolor); }); }