master #6
@ -6,11 +6,10 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{% WRITE pres.phr.decl.page-login %}</title>
|
<title>{% WRITE pres.phr.decl.page-login %}</title>
|
||||||
<link rel="stylesheet" href="/assets/css/login.css">
|
<link rel="stylesheet" href="/assets/css/login.css">
|
||||||
|
<script src="/assets/js/login.js" defer></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
{% PUT pass-pres-userinfo pres userinfo %}
|
|
||||||
<div class="form-container">
|
<div class="form-container">
|
||||||
<h1 class="hide-cursor no-select">{% WRITE pres.phr.decl.enter %}</h1>
|
<h1 class="hide-cursor no-select">{% WRITE pres.phr.decl.enter %}</h1>
|
||||||
<form action="/login" method="post" enctype="application/x-www-form-urlencoded">
|
<form action="/login" method="post" enctype="application/x-www-form-urlencoded">
|
||||||
|
14
assets/js/login.js
Normal file
14
assets/js/login.js
Normal file
@ -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);
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user