2022-02-02 23:48:30 +03:00
|
|
|
|
<!doctype html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
|
<title>Клятва - 2 сезон</title>
|
|
|
|
|
<style>
|
|
|
|
|
body {
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
background-image: url('bg.png');
|
|
|
|
|
background-repeat: repeat-x repeat-y;
|
|
|
|
|
font-family: sans-serif;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div.container {
|
|
|
|
|
max-width: 800px;
|
|
|
|
|
margin: 10px auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
header {
|
|
|
|
|
background-color: #000;
|
|
|
|
|
color: #fff;
|
|
|
|
|
padding: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
header p {
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
nav p {
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
nav ul {
|
|
|
|
|
list-style-type: none;
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
nav li {
|
|
|
|
|
background-color: #ccc;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
border: 2px solid #000;
|
|
|
|
|
margin: 0 8px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div.video {
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<header>
|
|
|
|
|
<p class="title">Специально для мамы с любовью ♥</p>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
<nav>
|
|
|
|
|
<p>Выбери серию =)</p>
|
|
|
|
|
<ul id="episodeList"></ul>
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
<div class="video">
|
2022-02-23 18:26:21 +03:00
|
|
|
|
<p id="episodeName"> </p>
|
2022-02-02 23:48:30 +03:00
|
|
|
|
<video id="video" controls>
|
|
|
|
|
</video>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
'use strict';
|
|
|
|
|
|
2022-02-23 18:26:21 +03:00
|
|
|
|
let episodesList = [];
|
2022-02-02 23:48:30 +03:00
|
|
|
|
|
|
|
|
|
window.onload = function() {
|
|
|
|
|
let episodeListElement = document.getElementById('episodeList');
|
|
|
|
|
|
|
|
|
|
episodesList.forEach(item => {
|
|
|
|
|
let episodeItem = document.createElement('li');
|
|
|
|
|
episodeItem.setAttribute('onclick', `changeEpisode("${item}");`);
|
|
|
|
|
episodeItem.innerText = item;
|
|
|
|
|
episodeListElement.appendChild(episodeItem);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function changeEpisode(episodeId) {
|
|
|
|
|
let episodeName = document.getElementById('episodeName');
|
|
|
|
|
let videoElement = document.getElementById('video');
|
|
|
|
|
|
|
|
|
|
episodeName.innerText = `${episodeId} серия`;
|
|
|
|
|
|
|
|
|
|
videoElement.textContent = '';
|
|
|
|
|
let videoSource = document.createElement('source');
|
|
|
|
|
videoSource.setAttribute('src', `https://iiiypuk.me/y/o/${episodeId}.mp4`);
|
|
|
|
|
videoSource.setAttribute('type', 'video/mp4');
|
|
|
|
|
videoElement.appendChild(videoSource);
|
|
|
|
|
videoElement.load();
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|