From d328acfb9345dea8ca29d6859ac95c197a9d29a5 Mon Sep 17 00:00:00 2001 From: Fedor_Kitanin Date: Thu, 29 Aug 2024 13:43:04 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BD=20=D0=BA?= =?UTF-8?q?=D1=80=D0=B8=D0=B2=D0=BE=D0=B9=20=D0=BF=D1=80=D0=B5=D1=85=D0=BE?= =?UTF-8?q?=D0=B4=20=D0=BD=D0=B0=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=86=D1=83=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20=D0=BD=D0=B0?= =?UTF-8?q?=D0=B6=D0=B0=D1=82=D0=B8=D1=8F=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/HypertextPages/login.nytl.html | 5 ++--- assets/js/login.js | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 assets/js/login.js diff --git a/assets/HypertextPages/login.nytl.html b/assets/HypertextPages/login.nytl.html index 674f42b..56c161e 100644 --- a/assets/HypertextPages/login.nytl.html +++ b/assets/HypertextPages/login.nytl.html @@ -6,18 +6,17 @@ {% WRITE pres.phr.decl.page-login %} - + -{% PUT pass-pres-userinfo pres userinfo %}

{% WRITE pres.phr.decl.enter %}


-
+
diff --git a/assets/js/login.js b/assets/js/login.js new file mode 100644 index 0000000..fd826a6 --- /dev/null +++ b/assets/js/login.js @@ -0,0 +1,14 @@ +document.addEventListener('DOMContentLoaded', function() { + function handleSubmit(event) { + event.preventDefault(); + + const nickname = document.getElementById('nickname').value; + const password = document.getElementById('password').value; + + window.location.href = '/assets/HypertextPages/list-rooms.nytl.html'; + + } + + const form = document.querySelector('form'); + form.addEventListener('submit', handleSubmit); +});