2
0
Fork 0

Improve highlights

This commit is contained in:
Alex Kotov 2023-02-20 16:41:44 +04:00
parent fc9fc0ec8f
commit 70ecd9310f
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
.invisible { display: none }
.morpheme-root { color: #dd0000; }
.highlight { color: #0000dd; }
.text {
margin-left: auto;

View File

@ -37,7 +37,9 @@ $(function() {
if (pos > 0) { highlighted.push(left.substring(last_pos, pos)) }
last_pos = pos + len
highlighted.push(
'<b>' + left.substring(pos, pos + len) + '</b>'
'<span class="highlight">' +
left.substring(pos, pos + len) +
'</span>'
)
})
}