/
Extrap
/
Games_site
Обзор
Документация
Войти
/
Extrap
/
Games_site
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
snake.html
44 строки
1 KB
Extrap
result
27 янв 2026, 13:42
27 янв 2026, 13:42
1f4c493
Код
Авторство
О чём код?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="css/snake.css"> <script defer src="js/snake.js"></script> <link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'> <title>Игра "Змейка"</title> </head> <body> <header> <div class="return-to-main"> <button><a href="index.html"> <i class='bx bx-sm bx-left-arrow-alt'></i>Вернуться</a></button> </div> </header> <section class="game-container"> <div id="score-display">Очки: 0</div> <canvas width="400" height="400" id="game"></canvas> </section> <!-- Попап для начала игры --> <div id="start-popup" class="popup"> <div class="popup-content"> <h2>Начать игру?</h2> <button id="start-button">Начать</button> </div> </div> <!-- Попап для завершения игры --> <div id="game-over-popup" class="popup"> <div class="popup-content"> <h2>Игра окончена!</h2> <p id="score"></p> <button id="restart-button">Перезапустить</button> </div> </div> </body> </html>