chaowenguo commited on
Commit
21e2553
1 Parent(s): f7a485e

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +11 -6
index.html CHANGED
@@ -5,14 +5,19 @@
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>
 
5
  <title></title>
6
  </head>
7
  <body>
8
+ <nav style='display:flex; column-gap:1em'></nav>
9
+ <video width='100%' controls controlsList='nodownload' crossorigin='anonymous'>
10
  <source>
11
+ <track default>
12
  </video>
13
  <script type='module'>
14
+ for (const episode of globalThis.Array(20).keys())
15
+ {
16
+ const button = globalThis.document.createElement('button')
17
+ button.textContent = (episode + 1).toString().padStart(2, 0)
18
+ globalThis.document.querySelector('nav').appendChild(button)
19
+ }
20
+ </script>
21
+ <script src='index.js' type='module'></script>
22
  </body>
23
  </html>