Skip to content

Commit

Permalink
精简代码
Browse files Browse the repository at this point in the history
  • Loading branch information
crowya authored Jul 28, 2023
1 parent a328c1b commit 1806126
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions live2d/waifu-tips.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@ function aplayer_panel_toggle(){
var simple_mode=false;
function simple_mode_toggle(){
if(simple_mode){
$("#content").removeClass("background-hide");
$("html").removeClass("simple-mode");
$("html").removeClass("filter-grayscale");
$(".shuoshuo-content.shuoshuo-folded").removeClass("simple-shuoshuo-folded");
$("html").addClass("banner-as-cover");
$("html").removeClass("no-banner");
simple_mode=false;
}
else{
$("#content").addClass("background-hide");
$("html").addClass("simple-mode");
$("html").addClass("filter-grayscale");
$(".shuoshuo-content.shuoshuo-folded").addClass("simple-shuoshuo-folded");
$("html").removeClass("banner-as-cover");
$("html").addClass("no-banner");
simple_mode=true;
Expand Down

0 comments on commit 1806126

Please sign in to comment.