/
erioxis
/
web-nodejs
Обзор
Документация
Войти
/
erioxis
/
web-nodejs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
public/lab7/task2/index.html
93 строки
5 KB
erioxis
lab11fix
15 дек 2025, 23:21
15 дек 2025, 23:21
70dc7ba
Код
Авторство
О чём код?
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Задание 7.2: Регистрация и API</title> <link rel="stylesheet" href="/css/main.css"> </head> <body> <div class="wrapper"> <div class="header"> <h1>ЗАДАНИЕ 7.2: РЕГИСТРАЦИЯ И API</h1> </div> <div class="container"> <section class="form-section"> <h2 class="title">Форма Регистрации</h2> <form id="registrationForm"> <div class="form-group"> <label for="lastname">Фамилия:</label> <input type="text" id="lastname" name="lastname" required> </div> <div class="form-group"> <label for="firstname">Имя:</label> <input type="text" id="firstname" name="firstname" required> </div> <div class="form-group"> <label for="surname">Отчество:</label> <input type="text" id="surname" name="surname" required> </div> <div class="form-group"> <label>Пол:</label> <div class="radio-group"> <label><input type="radio" name="gender" value="male" required> Мужской</label> <label><input type="radio" name="gender" value="female" required> Женский</label> </div> </div> <div class="form-group"> <label for="faculty">Факультет:</label> <select id="faculty" name="faculty" required> <option value="">Выберите...</option> <option value="Прикладной информатики">Прикладной информатики</option> <option value="Экономики">Экономики</option> <option value="Прогула пар">Прогула пар</option> </select> </div> <div class="form-group"> <div class="checkbox-group"> <input type="checkbox" id="projectParticipation" name="projectParticipation" value="true"> <label for="projectParticipation">Участие в проекте</label> </div> </div> <div class="form-group"> <label for="projectName">Наименование проекта:</label> <input type="text" id="projectName" name="projectName"> </div> <button type="button" class="btn-primary" onclick="savePerson()">Сохранить</button> </form> </section> <section class="table-section"> <h2 class="title">Зарегистрированные Люди</h2> <table id="peopleTable"> <thead> <tr> <th>Выбрать</th> <th>Фамилия</th> <th>Имя</th> <th>Отчество</th> <th>Пол</th> <th>Факультет</th> <th>Участие в проекте</th> <th>Наименование проекта</th> <th>Удалить</th> </tr> </thead> <tbody id="peopleTableBody"> </tbody> </table> </section> <div"> <button type="button" class="btn-primary" onclick="makeInitials()">Получить инициалы</button> <button type="button" class="btn-primary" onclick="makeProjectStatus()">Получить статус проекта</button> </div> <div id="initialsResult" class="result" style="display: none;"></div> <div id="statusResult" class="result" style="display: none;"></div> </div> </div> <script src="script.js" defer></script> </body> </html>