Compare commits
No commits in common. "4b3d71e728c478062a82712537b9c558518eaf03" and "2c860e62119c5944727759a0ecc5e05a88e0fd2a" have entirely different histories.
4b3d71e728
...
2c860e6211
12
README.md
12
README.md
@ -1,12 +0,0 @@
|
||||
## Плеер для сериала
|
||||
|
||||
Develop
|
||||
-------
|
||||
**EditorConfig check**
|
||||
```
|
||||
$ ec
|
||||
```
|
||||
|
||||
Благодарности
|
||||
-------------
|
||||
Спасибо маме, за то, что напрягла меня 🙂
|
@ -1,9 +0,0 @@
|
||||
@font-face {
|
||||
font-family: 'SamsungOne';
|
||||
src: url('SamsungOne-400.woff2') format('woff2'),
|
||||
url('SamsungOne-400.woff') format('woff'),
|
||||
url('SamsungOne-400.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
@ -5,4 +5,4 @@ Twitter: @_iiiypuk
|
||||
Location: Russia
|
||||
|
||||
/* SITE */
|
||||
Last update (Обновлено): 2022/02/27
|
||||
Last update (Обновлено): 2022/02/02
|
||||
|
85
index.html
85
index.html
@ -1,10 +1,59 @@
|
||||
<!doctype html>
|
||||
<html lang="ru">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Клятва - 2 сезон</title>
|
||||
<link href="/styles.css" rel="stylesheet">
|
||||
<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>
|
||||
@ -12,22 +61,22 @@
|
||||
</header>
|
||||
|
||||
<div class="container">
|
||||
<section class="section-episodes">
|
||||
<div class="episodes">
|
||||
<ul id="episodeList"></ul>
|
||||
</div>
|
||||
</section>
|
||||
<nav>
|
||||
<p>Выбери серию =)</p>
|
||||
<ul id="episodeList"></ul>
|
||||
</nav>
|
||||
|
||||
<section class="section-video">
|
||||
<div class="video">
|
||||
<p id="episodeName"> </p>
|
||||
<video id="video" controls>
|
||||
</video>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
<script type="text/javascript">
|
||||
'use strict';
|
||||
|
||||
let episodesList = [177, 178]; // example
|
||||
let episodesList = [];
|
||||
|
||||
window.onload = function() {
|
||||
let episodeListElement = document.getElementById('episodeList');
|
||||
@ -39,17 +88,19 @@
|
||||
episodeListElement.appendChild(episodeItem);
|
||||
});
|
||||
|
||||
changeEpisode(episodesList[0]);
|
||||
}
|
||||
|
||||
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);
|
||||
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>
|
||||
|
@ -1,8 +1,4 @@
|
||||
scp font/samsung-one-font.css alex@iiiypuk.me:~/Sites/iiiypuk.me/y/font/samsung-one-font.css
|
||||
scp font/SamsungOne-400.ttf alex@iiiypuk.me:~/Sites/iiiypuk.me/y/font/SamsungOne-400.ttf
|
||||
scp font/SamsungOne-400.woff alex@iiiypuk.me:~/Sites/iiiypuk.me/y/font/SamsungOne-400.woff
|
||||
scp font/SamsungOne-400.woff2 alex@iiiypuk.me:~/Sites/iiiypuk.me/y/font/SamsungOne-400.woff2
|
||||
scp index.html alex@iiiypuk.me:~/Sites/iiiypuk.me/y/index.html
|
||||
scp styles.css alex@iiiypuk.me:~/Sites/iiiypuk.me/y/styles.css
|
||||
scp humans.txt alex@iiiypuk.me:~/Sites/iiiypuk.me/y/humans.txt
|
||||
scp favicon.ico alex@iiiypuk.me:~/Sites/iiiypuk.me/y/favicon.ico
|
||||
scp bg.png alex@iiiypuk.me:~/Sites/iiiypuk.me/y/bg.png
|
||||
|
78
styles.css
78
styles.css
@ -1,78 +0,0 @@
|
||||
@import url('/font/samsung-one-font.css');
|
||||
|
||||
:root {
|
||||
--c-peace: #a4b0be;
|
||||
--c-bay-wharf: #747d8c;
|
||||
--c-wild-watermelon: #ff6b81;
|
||||
--c-presige-blue: #2f3542;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
font-family: 'SamsungOne', sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.container {
|
||||
max-width: 800px;
|
||||
margin: 10px auto;
|
||||
}
|
||||
|
||||
header {
|
||||
background-color: var(--c-presige-blue);
|
||||
color: #fff;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
section {
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
p.title {
|
||||
font-size: 1.3em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* video section */
|
||||
section.section-video {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* episodes section */
|
||||
section.section-episodes {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div.episodes {
|
||||
background-color: var(--c-peace);
|
||||
display: inline-block;
|
||||
border: 2px solid #000;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
div.episodes ul {
|
||||
margin: 0;
|
||||
list-style-type: none;
|
||||
text-align: center;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
div.episodes li {
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
padding: 8px 16px;
|
||||
transition: background-color .2s;
|
||||
}
|
||||
div.episodes li:first-child {
|
||||
border-top-left-radius: 8px;
|
||||
border-bottom-left-radius: 8px;
|
||||
}
|
||||
div.episodes li:last-child {
|
||||
border-top-right-radius: 8px;
|
||||
border-bottom-right-radius: 8px;
|
||||
}
|
||||
div.episodes li:hover {
|
||||
background-color: var(--c-bay-wharf);
|
||||
transition: background-color .2s;
|
||||
}
|
Loading…
Reference in New Issue
Block a user