Fixed some of the album selection stuff
This commit is contained in:
parent
faa0ed3464
commit
a6663db3e6
@ -62,7 +62,7 @@
|
||||
.album-art
|
||||
width: 100%
|
||||
|
||||
.music-album
|
||||
.music-album .thumbnail
|
||||
+transition(background, 200ms)
|
||||
|
||||
&:hover
|
||||
|
@ -680,18 +680,18 @@ body {
|
||||
.album-art {
|
||||
width: 100%; }
|
||||
|
||||
.music-album {
|
||||
.music-album .thumbnail {
|
||||
-webkit-transition: background, 200ms;
|
||||
-moz-transition: background, 200ms;
|
||||
transition: background, 200ms; }
|
||||
.music-album:hover {
|
||||
.music-album .thumbnail:hover {
|
||||
background: #f0f0f0;
|
||||
cursor: pointer; }
|
||||
.music-album:hover a {
|
||||
.music-album .thumbnail:hover a {
|
||||
color: #e51400; }
|
||||
.music-album.selected {
|
||||
.music-album .thumbnail.selected {
|
||||
background: #e0e0e0; }
|
||||
.music-album.selected a {
|
||||
.music-album .thumbnail.selected a {
|
||||
color: #e51400; }
|
||||
|
||||
.shows-header {
|
||||
|
@ -3,10 +3,17 @@ var player = '';
|
||||
$(document).ready(function() {
|
||||
player = $('#music-player').get(0);
|
||||
|
||||
// on music track click
|
||||
$('.now-playing-list .music-track').on('click', function() {
|
||||
// change selected track
|
||||
changeSelectedTrack(this);
|
||||
});
|
||||
|
||||
// on album art click
|
||||
$('.music-album').on('click', function() {
|
||||
// change selected album
|
||||
changeSelectedAlbum(this);
|
||||
});
|
||||
});
|
||||
|
||||
function changeSelectedAlbum(albumElem) {
|
||||
|
Loading…
Reference in New Issue
Block a user