From ca778d30f70997706bba85651bc3a26b5ebc3708 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 5 Mar 2017 11:54:48 -0800 Subject: [PATCH] visual improvements to search page --- ext/bg/js/display-window.js | 1 + ext/bg/search.html | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/ext/bg/js/display-window.js b/ext/bg/js/display-window.js index 568c5526..f0d920e5 100644 --- a/ext/bg/js/display-window.js +++ b/ext/bg/js/display-window.js @@ -45,6 +45,7 @@ window.displayWindow = new class extends Display { onSearch(e) { e.preventDefault(); + $('#intro').slideUp(); instYomi().termsFind($('#query').val()).then(({length, definitions}) => { super.showTermDefs(definitions, instYomi().options); }).catch(this.handleError.bind(this)); diff --git a/ext/bg/search.html b/ext/bg/search.html index 937cc602..f158306d 100644 --- a/ext/bg/search.html +++ b/ext/bg/search.html @@ -9,6 +9,13 @@
+
+ +

Search your installed dictionaries by entering a Japanese expression into the field below.

+
+