|
|
@ -70,7 +70,7 @@
|
|
|
|
let totalHight = document.body.scrollHeight
|
|
|
|
let totalHight = document.body.scrollHeight
|
|
|
|
const Prostick = document.querySelector('.Prostick')
|
|
|
|
const Prostick = document.querySelector('.Prostick')
|
|
|
|
window.addEventListener('scroll', function () {
|
|
|
|
window.addEventListener('scroll', function () {
|
|
|
|
let pro = (window.pageYOffset / totalhHght) * 100
|
|
|
|
let pro = (window.pageYOffset / totalHight) * 100
|
|
|
|
Prostick.style.width = pro + '%'
|
|
|
|
Prostick.style.width = pro + '%'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const navbarRight = document.querySelector('.navbar-right')
|
|
|
|
const navbarRight = document.querySelector('.navbar-right')
|
|
|
|