forked from 0x2620/oxjs
use Ox.highlight; minor reformatting
This commit is contained in:
parent
90147a69fb
commit
4ba06fde41
7 changed files with 21 additions and 15 deletions
|
|
@ -209,10 +209,11 @@ Ox.BlockVideoTimeline = function(options, self) {
|
|||
subtitle = getSubtitle(position);
|
||||
self.$tooltip.options({
|
||||
title: subtitle
|
||||
? '<span class=\'OxBright\'>' +
|
||||
Ox.highlight(subtitle.text, self.options.find, 'OxHighlight').replace(/\n/g, '<br/>') +
|
||||
'</span><br/>' +
|
||||
Ox.formatDuration(subtitle['in'], 3) + ' - '
|
||||
? '<span class=\'OxBright\'>'
|
||||
+ Ox.highlight(
|
||||
subtitle.text, self.options.find, 'OxHighlight'
|
||||
).replace(/\n/g, '<br/>') + '</span><br/>'
|
||||
+ Ox.formatDuration(subtitle['in'], 3) + ' - '
|
||||
+ Ox.formatDuration(subtitle['out'], 3)
|
||||
: Ox.formatDuration(position)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue