Show playing video file name
This commit is contained in:
@ -1,6 +1,10 @@
|
||||
$(async function()
|
||||
{
|
||||
const hash = location.hash.slice(1);
|
||||
const file = atob(hash.replace(/-/g, '+').replace(/_/g, '/'));
|
||||
|
||||
$("title").text("Anime - "+file);
|
||||
$("#title").text(file);
|
||||
|
||||
$("#status").text("Fetching media info...");
|
||||
let res = await fetch(`api/info.php?file=${hash}`);
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
<title>Anime - Player</title>
|
||||
</head>
|
||||
<body>
|
||||
<p id="title"></p>
|
||||
<h2 id="status">"Video Player"</h2>
|
||||
<video id="vid" class="video-js" controls width="480" height="360"/>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user