From af3f389a88e512f7f85f8501afdc36c69ff0a86a Mon Sep 17 00:00:00 2001 From: kor Date: Tue, 17 Jul 2018 01:02:50 +1200 Subject: [PATCH] Setup term page/filter. --- logic/main.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/logic/main.js b/logic/main.js index fb0526c..53b44b8 100644 --- a/logic/main.js +++ b/logic/main.js @@ -64,6 +64,19 @@ function Main() console.log('Display \'home\''); tempDatabase = this.database; } + else if (target == 'term') + { + console.log('Display \'terms\''); + + for (i = 0; i < this.keys.length; i++) + { + let value = this.database[this.keys[i]]; + if (typeof value.TERM !== 'undefined') + { + tempDatabase[this.keys[i]] = this.database[this.keys[i]]; + } + } + } else { var splitTarget = target.split("-");