From 2a7084db5b90d4d770a4fc41c681aa38c30164b9 Mon Sep 17 00:00:00 2001 From: xugp <1292593309@qq.com> Date: Fri, 10 Apr 2026 17:28:53 +0800 Subject: [PATCH] feat: add export functionality and fix button bindings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add export button and exportRecording() function - Fix button initialization timing with loop check - Change events to global window.events for export access - Update all references to use window.events - Fix stopRecording to enable controls even if replay fails - Enable all control buttons (play, speed, export) after recording 🎯 Key improvements: - Users can now export recorded sessions as JSON files - All buttons now work correctly after recording stops - Proper error handling for replay initialization - User-selectable save paths for exported files 📁 Modified: index.html --- index.html | 118 +++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 105 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 1df70c28..2b87cd69 100644 --- a/index.html +++ b/index.html @@ -213,6 +213,21 @@ +
播放器提供完整控制:
@@ -230,7 +245,8 @@