<!DOCTYPE html>
<html lang="zh-Hant">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>音樂播放器與標記功能</title>
<style>
body { font-family: Arial, sans-serif; }
#timeLine { width: 100%; height: 10px; background: lightgray; position: relative; margin-top: 20px; }
.marker { position: absolute; height: 10px; width: 2px; background: red; }
.selected { background: yellow; }
#audio {
width: 100%; /* 音頻控制條寬度為100% */
max-width: 100%; /* 確保不會超過螢幕寬度 */
}
</style>
</head>
<body>
This file has been truncated. show original
i ask many times for the same problem with this programming
let me first explain what function do in this program
load music, press M to record point when playing music
using Z and X to go back or forward key
typing a s d… to key those key of node,
Problems
when i finish to key 1 2 3 4 5 6 node in timeline
let say i want to key 7point between 4 and 5 timeline,
timing key should
1 2 3 4 7 5 6
however when press z or x in 7
it won’t go to point 4 or 5
it always go to point 6
many times ask GPT it looping the same problems not fix
ILM
December 19, 2024, 3:16pm
2
so this is not code you have written?
how much experience do you have coding?
one thing you may not know, if your keyboard is not a standard QWERTY, then event.code
can be unexpected values. Use event.key
instead like you are doing in the other part of the code
1 Like