autoload first episode

This commit is contained in:
Alexander Popov 2022-02-23 21:06:52 +03:00
parent f2094640fe
commit 7b88cba43c
Signed by: iiiypuk
GPG Key ID: 398FC73478D97286

View File

@ -86,7 +86,7 @@
<script type="text/javascript"> <script type="text/javascript">
'use strict'; 'use strict';
let episodesList = []; let episodesList = [177, 178]; // example
window.onload = function() { window.onload = function() {
let episodeListElement = document.getElementById('episodeList'); let episodeListElement = document.getElementById('episodeList');
@ -98,6 +98,7 @@
episodeListElement.appendChild(episodeItem); episodeListElement.appendChild(episodeItem);
}); });
changeEpisode(episodesList[0]);
} }
function changeEpisode(episodeId) { function changeEpisode(episodeId) {