mirror of
https://github.com/mashirozx/sakura.git
synced 2024-11-22 23:08:14 +08:00
perf: aplayer list folded at first
This commit is contained in:
parent
742f5680e3
commit
680d3b515f
@ -753,7 +753,7 @@ if (mashiro_option.float_player_on) {
|
|||||||
autoplay: !1,
|
autoplay: !1,
|
||||||
mutex: !0,
|
mutex: !0,
|
||||||
lrcType: 3,
|
lrcType: 3,
|
||||||
listFolded: !1,
|
listFolded: 1,
|
||||||
preload: 'auto',
|
preload: 'auto',
|
||||||
theme: '#2980b9',
|
theme: '#2980b9',
|
||||||
loop: 'all',
|
loop: 'all',
|
||||||
@ -789,23 +789,13 @@ if (mashiro_option.float_player_on) {
|
|||||||
lrcTag = 2;
|
lrcTag = 2;
|
||||||
});
|
});
|
||||||
var apSwitchTag = 0;
|
var apSwitchTag = 0;
|
||||||
var aplayerlist = $(".aplayer-list");
|
|
||||||
aplayerlist.removeClass("aplayer-list-hide").css({
|
|
||||||
maxHeight: '0px'
|
|
||||||
});
|
|
||||||
$(".aplayer.aplayer-fixed .aplayer-body").addClass("ap-hover");
|
$(".aplayer.aplayer-fixed .aplayer-body").addClass("ap-hover");
|
||||||
$(".aplayer-miniswitcher").click(function () {
|
$(".aplayer-miniswitcher").click(function () {
|
||||||
if (apSwitchTag == 0) {
|
if (apSwitchTag == 0) {
|
||||||
aplayerlist.removeClass("aplayer-list-hide").animate({
|
|
||||||
maxHeight: '250px'
|
|
||||||
});
|
|
||||||
$(".aplayer.aplayer-fixed .aplayer-body").removeClass("ap-hover");
|
$(".aplayer.aplayer-fixed .aplayer-body").removeClass("ap-hover");
|
||||||
$("#secondary").addClass("active");
|
$("#secondary").addClass("active");
|
||||||
apSwitchTag = 1;
|
apSwitchTag = 1;
|
||||||
} else {
|
} else {
|
||||||
aplayerlist.css({
|
|
||||||
maxHeight: '0px'
|
|
||||||
});
|
|
||||||
$(".aplayer.aplayer-fixed .aplayer-body").addClass("ap-hover");
|
$(".aplayer.aplayer-fixed .aplayer-body").addClass("ap-hover");
|
||||||
$("#secondary").removeClass("active");
|
$("#secondary").removeClass("active");
|
||||||
apSwitchTag = 0;
|
apSwitchTag = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user