diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-03-05 11:54:48 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-03-05 11:54:48 -0800 |
commit | ca778d30f70997706bba85651bc3a26b5ebc3708 (patch) | |
tree | 505ec0284477dc6dbe94b2ef1daf6d04b0991673 | |
parent | 0e8f00a68f625953e94112c95a952cd022f0f2af (diff) |
visual improvements to search page
-rw-r--r-- | ext/bg/js/display-window.js | 1 | ||||
-rw-r--r-- | ext/bg/search.html | 7 |
2 files changed, 8 insertions, 0 deletions
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 @@ </head> <body> <div class="container-fluid"> + <div id="intro"> + <div class="page-header"> + <h1>Yomichan Search</h1> + </div> + <p>Search your installed dictionaries by entering a Japanese expression into the field below.</p> + </div> + <p> <form class="input-group"> <input type="text" class="form-control" placeholder="Search for..." id="query"> |