Improve highlights
This commit is contained in:
parent
fc9fc0ec8f
commit
70ecd9310f
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
.invisible { display: none }
|
||||
.morpheme-root { color: #dd0000; }
|
||||
.highlight { color: #0000dd; }
|
||||
|
||||
.text {
|
||||
margin-left: auto;
|
||||
|
|
|
@ -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>'
|
||||
)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue