aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-05 11:54:48 -0800
committerAlex Yatskov <alex@foosoft.net>2017-03-05 11:54:48 -0800
commitca778d30f70997706bba85651bc3a26b5ebc3708 (patch)
tree505ec0284477dc6dbe94b2ef1daf6d04b0991673 /ext
parent0e8f00a68f625953e94112c95a952cd022f0f2af (diff)
visual improvements to search page
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/display-window.js1
-rw-r--r--ext/bg/search.html7
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">