summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-06-16 07:13:45 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-06-16 07:13:45 +0900
commitb600d462c11c08d42d017aa64ee6a9ed9aa95d03 (patch)
tree2dde767ba20582dc4a08f9b74b8d126c1e6013fa /src
parent:v: (diff)
downloadsharkey-b600d462c11c08d42d017aa64ee6a9ed9aa95d03.tar.gz
sharkey-b600d462c11c08d42d017aa64ee6a9ed9aa95d03.tar.bz2
sharkey-b600d462c11c08d42d017aa64ee6a9ed9aa95d03.zip
:v:
Diffstat (limited to 'src')
-rw-r--r--src/client/app/desktop/views/pages/welcome.vue18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/client/app/desktop/views/pages/welcome.vue b/src/client/app/desktop/views/pages/welcome.vue
index 9687eea2ec..6f6a1b8665 100644
--- a/src/client/app/desktop/views/pages/welcome.vue
+++ b/src/client/app/desktop/views/pages/welcome.vue
@@ -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