From e1ce897a7e5d5a667398cc6a79c72e37f343e2e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B5=A9=E6=96=8C?= Date: Mon, 18 Mar 2024 17:03:55 +0800 Subject: [PATCH] Update js.php --- trunk/web/template/syzoj/js.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trunk/web/template/syzoj/js.php b/trunk/web/template/syzoj/js.php index 91a655f45da..c245013dc7e 100644 --- a/trunk/web/template/syzoj/js.php +++ b/trunk/web/template/syzoj/js.php @@ -34,6 +34,10 @@ let left=window.innerWidth-parseInt($("#menu").css("width")) - 100; left/=2; $("#menu").attr("style","margin-left:auto;margin-right:auto;"); + var screen_width = window.screen.width; + var screen_height = window.screen.height; + if(screen_width < 800) $("#main").attr("class",""); + if(screen_width < 800) $("#MainBg-C").attr("class",""); });