From 546f4850f051b0851838c10c0c42b4930b8df735 Mon Sep 17 00:00:00 2001 From: neroignis Date: Fri, 18 Sep 2020 18:43:24 +0200 Subject: [PATCH] Add chat catch for weatgher; Add logo in nav; --- app.css | 7 ++++++- app.js | 11 +++++++++-- index.html | 1 + 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/app.css b/app.css index 2c27e5a..96330c0 100644 --- a/app.css +++ b/app.css @@ -70,4 +70,9 @@ body { .command-message::before { content: '$: '; -} \ No newline at end of file +} + +.header-logo { + max-height: 2em; + margin-right: 5px; +} diff --git a/app.js b/app.js index 3adefda..ec087a4 100644 --- a/app.js +++ b/app.js @@ -302,7 +302,14 @@ let kara = new Vue({ } if (this.includesAllOf(phrases, ['clear', 'chat'])) { - this.clearChat() + this.clearChat(); + return false; + } + + if (this.includesAllOf(phrases, ['weather']) && + this.includesOneOf(phrases, ['how', 'whats']) + ) { + this.checkWeather(); return false; } @@ -473,7 +480,7 @@ let kara = new Vue({ this.location = this.settingsModal.location; this.updateStorage(); - this.botMessage('Settings saved! :)'); + // this.botMessage('Settings saved! :)'); this.scrollDown(); }, clearChat() { diff --git a/index.html b/index.html index 587d356..92b4c95 100644 --- a/index.html +++ b/index.html @@ -13,6 +13,7 @@
+