|
|
@ -56,7 +56,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Prostick = document.querySelector('.Prostick');
|
|
|
|
Prostick = document.querySelector('.Prostick');
|
|
|
|
totalHight = document.body.scrollHeight - window.innerHeight;
|
|
|
|
totalHight = document.documentElement.scrollHeight - window.innerHeight;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
window.addEventListener('scroll', function () {
|
|
|
|
window.addEventListener('scroll', function () {
|
|
|
|
let pro = (window.pageYOffset / totalHight) * 100;
|
|
|
|
let pro = (window.pageYOffset / totalHight) * 100;
|
|
|
|