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
|
|
@ -561,9 +561,9 @@ Ox.VideoTimelinePlayer = function(options, self) {
|
|||
self.$tooltip.options({
|
||||
title: (
|
||||
subtitle
|
||||
? '<span class=\'OxBright\'>' +
|
||||
Ox.highlight(subtitle.text, self.options.find, 'OxHighlight').replace(/\n/g, '<br/>') +
|
||||
'</span><br/>'
|
||||
? '<span class=\'OxBright\'>' + Ox.highlight(
|
||||
subtitle.text, self.options.find, 'OxHighlight'
|
||||
).replace(/\n/g, '<br/>') + '</span><br/>'
|
||||
: ''
|
||||
) + Ox.formatDuration(position, 3)
|
||||
})
|
||||
|
|
@ -708,7 +708,9 @@ Ox.VideoTimelinePlayer = function(options, self) {
|
|||
left: (subtitle['in'] * self.fps) + 'px',
|
||||
width: (((subtitle.out - subtitle['in']) * self.fps) - 2) + 'px'
|
||||
})
|
||||
.html(Ox.highlight(subtitle.text, self.options.find, 'OxHighlight'))
|
||||
.html(Ox.highlight(
|
||||
subtitle.text, self.options.find, 'OxHighlight'
|
||||
))
|
||||
.appendTo(self.$timeline);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue