chaowenguo commited on
Commit
8e545a5
1 Parent(s): c786ff7

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +10 -3
index.html CHANGED
@@ -2,10 +2,17 @@
2
  <html>
3
  <head>
4
  <meta charset='utf-8'>
 
5
  </head>
6
  <body>
7
- <video width="320" height="240" controls>
8
- <source src='https://huggingface.co/chaowenguo/video/resolve/main/%E4%BA%AC%E5%9F%8E%E6%95%99%E4%B8%8001.mp4'>
9
  </video>
 
 
 
 
 
 
10
  </body>
11
- </html>
 
2
  <html>
3
  <head>
4
  <meta charset='utf-8'>
5
+ <title></title>
6
  </head>
7
  <body>
8
+ <video width='100%' controls controlsList='nodownload'>
9
+ <source>
10
  </video>
11
+ <script type='module'>
12
+ const name = new globalThis.URLSearchParams(globalThis.location.search).get('name')
13
+ globalThis.document.querySelector('video').querySelector('source').src = `https://huggingface.co/chaowenguo/video/resolve/main/${name}.mp4`
14
+ globalThis.document.querySelector('video').load()
15
+ globalThis.document.querySelector('title').textContent = name
16
+ </script>
17
  </body>
18
+ </html>