From b9a11ff6545ea1fc5cb72940668784c896dbdd83 Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Mon, 22 Jul 2024 15:31:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:ie=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/home/base.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/home/base.html b/ruoyi-admin/src/main/resources/templates/home/base.html index 1ac5a30..9652b8b 100644 --- a/ruoyi-admin/src/main/resources/templates/home/base.html +++ b/ruoyi-admin/src/main/resources/templates/home/base.html @@ -444,8 +444,8 @@ })(i); } - const slides = document.querySelectorAll('.slide'); - let currentSlide = 0; + var slides = document.querySelectorAll('.slide'); + var currentSlide = 0; function showNextSlide() { slides[currentSlide].classList.remove('active'); @@ -506,12 +506,12 @@ speed: 30, }); - let el = document.querySelector('#ad'); - let styleTop = 0; - let styleLeft = 0; - let verticalFlag = true; - let horizontalFlag = true; - let isMouseOver = false; // 新变量用于跟踪鼠标是否在元素上 + var el = document.querySelector('#ad'); + var styleTop = 0; + var styleLeft = 0; + var verticalFlag = true; + var horizontalFlag = true; + var isMouseOver = false; // 新变量用于跟踪鼠标是否在元素上 // 设置定时器的函数 function moveElement() {