From f3eedee26ff5ca10a9f45a556eb93caa68c145f6 Mon Sep 17 00:00:00 2001 From: Kirill Pet Date: Fri, 2 May 2025 16:56:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/{_gp-function.js => gp-function.js} | 0 subscription-first.html | 53 +++++++++--- subscription-last.html | 25 +++++- subscription-order.html | 83 +++++++++++++------ 4 files changed, 122 insertions(+), 39 deletions(-) rename assets/js/{_gp-function.js => gp-function.js} (100%) diff --git a/assets/js/_gp-function.js b/assets/js/gp-function.js similarity index 100% rename from assets/js/_gp-function.js rename to assets/js/gp-function.js diff --git a/subscription-first.html b/subscription-first.html index 1381936..7a49ec9 100644 --- a/subscription-first.html +++ b/subscription-first.html @@ -49,7 +49,6 @@ -
-
+
+ +
@@ -484,7 +503,7 @@ @@ -510,11 +529,6 @@
- - -
- -
@@ -660,13 +674,32 @@ + fun.modalFormOpen('.form-open'); + fun.closeModalForm('.modal-form__close'); + fun.closeModalForm('.modal-form__button-close'); + + let modal = document.querySelector('.modal'); + modal.onclick = function (eventModal) { + let thisTarget = eventModal.target; + + if (thisTarget.classList.contains('modal')) { + thisTarget.classList.remove('active'); + + if (!thisTarget.querySelector('.modal-map.active')) { + thisTarget.querySelector('.modal-form.active').classList.remove('active'); + }else{ + thisTarget.querySelector('.modal-map.active').classList.remove('active'); + } + } + } + diff --git a/subscription-last.html b/subscription-last.html index 6a19da5..e9c7e64 100644 --- a/subscription-last.html +++ b/subscription-last.html @@ -537,7 +537,7 @@ @@ -549,7 +549,7 @@ @@ -727,13 +727,32 @@ - diff --git a/subscription-order.html b/subscription-order.html index 4d6d66c..9808338 100644 --- a/subscription-order.html +++ b/subscription-order.html @@ -49,7 +49,6 @@ -
-
- - +
-
-
- - - -
+ - +
@@ -298,18 +304,35 @@
-

Мои адреса

- -
-

Курьер

-

Не заполнено

+
+
+
+ +
+
- +

Барон

-
-
@@ -847,8 +870,16 @@
+ + + \ No newline at end of file