aboutsummaryrefslogtreecommitdiff
path: root/tmpl/query-parser.html
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-11-03 15:19:42 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-11-23 17:45:44 +0200
commit5a3e8c819c94be628101311e53c164b0cdd234b4 (patch)
tree18045bc11bb347555f33dc9e9c13bd23dd8f5736 /tmpl/query-parser.html
parent41020289ab68ef22a0691a9f268a79d6a706df6b (diff)
optimize mouseover scanning in query parser
Diffstat (limited to 'tmpl/query-parser.html')
-rw-r--r--tmpl/query-parser.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/tmpl/query-parser.html b/tmpl/query-parser.html
index 818650e6..db98b5ff 100644
--- a/tmpl/query-parser.html
+++ b/tmpl/query-parser.html
@@ -12,9 +12,13 @@
{{~#*inline "part"~}}
{{~#if raw~}}
-{{text}}
+{{~#each text~}}
+<span class="query-parser-char">{{this}}</span>
+{{~/each~}}
{{~else~}}
-<ruby>{{text}}<rt>{{reading}}</rt></ruby>
+<ruby>{{~#each text~}}
+<span class="query-parser-char">{{this}}</span>
+{{~/each~}}<rt>{{reading}}</rt></ruby>
{{~/if~}}
{{~/inline~}}