/
Cooolprogrammers
/
web-nodejs-labs
Обзор
Документация
Войти
/
Cooolprogrammers
/
web-nodejs-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
public/lab7/task2/index.html
210 строк
5 KB
darkvoid6@mail.ru
ЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫ
18 дек 2025, 07:59
18 дек 2025, 07:59
f2c4f06
Код
Авторство
О чём код?
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8"> <title>Задание 2 — Форма и API</title> <style> body { margin: 0; font-family: 'Courier New', monospace; background: #0a0a0a; display: flex; justify-content: center; align-items: center; min-height: 100vh; overflow: hidden; color: #00ff41; position: relative; } .matrix-rain { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent 95%, rgba(0, 255, 65, 0.1)); z-index: 1; pointer-events: none; } .container { position: relative; background: rgba(0, 20, 0, 0.85); border-radius: 0; border: 1px solid #00ff41; padding: 35px 40px; width: 380px; z-index: 2; box-shadow: 0 0 30px rgba(0, 255, 65, 0.3); border-left: 4px solid #00ff41; border-right: 4px solid #00ff41; } h1 { text-align: center; font-size: 1.6rem; font-weight: 700; color: #00ff41; margin-bottom: 24px; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 0 10px #00ff41; } form { display: flex; flex-direction: column; gap: 18px; } label { display: flex; flex-direction: column; text-align: left; font-size: 1rem; color: #00cc33; font-weight: 600; letter-spacing: 1px; } input, select { font-family: 'Courier New', monospace; font-size: 1rem; padding: 12px; border-radius: 0; border: 1px solid #006600; background: rgba(0, 30, 0, 0.8); color: #00ff41; margin-top: 6px; transition: all 0.25s ease; } input:focus, select:focus { border-color: #00ff41; background: rgba(0, 40, 0, 0.9); box-shadow: 0 0 15px rgba(0, 255, 65, 0.5); outline: none; } .inline { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; } input[type="radio"], input[type="checkbox"] { accent-color: #00ff41; } button { background: #003300; color: #00ff41; border: 1px solid #00ff41; padding: 14px; font-size: 1rem; font-weight: 600; border-radius: 0; cursor: pointer; margin-top: 15px; transition: all 0.2s ease; letter-spacing: 2px; text-transform: uppercase; position: relative; overflow: hidden; } button:hover { background: #00ff41; color: #000; box-shadow: 0 0 20px rgba(0, 255, 65, 0.8); transform: translateY(-2px); } button::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent, rgba(0, 255, 65, 0.1), transparent); transform: rotate(45deg); animation: matrix-shimmer 3s infinite; } @keyframes matrix-shimmer { 0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); } 100% { transform: translateX(100%) translateY(100%) rotate(45deg); } } .project-field { display: none; animation: matrix-fadeIn 0.4s ease; } @keyframes matrix-fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .matrix-glow { text-shadow: 0 0 5px #00ff41; } </style> </head> <body> <div class="matrix-rain"></div> <div class="container"> <h1 class="matrix-glow">👁️ Задание 2 — Система данных</h1> <form action="/api/lab7/task2/makeProjectStatus" method="get"> <label>Фамилия: <input name="lastname" placeholder="Введите фамилию" required> </label> <label>Имя: <input name="firstname" placeholder="Введите имя" required> </label> <label>Отчество: <input name="surname" placeholder="Введите отчество" required> </label> <label>Пол:</label> <div class="inline"> <label><input type="radio" name="gender" value="male" checked> Мужской</label> <label><input type="radio" name="gender" value="female"> Женский</label> </div> <label>Факультет: <select name="faculty"> <option>ФИТ</option> <option>ФКН</option> <option>ФЭА</option> </select> </label> <label class="inline"> <input type="checkbox" id="project" name="project" onclick="toggleProject()"> Участие в проекте </label> <div id="projectNameField" class="project-field"> <label>Название проекта: <input name="projectName" placeholder="Введите название проекта"> </label> </div> <button type="submit">💾 Внести в систему</button> </form> </div> <script> function toggleProject() { const field = document.getElementById('projectNameField'); field.style.display = document.getElementById('project').checked ? 'block' : 'none'; } </script> </body> </html>