From 326f3e1f3f377ffefa0b49c1120271d2489ebe26 Mon Sep 17 00:00:00 2001 From: enjoyuruf <39794567+enjoyuruf@users.noreply.github.com> Date: Sun, 8 Sep 2019 00:45:00 +0800 Subject: [PATCH] =?UTF-8?q?Aplayer=E6=AD=8C=E6=9B=B2=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=BB=91=E5=8A=A8=E5=87=BA=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当Aplayer的侧边 ‘>’按钮被点击后,Aplayer整体滑出,然后歌曲列表缓慢滑出。比起直接出现,观感应该会好一些。 --- js/sakura-app.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/js/sakura-app.js b/js/sakura-app.js index 746c5cd..cad784b 100644 --- a/js/sakura-app.js +++ b/js/sakura-app.js @@ -782,16 +782,25 @@ 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; } }); + $(".aplayer-icon-loop").click(function(){ + + }); } var b = 'https://api.i-meto.com/meting/api?server=:server&type=:type&id=:id&r=:r'; 'undefined' != typeof meting_api && (b = meting_api);