chaowenguo
commited on
Commit
•
8e545a5
1
Parent(s):
c786ff7
Update index.html
Browse files- 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=
|
8 |
-
|
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>
|