Skip to content

Commit

Permalink
Merge pull request #76 from AN0NCER/develop
Browse files Browse the repository at this point in the history
Fix bugs + parameter Hide Block 'Hero
  • Loading branch information
AN0NCER authored Jan 1, 2024
2 parents 9e88a75 + 1fb06a6 commit 1fb2a03
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion javascript/pages/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const Parameters = [
},
{
type: 'boolean',
param: '',
param: 'hidehero',
name: 'Скрыть героев',
description: 'Позволяет пользователю убирать изображения персонажей для более нейтрального просмотра сайта.'
},
Expand Down
6 changes: 4 additions & 2 deletions javascript/pages/watch/mod_resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export async function LoadAnime(event = () => { }, logged = false) {
_setPageMetaTags(_shikimoriData);

await _loadGallery($ID);
await _loadHeroes($ID);
//Отключить загрузку если в параметрах отключено
if (!$PARAMETERS.anime.hidehero)
await _loadHeroes($ID);
await _loadFranchise($ID);
await _loadSimiliar($ID);

Expand All @@ -61,7 +63,7 @@ export async function LoadAnime(event = () => { }, logged = false) {
event();
ScrollingElements();
CallEvent("load");

ApiTunime.anime($ID);

function _loadShikimoriData(id) {
Expand Down
1 change: 1 addition & 0 deletions javascript/parametrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const $PARAMETERS = {
},
anime: {
syncdata: true,
hidehero: false,
},
watch: {
dubanime: false,
Expand Down
3 changes: 3 additions & 0 deletions style/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ header > .notification > .dot {
}
.swiper-treilers .swiper-wrapper .swiper-slide > .controls .wrapper-block-info .block-info .wrapper-details .kind,
.swiper-treilers .swiper-wrapper .swiper-slide > .controls .wrapper-block-info .block-info .wrapper-details .studio {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 11px;
color: rgba(255, 255, 255, 0.5);
}
Expand Down
8 changes: 3 additions & 5 deletions style/css/watch.css
Original file line number Diff line number Diff line change
Expand Up @@ -462,18 +462,16 @@ Title block
color: #fff;
font-weight: bold;
font-size: 18px;
position: relative;
}
.block-title.with-count {
display: flex;
justify-content: space-between;
align-items: center;
}
.block-title.with-count .count {
background: #98d4fd;
padding: 5px 10px;
border-radius: 3px;
font-size: 12px;
color: #020202;
color: #596271;
}

.block-title.title-player {
Expand Down Expand Up @@ -1126,7 +1124,7 @@ footer .studio span {
}
}
.window-translation .window-content {
max-height: calc(100vh - env(safe-area-inset-top));
max-height: calc(100dvh - env(safe-area-inset-top));
overflow-y: hidden;
overscroll-behavior: contain;
}
Expand Down
3 changes: 3 additions & 0 deletions style/index/_trailers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@

.kind,
.studio {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 11px;
color: rgba(255, 255, 255, 0.5);
}
Expand Down
6 changes: 2 additions & 4 deletions style/watch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -551,18 +551,16 @@ Title block
color: #fff;
font-weight: bold;
font-size: 18px;
position: relative;

&.with-count {
display: flex;
justify-content: space-between;
align-items: center;

.count {
background: #98d4fd;
padding: 5px 10px;
border-radius: 3px;
font-size: 12px;
color: #020202;
color: #596271;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion style/window/_translation.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.window-translation {
.window-content {
max-height: calc(100vh - env(safe-area-inset-top));
max-height: calc(100dvh - env(safe-area-inset-top));
overflow-y: hidden;
overscroll-behavior: contain;

Expand Down
2 changes: 1 addition & 1 deletion sw.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var version = '119';
var version = '121';
var cacheName = 'pwa-tunime-v' + version;
var appShellFilesToCache = [
// Директория: /images/icons
Expand Down
1 change: 1 addition & 0 deletions watch.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover">
<meta name="description"
content="Смотреть аниме онлайн на сайте Tunime. Открой для себя новые миры с Tunime - лучшим сайтом для просмотра аниме!">
<meta name="page" content="watch" />
<title>TUN Аниме</title>
<link rel="icon" type="image/png" href="/images/icon-web.png" />
<link rel="stylesheet" href="/style/css/main.css" />
Expand Down

0 comments on commit 1fb2a03

Please sign in to comment.