diff options
-rw-r--r-- | layout/post.ejs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layout/post.ejs b/layout/post.ejs index 6997574..443274b 100644 --- a/layout/post.ejs +++ b/layout/post.ejs @@ -34,6 +34,7 @@ }, themeColor: "red" }); + window.player = player; }, false); </script> <% } %> @@ -65,7 +66,7 @@ const second = Math.floor(timestamp % 60); const viewstr = String(hour).padStart(2, '0') + ':' + String(minute).padStart(2, '0') + ':' + String(second).padStart(2, '0'); %> - <li class="is-family-monospace"><a href="#t=<%= viewstr %>"><%= viewstr %></a> <%= title %></li> + <li class="is-family-monospace"><a href="#t=<%= viewstr %>" onclick="player.seek(<%= timestamp %>)"><%= viewstr %></a> <%= title %></li> <% }); %> </ul> <% } %> |