Skip to content

Commit

Permalink
Merge pull request #107 from enjoyuruf/patch-1
Browse files Browse the repository at this point in the history
Aplayer歌曲列表滑动出现
  • Loading branch information
mashirozx committed Sep 8, 2019
2 parents c3381bc + b5872cf commit a7dd54f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/sakura-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,12 +782,18 @@ if(mashiro_option.float_player_on) {
lrcTag = 2;
});
var apSwitchTag = 0;
var aplayerlist=$(".aplayer-list");
aplayerlist.removeClass( "aplayer-list-hide" );
aplayerlist.css({maxHeight:'0px'});
$(".aplayer.aplayer-fixed .aplayer-body").addClass("ap-hover");
$(".aplayer-miniswitcher").click(function(){
if (apSwitchTag == 0) {
aplayerlist.removeClass( "aplayer-list-hide" );
aplayerlist.animate({maxHeight:'250px'});
$(".aplayer.aplayer-fixed .aplayer-body").removeClass( "ap-hover" );
apSwitchTag = 1;
} else {
aplayerlist.css({maxHeight:'0px'});
$(".aplayer.aplayer-fixed .aplayer-body").addClass( "ap-hover" );
apSwitchTag =0;
}
Expand Down

0 comments on commit a7dd54f

Please sign in to comment.