Add files via upload

This commit is contained in:
Wiwi Kuan
2019-12-31 16:33:23 +08:00
committed by GitHub
parent 2a5f9c009f
commit a9598c25e5
2 changed files with 10 additions and 2 deletions

View File

@@ -98,7 +98,9 @@
</head>
<body>
<p>K: 下一行開始 | L: 這一行提前結束 | I: 前捲一行 | O: 後捲一行 </p>
<p>用 Firefox 而不要用 Chrome。開 HTTP Server影片檔名取 video.mp4字幕文字檔 subs.txt每句分行</p>
<p>K: 下一行開始 | L: 這一行提前結束 | I: 前捲一行 | O: 後捲一行 | U: 倒帶 5 秒 | P: 前進 5 秒 | Q: 製作 SRT 檔</p>
<p>K: Next Line | L: This Line Ends Early | I: Scroll Back | O: Scroll Forward | U: Rewind | P: Forward | Q: Make SRT File</p>
<p id="status">Test Text.</p>
<textarea id="textArea" rows="10" cols="80">預設的字。</textarea>
</body>

View File

@@ -38,7 +38,7 @@ function draw() {
curr = vid.elt.currentTime;
sta = `Stamping Line ${currentStamping} | Playhead: ${curr}`;
tAreaText = "";
for (let i = -2; i < 5; i++) {
for (let i = 0; i < 5; i++) {
if (i == 0) {
tAreaText += "** 目前 ---> "
}
@@ -73,6 +73,12 @@ function keyPressed() {
} else if (keyCode === 81) {
// Q : Make SRT
makeSRT();
} else if (keyCode === 85) { // U
vid.elt.currentTime -= 5;
} else if (keyCode === 80) { // P
vid.elt.currentTime += 5
}
}