diff --git a/index.html b/index.html
index bd65e24..72d31eb 100644
--- a/index.html
+++ b/index.html
@@ -19,11 +19,12 @@
@@ -63,9 +64,9 @@
let pro = (window.pageYOffset / totalhHght) * 100
Prostick.style.width = pro + '%'
})
- const list = document.querySelector('.navbar-right a')
+ const navbarRight = document.querySelector('.navbar-right')
const line = document.querySelector('.line')
- list.addEventListener('click',function(e){
+ navbarRight.addEventListener('click',function(e){
if (e.target.tagName === 'A'){
line.style.transform = `translateX(${e.target.tagName}px)`
}