From e02dfec59c7b2afee54e98deb06d940f4a49026a Mon Sep 17 00:00:00 2001 From: Doge Date: Wed, 12 May 2021 14:05:44 +0800 Subject: Add timeline seek support --- layout/post.ejs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'layout') 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); <% } %> @@ -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'); %> -
  • <%= viewstr %> <%= title %>
  • +
  • <%= viewstr %> <%= title %>
  • <% }); %> <% } %> -- cgit v1.2.3