Skip to content

Commit

Permalink
動画をsafariで表示するための変更
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeKato committed Aug 31, 2024
1 parent d29ae1d commit 9d63154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/md2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
image_path = read_lines[i][24:]
image_path = image_path[:-38]
write_lines.append('<video controls>\n')
write_lines.append('<source src="https://yusukekato.jp/images/' + image_path + '.mp4' + '" alt="' + read_lines[i+2] + '" type="video/mp4" />\n')
write_lines.append('<source src="https://yusukekato.jp/images/' + image_path + '.mp4#t=0.1' + '" alt="' + read_lines[i+2] + '" type="video/mp4" playsinline/>\n')
write_lines.append('</video>\n')
write_lines.append('</div>\n')
i += 2
Expand Down

0 comments on commit 9d63154

Please sign in to comment.