This commit is contained in:
2025-02-02 16:43:42 +03:00
parent f1b569a9ec
commit 0803970233
6 changed files with 62 additions and 7 deletions

View File

@@ -7,11 +7,13 @@ html
link(href="css/particles.css" rel="stylesheet")
link(href="css/auth.css" rel="stylesheet")
body
iframe(name="hiddenFrame" style="position:absolute; top:-1px; left:-1px; width:1px; height:1px;")
div(id="tsparticles")
main(class="box")
h2 Вход
form(method="post", action="/api/login")
form(id="loginForm" target="hiddenFrame")
div(class="inputBox")
label(for="username") Ник
input(type="text" name="username" id="username" placeholder="ваш ник на сервере" required=true)
@@ -23,7 +25,8 @@ html
div
button(type="submit" name="" style="float: left;") Войти
a(class="button" href="register" style="float: left;") Регистрация
script(src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer")
script(src="https://cdn.jsdelivr.net/npm/tsparticles@1.34.1/tsparticles.min.js" integrity="sha256-D6LXCdCl4meErhc25yXnxIFUtwR96gPo+GtLYv89VZo=" crossorigin="anonymous")
script(type="text/javascript" src="js/particles.js")
script(type="text/javascript" src="js/login.js")

View File

@@ -8,11 +8,13 @@ html
title Регистрация
body
iframe(name="hiddenFrame" style="position:absolute; top:-1px; left:-1px; width:1px; height:1px;")
div(id="tsparticles")
main(class="box")
h2 Регистрация
form(action="/api/register" method="POST")
form(id="registerForm" target="hiddenFrame")
div(class="inputBox")
label(for="username") Ник
input(type="text" name="username" id="username" placeholder="ваш ник на сервере" required)
@@ -28,5 +30,7 @@ html
input(type="text" name="inviteToken" id="inviteToken" placeholder="код приглашения" required)
button(type="submit" name="" style="float: left;") Зарегистрироваться
a(class="button" href="login" style="float: left;") Войти
script(src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer")
script(src="https://cdn.jsdelivr.net/npm/tsparticles@1.34.1/tsparticles.min.js" integrity="sha256-D6LXCdCl4meErhc25yXnxIFUtwR96gPo+GtLYv89VZo=" crossorigin="anonymous")
script(type="text/javascript" src="js/particles.js")
script(type="text/javascript" src="js/register.js")