93 lines
4.1 KiB
HTML
93 lines
4.1 KiB
HTML
|
<html lang="ru">
|
||
|
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>Моя страница</title>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<script type="module" src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||
|
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
|
||
|
<link href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet" />
|
||
|
<link rel="stylesheet" href="style.css">
|
||
|
</head>
|
||
|
|
||
|
<body class="h-100 d-flex flex-column">
|
||
|
<header>
|
||
|
<nav class="navbar navbar-expand-md">
|
||
|
<div class="container-fluid">
|
||
|
<a class="navbar-brand" href="/">
|
||
|
<img src="Images/icon.jpg" alt="logo" width="40">
|
||
|
</a>
|
||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
|
||
|
data-bs-target="#navbarNav"
|
||
|
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||
|
<span class="navbar-toggler-icon"></span>
|
||
|
</button>
|
||
|
<div class="navbar-collapse collapse justify-content-start" id="navbarNav">
|
||
|
<div class="navbar-nav">
|
||
|
<a class="nav-link" href="home.html">Главная</a>
|
||
|
<a class="nav-link" href="messages.html">Сообщения</a>
|
||
|
<a class="nav-link" href="settings.html">Настройки</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</nav>
|
||
|
</header>
|
||
|
<main class="container-fluid p-2">
|
||
|
<h1 class=" text-center font-weight-bold">Добавление аккаунта</h1>
|
||
|
<div class="text-center">
|
||
|
<img id="image-preview" src="https://via.placeholder.com/200" class="rounded rounded-circle"
|
||
|
alt="placeholder">
|
||
|
</div>
|
||
|
<form id="items-form" class="needs-validation" novalidate>
|
||
|
<div class="mb-2">
|
||
|
<label for="nickname" class="form-label">Никнейм</label>
|
||
|
<input id="nickname" name="nickname" class="form-control" type="text"
|
||
|
required>
|
||
|
</div>
|
||
|
<div class="mb-2">
|
||
|
<label class="form-label" for="email">Почта</label>
|
||
|
<input id="email" name="email" class="form-control" type="email"
|
||
|
required>
|
||
|
</div>
|
||
|
<div class="mb-2">
|
||
|
<label class="form-label" for="password">Пароль</label>
|
||
|
<div class="d-flex flex-row input-group">
|
||
|
<input id="password" name="password" class="form-control" type="password" required>
|
||
|
<a href ="#" class =" input-group-text password-control" onclick="return showPassword(this)"></a>
|
||
|
<script>
|
||
|
function showPassword(target) {
|
||
|
const input = document.getElementById("password");
|
||
|
if (input.getAttribute("type") === "password") {
|
||
|
target.classList.add("view");
|
||
|
input.setAttribute("type", "text");
|
||
|
} else {
|
||
|
target.classList.remove("view");
|
||
|
input.setAttribute("type", "password");
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
</script>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="mb-2">
|
||
|
<label class="form-label" for="image">Изображение</label>
|
||
|
<input id="image" type="file" name="image" class="form-control" accept="image/*">
|
||
|
</div>
|
||
|
<a href="admin-page.html" class="btn btn-secondary">Назад</a>
|
||
|
<button type="submit" class="btn btn-primary">Сохранить</button>
|
||
|
</form>
|
||
|
</main>
|
||
|
|
||
|
<script type="module">
|
||
|
import validation from "./js/validation";
|
||
|
import { linesPageForm, showPassword } from "./js/lines"
|
||
|
|
||
|
document.addEventListener('DOMContentLoaded', () => {
|
||
|
validation();
|
||
|
linesPageForm();
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
|
||
|
|
||
|
</html>
|