video / index.html
chaowenguo's picture
Update index.html
f0e8f82
raw
history blame
991 Bytes
<!--https://search.google.com/search-console/about URL inspection-->
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title></title>
</head>
<body>
<div style='display:flex; justify-content:space-around'>
<h1></h1>
<nav style='display:flex; column-gap:1em'></nav>
</div>
<video width='100%' controls controlsList='nodownload' crossorigin='anonymous'>
<source>
<track default>
</video>
<script type='module'>
globalThis.document.querySelector('title').textContent = globalThis.document.querySelector('h1').textContent = globalThis.decodeURIComponent(globalThis.location.pathname).slice(1)
for (const episode of globalThis.Array(20).keys())
{
const button = globalThis.document.createElement('button')
button.textContent = (episode + 1).toString().padStart(2, 0)
globalThis.document.querySelector('nav').appendChild(button)
}
</script>
<script src='index.js' type='module'></script>
</body>
</html>