From 5630e568fccebb124852737ebc0d2474de0012c1 Mon Sep 17 00:00:00 2001 From: AviderMin Date: Mon, 21 Oct 2024 11:11:20 +0800 Subject: [PATCH] fix bugs --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 10b71ed..12ec33c 100644 --- a/index.html +++ b/index.html @@ -70,7 +70,7 @@ let totalHight = document.body.scrollHeight const Prostick = document.querySelector('.Prostick') window.addEventListener('scroll', function () { - let pro = (window.pageYOffset / totalhHght) * 100 + let pro = (window.pageYOffset / totalHight) * 100 Prostick.style.width = pro + '%' }) const navbarRight = document.querySelector('.navbar-right')