/
Centermant
/
web-nodejs
Обзор
Документация
Войти
/
Centermant
/
web-nodejs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
public/lab8/task3/index.html
110 строк
4 KB
Centermant
feat(lab8 final)
13 ноя 2025, 09:17
13 ноя 2025, 09:17
734379b
Код
Авторство
О чём код?
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Задание 8.3: Результаты матчей ЧМ-2022</title> <link rel="stylesheet" href="/css/styles_lab.css"> <style> .generate-section { margin-bottom: 30px; padding: 20px; border-radius: 15px; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); } .matches-table { width: 100%; border-collapse: collapse; font-family: 'Exo 2', sans-serif; color: #ccccff; margin-top: 20px; } .matches-table th, .matches-table td { padding: 12px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.1); word-break: break-word; } .matches-table th { background-color: rgba(0, 0, 0, 0.2); font-weight: 600; color: #ffffff; font-family: 'Orbitron', sans-serif; text-transform: uppercase; letter-spacing: 1px; } .team1-wins { background-color: rgba(52, 152, 219, 0.3) !important; } .team2-wins { background-color: rgba(46, 204, 113, 0.3) !important; } .draw { background-color: rgba(241, 196, 15, 0.3) !important; color: #000000 !important; } .score { font-weight: bold; font-size: 1.1em; } .loading { text-align: center; padding: 40px; color: #a0a0ff; font-family: 'Orbitron', sans-serif; } .error { color: #ff6b6b; padding: 10px; background-color: rgba(220, 53, 69, 0.1); border-radius: 8px; margin-top: 15px; display: none; } .date-group { background-color: rgba(100, 100, 255, 0.2); font-weight: bold; font-family: 'Orbitron', sans-serif; } </style> </head> <body> <div class="wrapper"> <div class="header"> <h1>ЗАДАНИЕ 8.3: РЕЗУЛЬТАТЫ МАТЧЕЙ ЧМ-2022</h1> </div> <div class="container"> <section class="generate-section"> <h2 class="title">Генерация данных</h2> <button type="button" class="btn-primary" onclick="generateResults()">Сгенерировать JSON результатов</button> <div id="generationResult" class="result" style="display: none; margin-top: 15px;"></div> </section> <section class="table-section"> <h2 class="title">Результаты матчей</h2> <button type="button" class="btn-secondary" onclick="loadMatchesData()">Загрузить данные</button> <div id="errorContainer" class="error"></div> <div id="loadingContainer" class="loading" style="display: none;">Загрузка данных...</div> <table id="matchesTable" class="matches-table"> <thead> <tr> <th>Группа</th> <th>Дата</th> <th>Время</th> <th>Команда 1</th> <th>Итоговый счет</th> <th>Команда 2</th> <th>Стадион</th> </tr> </thead> <tbody id="matchesTableBody"> </tbody> </table> </section> </div> </div> <script src="script.js" defer></script> </body> </html>