Delete style btn-sm

This commit is contained in:
RemiZOffAlex
2019-12-12 17:45:27 +03:00
parent da2654bf74
commit 3a1629a42e
5 changed files with 15 additions and 15 deletions

View File

@@ -23,7 +23,7 @@ Vue.component('backtotop-component', {
}
},
mounted () {
var vm = this;
let vm = this;
window.addEventListener('scroll', this.catchScroll);
let currentScroll = document.documentElement.scrollTop || document.body.scrollTop
vm.visible = (currentScroll > 100);
@@ -33,15 +33,15 @@ Vue.component('backtotop-component', {
},
methods: {
catchScroll () {
var vm = this;
let vm = this;
vm.visible = (window.pageYOffset > 100);
},
backToTop () {
var vm = this;
let vm = this;
vm.scrollAnimate();
},
scrollAnimate: function() {
var vm = this;
let vm = this;
let currentScroll = document.documentElement.scrollTop || document.body.scrollTop
if (currentScroll > 0) {
//alert(currentScroll);
@@ -50,4 +50,4 @@ Vue.component('backtotop-component', {
}
}
}
});
});