From e426f6f6f1e954e4409b5e50ccd4a17d7a05866b Mon Sep 17 00:00:00 2001 From: jgerstbe Date: Wed, 22 Jul 2020 22:49:31 +0200 Subject: [PATCH] [U] add top bar, btn --- public/app.js | 3 +++ public/index.css | 9 +++++++++ public/index.html | 5 +++++ 3 files changed, 17 insertions(+) diff --git a/public/app.js b/public/app.js index ee35f88..ee8101f 100644 --- a/public/app.js +++ b/public/app.js @@ -80,12 +80,14 @@ new Vue({ document.querySelector('.controls').style.display = ""; this.animateCSS('.floatBtn.left', 'fadeInLeft'); this.animateCSS('.floatBtn.right', 'fadeInRight'); + this.animateCSS('.floatBar.top .btn.right', 'fadeInRight'); this.animateCSS('.floatBar.bottom .btn', 'fadeInUp'); this.controlsTimeout = setTimeout(() => this.toggleControls(), 15000); } else { Promise.all([ this.animateCSS('.floatBtn.left', 'fadeOutLeft'), this.animateCSS('.floatBtn.right', 'fadeOutRight'), + this.animateCSS('.floatBar.top .btn.right', 'fadeOutRight'), this.animateCSS('.floatBar.bottom .btn', 'fadeOutDown') ]).then(data => { document.querySelector('.controls').style.display = "none" @@ -117,6 +119,7 @@ new Vue({ setTimeout(() => { this.animateCSS('.floatBtn.left', 'fadeInLeft'); this.animateCSS('.floatBtn.right', 'fadeInRight'); + this.animateCSS('.floatBar.top .btn.right', 'fadeInRight'); this.animateCSS('.floatBar.bottom .btn', 'fadeInUp'); this.controlsTimeout = setTimeout(() => this.toggleControls(), 2500); }, 0); diff --git a/public/index.css b/public/index.css index d80e98f..eecf201 100644 --- a/public/index.css +++ b/public/index.css @@ -98,6 +98,15 @@ body { margin: 0 auto; } +#app .floatBar.top { + top: 10px; +} + +#app .floatBar.top .btn.right { + float: right; + margin-right: 10px; +} + #app .empty { text-align: center; margin-top: 48vh; diff --git a/public/index.html b/public/index.html index ab8fabc..6031e43 100644 --- a/public/index.html +++ b/public/index.html @@ -15,6 +15,11 @@
+
+
+ +
+