Migration general theme: fix video player method in javascript
This commit is contained in:
parent
cfd9e977a7
commit
b53fd2c004
@ -49,7 +49,7 @@ def timestamp_replacement(match):
|
|||||||
for part in match.group(0).split(':'):
|
for part in match.group(0).split(':'):
|
||||||
time_seconds = 60*time_seconds + int(part)
|
time_seconds = 60*time_seconds + int(part)
|
||||||
return (
|
return (
|
||||||
'<a href="#" onclick="document.querySelector(\'video\').currentTime='
|
'<a href="#" onclick="document.getElementById(\'js-video-player\').currentTime='
|
||||||
+ str(time_seconds)
|
+ str(time_seconds)
|
||||||
+ '">' + match.group(0)
|
+ '">' + match.group(0)
|
||||||
+ '</a>'
|
+ '</a>'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user