move styles to file and fix editorconfig

This commit is contained in:
Alexander Popov 2022-02-23 21:13:04 +03:00
parent 7b88cba43c
commit 1da3c99ec2
Signed by: iiiypuk
GPG Key ID: 398FC73478D97286
4 changed files with 75 additions and 62 deletions

View File

@ -1,5 +1,12 @@
## Плеер для сериала
Develop
-------
**EditorConfig check**
```
$ ec
```
Благодарности
-------------
Спасибо маме, за то, что напрягла меня 🙂

View File

@ -0,0 +1,9 @@
@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;
}

View File

@ -4,64 +4,6 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Клятва - 2 сезон</title>
<style>
@import url('/font/samsung-one-font.css');
body {
background-color: #fff;
background-image: url('bg.png');
background-repeat: repeat-x repeat-y;
font-family: 'SamsungOne', 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;
}
hr {
border: 1px solid #444;
}
</style>
</head>
<body>
<header>
@ -108,10 +50,10 @@
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>

55
styles.css Normal file
View File

@ -0,0 +1,55 @@
@import url('/font/samsung-one-font.css');
body {
background-color: #fff;
background-image: url('bg.png');
background-repeat: repeat-x repeat-y;
font-family: 'SamsungOne', 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;
}
hr {
border: 1px solid #444;
}