front-end

This commit is contained in:
2025-01-23 20:42:55 +03:00
parent 8e269f1a8e
commit 1af97a4db3
16 changed files with 2157 additions and 16 deletions

View File

@@ -1,16 +1,32 @@
html
head
title Личный кабинет
link(href="css/index.css" rel="stylesheet")
script(type="module" src="js/skinview3d.bundle.js")
script(type="module" src="js/skin3d.js")
body
h1 Личный кабинет
p Имя пользователя: #{username}
p Скин:
form(method="post" enctype="multipart/form-data" action="/api/uploadskin")
input(type="file" name="file")
input(type="submit" value="Загрузить")
if can_have_cloak
p Плащ:
form(method="post" enctype="multipart/form-data" action="/api/uploadCape")
input(type="file", name="file")
input(type="submit", value="Загрузить")
a(href="/api/logout") Выйти
iframe(name="hiddenFrame" style="position:absolute; top:-1px; left:-1px; width:1px; height:1px;")
div(class="content-container")
div(class="content")
h1 Личный кабинет
canvas(id="skin_container")
if can_have_cloak
div(class="cape_type")
input(type="radio" id="cape" name="cape_type" value="cape" checked)
label(for="cape") Плащ
|
input(type="radio" id="elytra" name="cape_type" value="elytra" checked="unchecked")
label(for="elytra") Элитры
p Скин:
form(method="post" enctype="multipart/form-data" action="/api/uploadskin" target="hiddenFrame" onsubmit="window.location.reload()")
input(type="file" name="file")
input(type="submit" value="Загрузить")
if can_have_cloak
p Плащ:
form(method="post" enctype="multipart/form-data" action="/api/uploadCape" target="hiddenFrame" onsubmit="window.location.reload()")
input(type="file", name="file")
input(type="submit", value="Загрузить")
button(onclick="window.location.href='/api/logout'" value="Выйти" id="exitButton") Выйти
//- a(href="/api/logout") Выйти