为极简模式隐藏banner

This commit is contained in:
丑小鸦
2023-07-28 22:32:44 +08:00
committed by GitHub
parent 2c9d4314d6
commit 4da9c1fee1

View File

@@ -25,12 +25,16 @@ function simple_mode_toggle(){
$("#content").removeClass("background-hide"); $("#content").removeClass("background-hide");
$("html").removeClass("filter-grayscale"); $("html").removeClass("filter-grayscale");
$(".shuoshuo-content.shuoshuo-folded").removeClass("simple-shuoshuo-folded"); $(".shuoshuo-content.shuoshuo-folded").removeClass("simple-shuoshuo-folded");
$("html").addClass("banner-as-cover");
$("html").removeClass("no-banner");
simple_mode=false; simple_mode=false;
} }
else{ else{
$("#content").addClass("background-hide"); $("#content").addClass("background-hide");
$("html").addClass("filter-grayscale"); $("html").addClass("filter-grayscale");
$(".shuoshuo-content.shuoshuo-folded").addClass("simple-shuoshuo-folded"); $(".shuoshuo-content.shuoshuo-folded").addClass("simple-shuoshuo-folded");
$("html").removeClass("banner-as-cover");
$("html").addClass("no-banner");
simple_mode=true; simple_mode=true;
} }
} }