mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 04:33:50 +01:00
✌️
This commit is contained in:
parent
1c50e88e71
commit
5e9d1a36d6
@ -57,7 +57,8 @@ export default Vue.extend({
|
||||
welcomeBgUrl,
|
||||
host,
|
||||
name,
|
||||
description
|
||||
description,
|
||||
pointerInterval: null
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@ -66,11 +67,18 @@ export default Vue.extend({
|
||||
});
|
||||
},
|
||||
mounted() {
|
||||
const x = this.$refs.signup.getBoundingClientRect();
|
||||
this.$refs.pointer.style.top = x.top + x.height + 'px';
|
||||
this.$refs.pointer.style.left = x.left + 'px';
|
||||
this.point();
|
||||
this.pointerInterval = setInterval(this.point, 100);
|
||||
},
|
||||
beforeDestroy() {
|
||||
clearInterval(this.pointerInterval);
|
||||
},
|
||||
methods: {
|
||||
point() {
|
||||
const x = this.$refs.signup.getBoundingClientRect();
|
||||
this.$refs.pointer.style.top = x.top + x.height + 'px';
|
||||
this.$refs.pointer.style.left = x.left + 'px';
|
||||
},
|
||||
signup() {
|
||||
this.$modal.show('signup');
|
||||
},
|
||||
@ -109,7 +117,7 @@ root(isDark)
|
||||
right 0
|
||||
width 180px
|
||||
margin 0 0 0 -180px
|
||||
transform rotateY(180deg) translateX(-10px) translateY(-25px)
|
||||
transform rotateY(180deg) translateX(-10px) translateY(-48px)
|
||||
pointer-events none
|
||||
|
||||
> button
|
||||
|
Loading…
Reference in New Issue
Block a user