PIbd-21_Zhirnova_A._E._Inte.../Laba2/LK.html
2023-12-06 18:28:06 +03:00

87 lines
4.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>Elitist</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="./node_modules/bootstrap/dist/js/bootstrap.min.js" type="text/javascript"></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">
<script>
function saveData() {
var lastname = document.getElementById("lastname").value;
var firstname = document.getElementById("firstname").value;
var status = document.getElementById("status").value;
localStorage.setItem("lastname", lastname);
localStorage.setItem("firstname", firstname);
localStorage.setItem("status", status);
alert("Данные успешно сохранены!");
}
function editData() {
var lastname = localStorage.getItem("lastname");
var firstname = localStorage.getItem("firstname");
var status = localStorage.getItem("status");
document.getElementById("lastname").value = lastname;
document.getElementById("firstname").value = firstname;
document.getElementById("status").value = status;
}
</script>
</head>
<body class="LK">
<header>
<nav class="navbar navbar-expand-md navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="./index.html">
<i class="fa-solid fa-microchip"></i>
Elitist
</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-end" id="navbarNav">
<div class="navbar-nav">
<a class="nav-link active" href="./index.html">Главная страница</a>
<a class="nav-link" href="./page2.html">Жанры</a>
<a class="nav-link" href="./page3.html">Бестселлеры</a>
<a class="nav-link" href="./page4.html">О нас</a>
<a class="nav-link" href="./page5.html">Войти</a>
</div>
</div>
</div>
</nav>
</header>
<article class="container-fluid p-2">
<div class="row justify-content-center align-items-center h-75">
<h1 class="text-center">Личный кабинет</h1>
<form class="col-md-6 m-0">
<div class="mb-3">
<label for="lastname" class="form-label">Фамилия</label>
<input type="text" class="form-control" id="lastname" placeholder="Введите вашу фамилию">
</div>
<div class="mb-3">
<label for="firstname" class="form-label">Имя</label>
<input type="text" class="form-control" id="firstname" placeholder="Введите ваше имя">
</div>
<div class="mb-3">
<label for="status" class="form-label">Статус</label>
<select class="form-control" id="status">
<option>Студент</option>
<option>Школьник</option>
<option>Работающий</option>
</select>
</div>
<button class="btn btn-custom d-flex justify-content-center">Сохранить</button>
</form>
</div>
</article>
<footer class="footer mt-auto d-flex flex-shrink-0 justify-content-center align-items-center fixed-bottom">
Жирнова Алена ПИбд-21
</footer>
</body>
</html>