From febf916524935ab3f7284fb78e491dc1da5d5c36 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Mon, 14 Aug 2023 22:42:55 +0300 Subject: [PATCH] use prettier --- .prettierignore | 1 + .prettierrc.json | 10 ++++ src/font/samsung-one-font.css | 3 +- src/index.html | 91 +++++++++++++++++------------------ src/styles.css | 4 +- 5 files changed, 60 insertions(+), 49 deletions(-) create mode 100644 .prettierignore create mode 100644 .prettierrc.json diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..dd44972 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +*.md diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..87437bd --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,10 @@ +{ + "printWidth": 100, + "bracketSpacing": true, + "bracketSameLine": true, + "semi": true, + "singleQuote": true, + "arrowParens": "always", + "htmlWhitespaceSensitivity": "strict", + "endOfLine": "lf" +} diff --git a/src/font/samsung-one-font.css b/src/font/samsung-one-font.css index 8005ddc..a07f137 100644 --- a/src/font/samsung-one-font.css +++ b/src/font/samsung-one-font.css @@ -1,6 +1,7 @@ @font-face { font-family: 'SamsungOne'; - src: url('SamsungOne-400.woff2') format('woff2'), + src: + url('SamsungOne-400.woff2') format('woff2'), url('SamsungOne-400.woff') format('woff'), url('SamsungOne-400.ttf') format('truetype'); font-weight: normal; diff --git a/src/index.html b/src/index.html index 91f0058..97702dc 100644 --- a/src/index.html +++ b/src/index.html @@ -1,58 +1,57 @@ - - - - Клятва - 2 сезон - - - - -
-

Специально для мамы с любовью ♥

-
+ + + + Клятва - 3 сезон + + + + +
+

Специально для мамы с любовью ♥

+
-
-
-
-
    -
    -
    +
    +
    +
    +
      +
      +
      -
      - -
      -
      +
      + +
      +
      - - + videoElement.textContent = ''; + let videoSource = document.createElement('source'); + videoSource.setAttribute('src', `https://a2s.su/y/o/${episodeId}.mp4`); + videoSource.setAttribute('type', 'video/mp4'); + videoElement.appendChild(videoSource); + videoElement.load(); + } + + diff --git a/src/styles.css b/src/styles.css index 5bd26ba..05c9967 100644 --- a/src/styles.css +++ b/src/styles.css @@ -62,7 +62,7 @@ div.episodes li { display: inline-block; cursor: pointer; padding: 8px 16px; - transition: background-color .2s; + transition: background-color 0.2s; } div.episodes li:first-child { border-top-left-radius: 8px; @@ -74,5 +74,5 @@ div.episodes li:last-child { } div.episodes li:hover { background-color: var(--c-bay-wharf); - transition: background-color .2s; + transition: background-color 0.2s; }