Spaces:
Running
Running
teleop: mp4 file chips -> clip.html (with back button)
Browse files
teleopSample/sort_ep1.html
CHANGED
|
@@ -217,8 +217,9 @@ window.addEventListener('resize',()=>update());
|
|
| 217 |
const HFDS='https://huggingface.co/datasets/faradayfuture/teleopSample';
|
| 218 |
document.getElementById('dsLink').href=HFDS+'/tree/main';
|
| 219 |
const fm=document.getElementById('fileManifest');
|
| 220 |
-
CAMS.forEach(c=>{ const a=document.createElement('a'); a.className='file-chip';
|
| 221 |
-
a.
|
|
|
|
| 222 |
[[SLUG+'.parquet',SLUG+'.parquet'],
|
| 223 |
[SLUG+'.meta.json',SLUG+'.meta.json']].forEach(([lbl,href])=>{
|
| 224 |
const a=document.createElement('a'); a.className='file-chip'; a.href=href; a.innerHTML=lbl; fm.appendChild(a); });
|
|
|
|
| 217 |
const HFDS='https://huggingface.co/datasets/faradayfuture/teleopSample';
|
| 218 |
document.getElementById('dsLink').href=HFDS+'/tree/main';
|
| 219 |
const fm=document.getElementById('fileManifest');
|
| 220 |
+
CAMS.forEach(c=>{ const a=document.createElement('a'); a.className='file-chip';
|
| 221 |
+
a.href=`clip.html?v=${encodeURIComponent('media/'+SLUG+'/'+c.key+'.mp4')}&back=${encodeURIComponent(SLUG+'.html')}&t=${encodeURIComponent(SLUG+' 路 '+c.key)}`;
|
| 222 |
+
a.innerHTML=`${c.key}.mp4`; fm.appendChild(a); });
|
| 223 |
[[SLUG+'.parquet',SLUG+'.parquet'],
|
| 224 |
[SLUG+'.meta.json',SLUG+'.meta.json']].forEach(([lbl,href])=>{
|
| 225 |
const a=document.createElement('a'); a.className='file-chip'; a.href=href; a.innerHTML=lbl; fm.appendChild(a); });
|