This repository was archived by the owner on Nov 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 110
110
< button type ="button " id ="debugPauseBtn "> ⏯</ button >
111
111
< button type ="button " id ="debugForwardBtn "> ⏭</ button >
112
112
< input type ="range " value ="0 " min ="0 " max ="100 " step ="1 " oninput ="this.nextElementSibling.value = this.value " id ="timeSlider ">
113
- < output class ="text " id ="timeSliderVal "> 0</ output >
114
-
115
113
</ div >
116
114
117
115
< script src ="scripts/point.js "> </ script >
Original file line number Diff line number Diff line change @@ -482,6 +482,14 @@ uploadDebugBtn.onchange = function() {
482
482
debugDataList . push ( debugData ) ;
483
483
debugSet = true ;
484
484
}
485
+
486
+ // render the debug data
487
+ debugDataTime = 0 ;
488
+ debugTimeSlider . value = 0 ;
489
+ renderField ( ) ;
490
+ renderDebug ( ) ;
491
+ debugDataTime -- ;
492
+ debugTimeSlider . value = debugDataTime ;
485
493
} ;
486
494
reader . readAsText ( this . files [ this . files . length - 1 ] ) ;
487
495
} ;
@@ -570,5 +578,7 @@ debugTimeSlider.oninput = function() {
570
578
if ( debugSet == true ) {
571
579
renderField ( ) ;
572
580
renderDebug ( ) ;
581
+ debugDataTime -- ;
582
+ debugTimeSlider . value = debugDataTime ;
573
583
}
574
584
} ;
Original file line number Diff line number Diff line change @@ -56,9 +56,6 @@ const rDVal = document.getElementById('rDVal');
56
56
const rBVal = document . getElementById ( 'rBVal' ) ;
57
57
const rGVal = document . getElementById ( 'rGVal' ) ;
58
58
59
- const debugTimeVal = document . getElementById ( 'timeSliderVal' ) ;
60
-
61
-
62
59
// buttons
63
60
const downloadRobotBtn = document . getElementById ( 'downloadRobotBtn' ) ;
64
61
const downloadPathBtn = document . getElementById ( 'downloadPathBtn' ) ;
You can’t perform that action at this time.
0 commit comments