From 0ed705910d005c53db8fec39620e7e41a1982510 Mon Sep 17 00:00:00 2001 From: stingl Date: Wed, 22 Sep 2021 17:12:58 +0200 Subject: [PATCH] add hidden fields --- css/app.css | 19 ++++++++++++++++++- index.html | 5 +++++ js/app.js | 4 ++++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/css/app.css b/css/app.css index dfd28e8..8bee10e 100644 --- a/css/app.css +++ b/css/app.css @@ -201,4 +201,21 @@ nav, .card { .bg-timebox input { color: black; -} \ No newline at end of file +} + +/*Hidden Boxes*/ +#hidden-one { + width: 1em; + height: 1em; + position: fixed; + top: 0; + left: 0; +} + +#hidden-two { + width: 1em; + height: 1em; + position: fixed; + bottom: 0; + right: 0; +} diff --git a/index.html b/index.html index 5b04995..78034d3 100644 --- a/index.html +++ b/index.html @@ -821,6 +821,11 @@ + + diff --git a/js/app.js b/js/app.js index 852398d..216585d 100644 --- a/js/app.js +++ b/js/app.js @@ -606,6 +606,10 @@ const TimeTrack = { }, validateBooleans(value) { return value === 'true' || value === true; + }, + tellJoke(category, language = 'en') { + let jokeService = new JokeService(category ?? undefined, language); + jokeService.tell(); } }, watch: {