From e310240021bdaf42ec68fbd13d9c8ce7eb51456f Mon Sep 17 00:00:00 2001 From: golemjager Date: Sun, 21 Feb 2021 22:00:33 -0700 Subject: [PATCH] Put a red button on levelselector title (more clear on current position) Added compliments and the ability to copy them --- src/App.vue | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 2fad0bf..c0ef675 100644 --- a/src/App.vue +++ b/src/App.vue @@ -103,7 +103,20 @@ - {{ item.title }} + + + {{ item.title }} + + + + {{ item.title }} + @@ -194,6 +207,27 @@ Stop + + +
+ +
+ {{levels[currentLevel].compliment}} +
+
+
+ + + + Copy Compliment! + + + @@ -215,6 +249,9 @@ export default { this.reset(); }, methods: { + copycomp: function() { + navigator.clipboard.writeText(this.levels[this.currentLevel].compliment) + }, reset: function () { this.currentLevel = 0; this.score = 0; @@ -386,6 +423,7 @@ export default { title: "Start - Peace sign", foreground: "assets/bg/peacesign.png", task: "Make a peace sign", + compliment: "", points: 5, }, { @@ -1095,6 +1133,9 @@ body { color: #fff; text-shadow: 2px 2px #000; } +.levelcompliment { + font-size: 16px !important; +} video { left: 50%; min-height: 100%;