From 9f6c98a6403a394f65fa8b63a1235a4c5e0451a7 Mon Sep 17 00:00:00 2001 From: irina-27011987 Date: Thu, 21 May 2026 15:10:41 +0300 Subject: [PATCH 1/4] =?UTF-8?q?Dom1=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 158 +++++++++++++++++++++++++++++++++-------------------- 1 file changed, 98 insertions(+), 60 deletions(-) diff --git a/index.html b/index.html index 6f14ae14aa..d2569cde1e 100644 --- a/index.html +++ b/index.html @@ -1,71 +1,109 @@ - - Проект "Комменты" - - - - -
- +
+ + +
+
- +
+ + + - - + \ No newline at end of file From 93b32ae61fb793b5d3948c2b389f3251fbd77d72 Mon Sep 17 00:00:00 2001 From: irina-27011987 Date: Thu, 21 May 2026 15:34:20 +0300 Subject: [PATCH 2/4] =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=BA=D0=BE=D0=BC?= =?UTF-8?q?=D0=BC=D0=B8=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/index.html b/index.html index d2569cde1e..a628fd2c90 100644 --- a/index.html +++ b/index.html @@ -102,7 +102,6 @@ nameInput.value = ''; commentTextarea.value = ''; } - console.log("It works!"); From ffccca1dee07a4b42e379c2061ab3616ee219113 Mon Sep 17 00:00:00 2001 From: irina-27011987 Date: Sun, 24 May 2026 11:12:52 +0300 Subject: [PATCH 3/4] dom1 --- index.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index a628fd2c90..e24351c8ae 100644 --- a/index.html +++ b/index.html @@ -71,13 +71,12 @@ return; } const currentDate = new Date(); - const formattedDate = currentDate.toLocaleString('ru-RU', { - year: 'numeric', - month: '2-digit', - day: '2-digit', - hour: '2-digit', - minute: '2-digit' - }); +const day = String(currentDate.getDate()).padStart(2, '0'); // День +const month = String(currentDate.getMonth() + 1).padStart(2, '0'); // Месяц (+1, т.к. январь = 0) +const year = String(currentDate.getFullYear()).slice(-2); // Последние 2 цифры года (22) +const hours = String(currentDate.getHours()).padStart(2, '0'); // Часы +const minutes = String(currentDate.getMinutes()).padStart(2, '0'); // Минуты +const formattedDate = `${day}.${month}.${year} ${hours}:${minutes}`; const newCommentHTML = `
  • From 75addc82827f7703601e147fa346bc944983666d Mon Sep 17 00:00:00 2001 From: irina-27011987 Date: Sun, 24 May 2026 11:14:20 +0300 Subject: [PATCH 4/4] dom1 --- index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index e24351c8ae..6a7484ffe3 100644 --- a/index.html +++ b/index.html @@ -71,11 +71,11 @@ return; } const currentDate = new Date(); -const day = String(currentDate.getDate()).padStart(2, '0'); // День -const month = String(currentDate.getMonth() + 1).padStart(2, '0'); // Месяц (+1, т.к. январь = 0) -const year = String(currentDate.getFullYear()).slice(-2); // Последние 2 цифры года (22) -const hours = String(currentDate.getHours()).padStart(2, '0'); // Часы -const minutes = String(currentDate.getMinutes()).padStart(2, '0'); // Минуты +const day = String(currentDate.getDate()).padStart(2, '0'); +const month = String(currentDate.getMonth() + 1).padStart(2, '0'); +const year = String(currentDate.getFullYear()).slice(-2); +const hours = String(currentDate.getHours()).padStart(2, '0'); +const minutes = String(currentDate.getMinutes()).padStart(2, '0'); const formattedDate = `${day}.${month}.${year} ${hours}:${minutes}`; const newCommentHTML = `