для класса "hero"
- var heroDiv = document.createElement("div");
- heroDiv.className = "hero";
-
- // Создаем элемент
для класса "name"
- var nameDiv = document.createElement("div");
- nameDiv.className = "name";
- nameDiv.innerText = "Кот Саймона";
-
- // Добавляем элементы в нужном порядке
- heroDiv.appendChild(nameDiv);
- link.appendChild(image);
- link.appendChild(heroDiv);
- document.querySelector('.hero-anime > .val').appendChild(link);
-
- image = document.createElement("img");
- image.src = "https://github.com/AN0NCER/resources/blob/main/simons/schlafe.gif?raw=true";
- image.style.position = "absolute";
- image.style.width = "140px";
- image.style.right = "10%";
- image.style.zIndex = "2";
-
- image.style.top = "calc(140px / 2 * -1 + -7px)";
- heroDiv = document.createElement("div");
- heroDiv.style.position = "relative"
- heroDiv.appendChild(image);
- document.querySelector('.player').appendChild(heroDiv);
-
- var parent = document.querySelector('.franchisa-anime > a:first-child');
- if (parent != null) {
- image = document.createElement("img");
- image.src = "https://github.com/AN0NCER/resources/blob/main/simons/schlafe.gif?raw=true";
- image.style.zIndex = "2";
- parent.append(image);
- }
-
- waitForElm('.franchisa-anime > a').then((elm) => {
- var parent = document.querySelector('.franchisa-anime > a:first-child');
- if (parent != null) {
- image = document.createElement("img");
- image.src = "https://github.com/AN0NCER/resources/blob/main/simons/cooc.gif?raw=true";
- image.style.position = "absolute";
- image.style.width = "105px";
- image.style.right = "10px";
- image.style.top = "7px";
- parent.append(image);
- parent = document.querySelector('.franchisa-anime');
- if (parent != null) {
- parent.style.overflowY = "hidden";
- }
- }
- });
- image = document.createElement("img");
- image.style.position = "absolute";
- image.src = "https://github.com/AN0NCER/resources/blob/main/simons/interesant.gif?raw=true";
-
- image.style.width = "106px";
- image.style.right = "calc(50% - 106px / 2)";
- image.style.top = "auto";
- image.style.left = "auto";
- image.style.bottom = "0";
- image.style.zIndex = "9";
- heroDiv = document.createElement("div");
- heroDiv.appendChild(image);
- document.querySelector('.preview').appendChild(heroDiv);
- image = document.createElement("img");
- image.src = "https://github.com/AN0NCER/resources/blob/main/simons/hide.gif?raw=true";
- heroDiv = document.createElement("div");
- heroDiv.className = "slide";
- heroDiv.style.display = "grid";
- heroDiv.style.placeItems = "center";
- heroDiv.style.background = "#e5e8ef";
- heroDiv.style.borderRadius = "3px";
- heroDiv.style.paddingLeft = "20px";
- heroDiv.style.paddingRight = "40px";
- heroDiv.style.maxHeight = "150px";
- heroDiv.appendChild(image);
- document.querySelector('.galery-slider').appendChild(heroDiv);
- });
- }
-}
-
-function simonsleep(ms) {
- return new Promise(resolve => setTimeout(resolve, ms));
-}
-simonmain();
-simonscat_py();
-
-function waitForElm(selector) {
- return new Promise(resolve => {
- if (document.querySelector(selector)) {
- return resolve(document.querySelector(selector));
- }
-
- const observer = new MutationObserver(mutations => {
- if (document.querySelector(selector)) {
- observer.disconnect();
- resolve(document.querySelector(selector));
- }
- });
-
- // If you get "parameter 1 is not of type 'Node'" error, see https://stackoverflow.com/a/77855838/492336
- observer.observe(document.body, {
- childList: true,
- subtree: true
- });
- });
-}
\ No newline at end of file
diff --git a/style/css/settings.css b/style/css/settings.css
index c07851d..79e3266 100644
--- a/style/css/settings.css
+++ b/style/css/settings.css
@@ -693,7 +693,7 @@ body.menuver[data-orientation="90"] .interactive-menu .user-interactive .triangl
}
}
.window-select .window-content, .window-select-mehr .window-content {
- max-height: calc(100vh - env(safe-area-inset-top));
+ max-height: calc(100dvh - env(safe-area-inset-top));
overflow-y: hidden;
}
.window-select .window-content .content-wraper, .window-select-mehr .window-content .content-wraper {
@@ -809,6 +809,74 @@ body.menuver[data-orientation="90"] .interactive-menu .user-interactive .triangl
cursor: pointer;
}
+.window-app-size .window-content {
+ max-height: calc(100dvh - env(safe-area-inset-top));
+ overflow-y: hidden;
+}
+.window-app-size .window-content .content-wraper {
+ display: grid;
+ grid-template-columns: auto;
+ grid-template-rows: auto auto auto;
+ overflow-y: hidden;
+}
+.window-app-size .window-content .content-wraper .window-bar {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 10px;
+}
+.window-app-size .window-content .content-wraper .window-bar .window-title {
+ font-size: 14px;
+}
+.window-app-size .window-content .content-wraper .window-bar .window-close {
+ width: 40px;
+ height: 40px;
+ display: grid;
+ place-items: center;
+ cursor: pointer;
+}
+.window-app-size .window-content .content-wraper .window-bar .window-close svg {
+ fill: #fff;
+ width: 10px;
+}
+.window-app-size .window-content .content-wraper .block-title {
+ font-size: 14px;
+ background: #1f2329;
+ padding: 5px 10px;
+ display: flex;
+ justify-content: space-between;
+}
+.window-app-size .window-content .content-wraper .wrapper-storage {
+ overflow-y: auto;
+ display: flex;
+ flex-direction: column;
+ border-radius: 5px;
+}
+.window-app-size .window-content .content-wraper .list-local-storage,
+.window-app-size .window-content .content-wraper .list-session-storage {
+ background: #203544;
+}
+.window-app-size .window-content .content-wraper .list-local-storage .storage-element,
+.window-app-size .window-content .content-wraper .list-session-storage .storage-element {
+ padding: 5px 10px;
+ display: grid;
+ grid-template-columns: 1fr auto;
+}
+.window-app-size .window-content .content-wraper .list-local-storage .storage-element div,
+.window-app-size .window-content .content-wraper .list-session-storage .storage-element div {
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+ padding-right: 20px;
+}
+.window-app-size .window-content .content-wraper .window-footer {
+ color: rgba(255, 255, 255, 0.6);
+ display: grid;
+ place-items: center;
+ padding: 8px 10px;
+ cursor: pointer;
+}
+
@media screen and (min-width: 900px) {
.select-wraper .select-control,
.select-checkbox-wraper .select-control {
diff --git a/style/css/verifyaction.css b/style/css/verifyaction.css
new file mode 100644
index 0000000..2112f2e
--- /dev/null
+++ b/style/css/verifyaction.css
@@ -0,0 +1,198 @@
+.windowed {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ z-index: 300;
+ color: #FFF;
+ font-family: "Manrope";
+ display: block;
+ transition: 0.3s ease-in-out;
+}
+
+.windowed-right {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ font-family: "Manrope";
+ display: block;
+ transition: 0.3s ease-in-out;
+ z-index: 300;
+ color: #FFF;
+}
+
+.windowed.hide,
+.windowed-right.hide {
+ display: none;
+}
+.windowed.hide .hide-window,
+.windowed-right.hide .hide-window {
+ opacity: 0;
+}
+.windowed .hide-window,
+.windowed-right .hide-window {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ opacity: 1;
+ transition: 0.3s ease-in-out;
+ background: rgba(255, 255, 255, 0.2);
+ -webkit-backdrop-filter: blur(5px);
+ backdrop-filter: blur(5px);
+ cursor: pointer;
+}
+
+.windowed-right .window-content {
+ background: #101318;
+ border-radius: 0;
+ position: fixed;
+ top: 0;
+ right: 0;
+ left: 0;
+ bottom: 0;
+ flex-direction: column;
+ overscroll-behavior: contain;
+ overflow-y: auto;
+ transition: 0.3s ease-in-out;
+ transform: translateX(100%);
+}
+.windowed-right .window-content .content-wraper {
+ padding-top: 20px;
+ padding-left: calc(env(safe-area-inset-left) + 20px);
+ padding-right: calc(env(safe-area-inset-right) + 20px);
+ padding-bottom: max(20px, env(safe-area-inset-bottom));
+ display: grid;
+}
+.windowed-right .window-content.hide {
+ display: none;
+}
+
+.windowed .window-content {
+ background: #101318;
+ border-radius: 5px 5px 0px 0px;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ display: flex;
+ right: 0;
+ flex-direction: column;
+ overflow-y: auto;
+ transition: 0.3s ease-in-out;
+ transform: translateY(100%);
+}
+.windowed .window-content .content-wraper {
+ padding-left: calc(env(safe-area-inset-left) + 20px);
+ padding-right: calc(env(safe-area-inset-right) + 20px);
+ padding-top: 20px;
+ padding-bottom: max(20px, env(safe-area-inset-bottom));
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+.windowed .window-content.hide {
+ display: none;
+}
+
+@media screen and (min-width: 900px) {
+ .windowed .window-content .content-wraper {
+ max-width: 900px;
+ margin: 0 auto;
+ width: 100%;
+ }
+ .windowed-right .window-content {
+ left: auto;
+ max-width: 400px;
+ width: 100%;
+ }
+}
+.window-verify-action .window-content {
+ max-height: calc(100dvh - env(safe-area-inset-top));
+ overflow-y: hidden;
+ height: 100dvh;
+ border-radius: 0px;
+}
+.window-verify-action .window-content .content-wraper {
+ display: grid;
+ grid-template-columns: auto;
+ grid-template-rows: 1fr auto;
+ overflow-y: hidden;
+ height: 100%;
+}
+.window-verify-action .window-content .content-wraper .window-access-icon {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+.window-verify-action .window-content .content-wraper .window-access-icon svg {
+ fill: #fff;
+ opacity: 0.4;
+}
+.window-verify-action .window-content .content-wraper .window-access-footer {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+.window-verify-action .window-content .content-wraper .window-access-footer .detail-access {
+ text-align: center;
+ color: rgba(255, 255, 255, 0.4);
+ margin-bottom: 10px;
+}
+.window-verify-action .window-content .content-wraper .window-access-footer .access-swiper,
+.window-verify-action .window-content .content-wraper .window-access-footer .button-access-cancel {
+ background: #203544;
+ height: 50px;
+ overflow: hidden;
+ border-radius: 5px;
+ text-transform: uppercase;
+ font-weight: bold;
+ font-size: 11px;
+}
+.window-verify-action .window-content .content-wraper .window-access-footer .access-swiper {
+ display: flex;
+ padding-left: 5px;
+ padding-right: 5px;
+ align-items: center;
+ position: relative;
+}
+.window-verify-action .window-content .content-wraper .window-access-footer .access-swiper .pin {
+ position: relative;
+ display: flex;
+ height: 44px;
+ width: 65px;
+ background: #3587E6;
+ justify-content: center;
+ align-items: center;
+ border-radius: 6px;
+ cursor: pointer;
+ z-index: 9;
+}
+.window-verify-action .window-content .content-wraper .window-access-footer .access-swiper span {
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ display: grid;
+ place-items: center;
+ opacity: 0.4;
+}
+.window-verify-action .window-content .content-wraper .window-access-footer .button-access-cancel {
+ display: grid;
+ place-items: center;
+ cursor: pointer;
+}
+
+@media screen and (max-height: 400px) {
+ .window-verify-action .window-content .content-wraper {
+ grid-template-rows: 1fr;
+ align-items: end;
+ }
+ .window-verify-action .window-content .content-wraper .window-access-icon {
+ display: none;
+ }
+}
\ No newline at end of file
diff --git a/style/css/watch.css b/style/css/watch.css
index 3a362f8..7e4ff65 100644
--- a/style/css/watch.css
+++ b/style/css/watch.css
@@ -1529,6 +1529,45 @@ footer .studio span {
opacity: 0.3;
}
+:root {
+ --sab: env(safe-area-inset-bottom);
+}
+
+.popup {
+ position: fixed;
+ left: 0;
+ right: 0;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ z-index: 11;
+}
+.popup .popup-content {
+ background: #2393F1;
+ color: #fff;
+ font-family: Manrope;
+ font-weight: bold;
+ padding: 10px 30px;
+ font-size: 11px;
+ border-radius: 10px;
+ max-width: 300px;
+ box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
+ border: 1px solid rgba(255, 255, 255, 0.368627451);
+ position: relative;
+}
+.popup .popup-content img {
+ position: absolute;
+ top: -23px;
+ width: 30px;
+ right: 20px;
+}
+.popup.popup-menu-none {
+ bottom: -40px;
+}
+.popup.popup-menu-visible {
+ bottom: calc(env(safe-area-inset-bottom) - 40px);
+}
+
.card-anime {
min-width: 195px;
margin-right: 10px;
diff --git a/style/settings.scss b/style/settings.scss
index f53eef1..28e43cc 100644
--- a/style/settings.scss
+++ b/style/settings.scss
@@ -360,6 +360,7 @@ footer {
@import './phone_menu';
@import './windowed';
@import './settings/slectwindow';
+@import './settings/storagewindow';
@media screen and (min-width: 900px) {
diff --git a/style/settings/_slectwindow.scss b/style/settings/_slectwindow.scss
index 8259118..d6bf2bb 100644
--- a/style/settings/_slectwindow.scss
+++ b/style/settings/_slectwindow.scss
@@ -1,6 +1,6 @@
.window-select, .window-select-mehr {
.window-content {
- max-height: calc(100vh - env(safe-area-inset-top));
+ max-height: calc(100dvh - env(safe-area-inset-top));
overflow-y: hidden;
.content-wraper {
diff --git a/style/settings/_storagewindow.scss b/style/settings/_storagewindow.scss
new file mode 100644
index 0000000..639915e
--- /dev/null
+++ b/style/settings/_storagewindow.scss
@@ -0,0 +1,78 @@
+.window-app-size {
+ .window-content {
+ max-height: calc(100dvh - env(safe-area-inset-top));
+ overflow-y: hidden;
+
+ .content-wraper {
+ display: grid;
+ grid-template-columns: auto;
+ grid-template-rows: auto auto auto;
+ overflow-y: hidden;
+
+ .window-bar {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 10px;
+
+ .window-title {
+ font-size: 14px;
+ }
+
+ .window-close {
+ width: 40px;
+ height: 40px;
+ display: grid;
+ place-items: center;
+ cursor: pointer;
+
+ svg {
+ fill: #fff;
+ width: 10px;
+ }
+ }
+ }
+
+ .block-title {
+ font-size: 14px;
+ background: #1f2329;
+ padding: 5px 10px;
+ display: flex;
+ justify-content: space-between;
+ }
+
+ .wrapper-storage {
+ overflow-y: auto;
+ display: flex;
+ flex-direction: column;
+ border-radius: 5px;
+ }
+
+ .list-local-storage,
+ .list-session-storage {
+ background: #203544;
+
+ .storage-element {
+ padding: 5px 10px;
+ display: grid;
+ grid-template-columns: 1fr auto;
+
+ div {
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+ padding-right: 20px;
+ }
+ }
+ }
+
+ .window-footer {
+ color: rgba(255, 255, 255, 0.60);
+ display: grid;
+ place-items: center;
+ padding: 8px 10px;
+ cursor: pointer;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/style/verifyaction.scss b/style/verifyaction.scss
new file mode 100644
index 0000000..6b66934
--- /dev/null
+++ b/style/verifyaction.scss
@@ -0,0 +1,107 @@
+@import './windowed';
+
+.window-verify-action {
+ .window-content {
+ max-height: calc(100dvh - env(safe-area-inset-top));
+ overflow-y: hidden;
+ height: 100dvh;
+ border-radius: 0px;
+
+ .content-wraper {
+ display: grid;
+ grid-template-columns: auto;
+ grid-template-rows: 1fr auto;
+ overflow-y: hidden;
+ height: 100%;
+
+ .window-access-icon {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ svg {
+ fill: #fff;
+ opacity: .4;
+ }
+ }
+
+ .window-access-footer {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+
+ .detail-access {
+ text-align: center;
+ color: rgba($color: #fff, $alpha: 0.4);
+ margin-bottom: 10px;
+ }
+
+ .access-swiper,
+ .button-access-cancel {
+ background: #203544;
+ height: 50px;
+ overflow: hidden;
+ border-radius: 5px;
+ text-transform: uppercase;
+ font-weight: bold;
+ font-size: 11px;
+
+ }
+
+ .access-swiper {
+ display: flex;
+ padding-left: 5px;
+ padding-right: 5px;
+ align-items: center;
+ position: relative;
+
+ .pin {
+ position: relative;
+ display: flex;
+ height: 44px;
+ width: 65px;
+ background: #3587E6;
+ justify-content: center;
+ align-items: center;
+ border-radius: 6px;
+ cursor: pointer;
+ z-index: 9;
+ }
+
+ span {
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ display: grid;
+ place-items: center;
+ opacity: .4;
+ }
+ }
+
+ .button-access-cancel {
+ display: grid;
+ place-items: center;
+ cursor: pointer;
+ }
+ }
+ }
+ }
+}
+
+@media screen and (max-height: 400px) {
+ .window-verify-action {
+ .window-content {
+
+ .content-wraper {
+ grid-template-rows: 1fr;
+ align-items: end;
+
+ .window-access-icon {
+ display: none;
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/style/watch.scss b/style/watch.scss
index 89b37c8..094db92 100644
--- a/style/watch.scss
+++ b/style/watch.scss
@@ -1032,6 +1032,7 @@ footer {
@import './window/translation';
@import './window/score';
@import './watch/download';
+@import './popup';
.card-anime {
min-width: 195px;
diff --git a/sw.js b/sw.js
index 9c44621..1f36f5c 100644
--- a/sw.js
+++ b/sw.js
@@ -1,4 +1,4 @@
-var version = '166';
+var version = '167';
var cacheName = 'pwa-tunime-v' + version;
var appShellFilesToCache = [
// Директория: /images/icons
@@ -35,6 +35,7 @@ var appShellFilesToCache = [
"/javascript/library/swiper-bundle.min.js",
"/javascript/library/swiper-bundle.min.js.map",
// Директория: /javascript/modules
+ "/javascript/modules/ActionVerify.js",
"/javascript/modules/AnimeCard.js",
"/javascript/modules/funcitons.js",
"/javascript/modules/header.js",
@@ -74,6 +75,7 @@ var appShellFilesToCache = [
"/javascript/pages/search/mod_searchState.js",
// Директория: /javascript/pages/settings
"/javascript/pages/settings/mod_select.js",
+ "/javascript/pages/settings/mod_storage.js",
// Директория: /javascript/pages/user
"/javascript/pages/user/mod_history.js",
// Директория: /javascript/pages/watch
@@ -116,6 +118,7 @@ var appShellFilesToCache = [
"/style/css/search.css",
"/style/css/settings.css",
"/style/css/user.css",
+ "/style/css/verifyaction.css",
"/style/css/watch.css",
// Директория: /style/fonts
"/style/fonts/Inter.ttf",
diff --git a/watch.html b/watch.html
index 7afae7b..e645053 100644
--- a/watch.html
+++ b/watch.html
@@ -385,11 +385,11 @@
-
Франшиза
+
Франшиза
-