Small music player tweaks

This commit is contained in:
gballan1 2016-11-29 00:04:40 -05:00
parent c96bb75241
commit ed8d98ba16
3 changed files with 6 additions and 13 deletions

View File

@ -50,15 +50,9 @@
text-decoration: none text-decoration: none
+transition(color, 200ms) +transition(color, 200ms)
#music-player-card #music-player
.mejs-container
width: 100% width: 100%
.mejs-container,
.mejs-mediaelement,
.mejs-controls
background: transparent
.album-art .album-art
width: 100% width: 100%

View File

@ -670,12 +670,8 @@ body {
-moz-transition: color, 200ms; -moz-transition: color, 200ms;
transition: color, 200ms; } transition: color, 200ms; }
#music-player-card .mejs-container { #music-player {
width: 100%; } width: 100%; }
#music-player-card .mejs-container,
#music-player-card .mejs-mediaelement,
#music-player-card .mejs-controls {
background: transparent; }
.album-art { .album-art {
width: 100%; } width: 100%; }

View File

@ -3,6 +3,9 @@ var player = '';
$(document).ready(function() { $(document).ready(function() {
player = $('#music-player').get(0); player = $('#music-player').get(0);
// set the player's volume to 0.5 by default
player.volume = 0.5;
// on music track click // on music track click
$('.now-playing-list').on('click', '.music-track', function() { $('.now-playing-list').on('click', '.music-track', function() {
// change selected track // change selected track