update site
This commit is contained in:
parent
51d51e8adb
commit
894a0c222f
1
src/.gitignore
vendored
Normal file
1
src/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/font/SamsungOne-400.*
|
@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Клятва - 2 сезон</title>
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||
<link href="styles.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@ -13,22 +13,22 @@
|
||||
</header>
|
||||
|
||||
<div class="container">
|
||||
<div class="section-episodes">
|
||||
<section class="section-episodes">
|
||||
<div class="episodes">
|
||||
<ul id="episodeList"></ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="section-video">
|
||||
<section class="section-video">
|
||||
<video id="video" controls>
|
||||
</video>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
let episodesList = [177, 178]; /* episodes number list */
|
||||
let episodesList = [223, 224, 225, 226, 227]; // example
|
||||
|
||||
window.onload = function() {
|
||||
let episodeListElement = document.getElementById('episodeList');
|
||||
@ -48,7 +48,7 @@
|
||||
|
||||
videoElement.textContent = '';
|
||||
let videoSource = document.createElement('source');
|
||||
videoSource.setAttribute('src', `https://a2s.su/y/ep/${episodeId}.mp4`);
|
||||
videoSource.setAttribute('src', `https://a2s.su/y/o/${episodeId}.mp4`);
|
||||
videoSource.setAttribute('type', 'video/mp4');
|
||||
videoElement.appendChild(videoSource);
|
||||
videoElement.load();
|
||||
|
Loading…
Reference in New Issue
Block a user