change fantom episode name before loading new episode

This commit is contained in:
Alexander Popov 2022-02-23 18:26:21 +03:00
parent 3305bd6420
commit 2c860e6211
Signed by: iiiypuk
GPG Key ID: 398FC73478D97286

View File

@ -67,7 +67,7 @@
</nav>
<div class="video">
<p id="episodeName">170 серия</p>
<p id="episodeName">&nbsp;</p>
<video id="video" controls>
</video>
</div>
@ -76,7 +76,7 @@
<script type="text/javascript">
'use strict';
let episodesList = [169, 170, 171, 172, 173, 174];
let episodesList = [];
window.onload = function() {
let episodeListElement = document.getElementById('episodeList');
@ -94,7 +94,6 @@
let episodeName = document.getElementById('episodeName');
let videoElement = document.getElementById('video');
// videoElement.style.display = "block";
episodeName.innerText = `${episodeId} серия`;
videoElement.textContent = '';