精简代码

This commit is contained in:
丑小鸦
2023-07-29 01:49:13 +08:00
committed by GitHub
parent 9d89d11dcd
commit ef5d38e61f

View File

@@ -22,17 +22,13 @@ function aplayer_panel_toggle(){
var simple_mode=false; var simple_mode=false;
function simple_mode_toggle(){ function simple_mode_toggle(){
if(simple_mode){ if(simple_mode){
$("html").removeClass("simple-mode"); $("html").removeClass("simple-mode filter-grayscale no-banner");
$("html").removeClass("filter-grayscale");
$("html").addClass("banner-as-cover"); $("html").addClass("banner-as-cover");
$("html").removeClass("no-banner");
simple_mode=false; simple_mode=false;
} }
else{ else{
$("html").addClass("simple-mode"); $("html").addClass("simple-mode filter-grayscale no-banner");
$("html").addClass("filter-grayscale");
$("html").removeClass("banner-as-cover"); $("html").removeClass("banner-as-cover");
$("html").addClass("no-banner");
simple_mode=true; simple_mode=true;
} }
} }