"BDay" -> "Gratulation"

This commit is contained in:
Jörn-Michael Miehe 2020-09-07 02:16:05 +02:00
parent ad4493380a
commit e14f961a7a
2 changed files with 8 additions and 8 deletions

View file

@ -1,18 +1,18 @@
<template> <template>
<div id="app"> <div id="app">
<img class="logo" alt="Lenaistenlogo" src="./assets/logo.png" /> <img class="logo" alt="Lenaistenlogo" src="./assets/logo.png" />
<BDay /> <Gratulation />
</div> </div>
</template> </template>
<script> <script>
import BDay from "./components/BDay.vue"; import Gratulation from "./components/Gratulation.vue";
export default { export default {
name: "App", name: "App",
components: { components: {
BDay, Gratulation,
}, },
computed: { computed: {

View file

@ -29,7 +29,7 @@
<script> <script>
export default { export default {
name: "BDay", name: "Gratulation",
data: () => ({ data: () => ({
videoQueue: ["part1", "part2"], videoQueue: ["part1", "part2"],
@ -69,7 +69,7 @@ export default {
return source; return source;
}, },
videoTimeUpdated: function () { videoTimeUpdated() {
// show play button after 3 seconds, then disable this event // show play button after 3 seconds, then disable this event
if (this.player.currentTime > 3) { if (this.player.currentTime > 3) {
this.playVisible = true; this.playVisible = true;
@ -77,21 +77,21 @@ export default {
} }
}, },
videoLoaded: function () { videoLoaded() {
this.placePlay(); this.placePlay();
if (this.currentVideo >= 0) { if (this.currentVideo >= 0) {
this.player.play(); this.player.play();
} }
}, },
playClicked: function () { playClicked() {
this.playVisible = false; this.playVisible = false;
this.currentVideo += 1; this.currentVideo += 1;
this.player.source = this.getVideoSource(this.currentVideo); this.player.source = this.getVideoSource(this.currentVideo);
}, },
placePlay: function () { placePlay() {
let top = (this.$refs.plyrContainer.offsetHeight - 100) / 2; let top = (this.$refs.plyrContainer.offsetHeight - 100) / 2;
let left = (this.$refs.plyrContainer.offsetWidth - 100) / 2; let left = (this.$refs.plyrContainer.offsetWidth - 100) / 2;