diff --git a/lerobot/templates/visualize_dataset_template.html b/lerobot/templates/visualize_dataset_template.html index 08de3e3d..e5a2f82c 100644 --- a/lerobot/templates/visualize_dataset_template.html +++ b/lerobot/templates/visualize_dataset_template.html @@ -14,21 +14,7 @@ -
{ - // Use the space bar to play and pause, instead of default action (e.g. scrolling) - const { keyCode, key } = e; - if (keyCode === 32 || key === ' ') { - e.preventDefault(); - $refs.btnPause.classList.contains('hidden') ? $refs.btnPlay.click() : $refs.btnPause.click(); - }else if (key === 'ArrowDown' || key === 'ArrowUp'){ - const nextEpisodeId = key === 'ArrowDown' ? {{ episode_id }} + 1 : {{ episode_id }} - 1; - const lowestEpisodeId = {{ episodes }}.at(0); - const highestEpisodeId = {{ episodes }}.at(-1); - if(nextEpisodeId >= lowestEpisodeId && nextEpisodeId <= highestEpisodeId){ - window.location.href = `./episode_${nextEpisodeId}`; - } - } -}"> +