From 185cd5d0af0c73f6098eebc1f2a57ec43c21c8b7 Mon Sep 17 00:00:00 2001 From: 123 <123@qq.com> Date: Mon, 28 Apr 2025 16:38:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/default_v2/inc/header.html | 2 +- templates/default_v2/index.html | 3 +++ templates/default_v2/list_laws.html | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/default_v2/inc/header.html b/templates/default_v2/inc/header.html index a85a9c9..dcda0a6 100644 --- a/templates/default_v2/inc/header.html +++ b/templates/default_v2/inc/header.html @@ -114,7 +114,7 @@ jQuery(".itemn").click(function(){ window.location.href = jQuery(this).attr("url") }) - window.addEventListener('load', () => { + window.addEventListener('DOMContentLoaded', () => { const box = document.querySelector('.slide-box'); setTimeout(() => box.style.opacity = 1, 50); }); diff --git a/templates/default_v2/index.html b/templates/default_v2/index.html index 3d44095..3b41d3d 100644 --- a/templates/default_v2/index.html +++ b/templates/default_v2/index.html @@ -11,6 +11,8 @@ + + @@ -31,6 +33,7 @@