/
Extrap
/
Games_site
Обзор
Документация
Войти
/
Extrap
/
Games_site
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
2048.html
41 строка
1 KB
Extrap
result
27 янв 2026, 13:42
27 янв 2026, 13:42
1f4c493
Код
Авторство
О чём код?
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="./css/2048.css"> <link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'> <title>2048</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> <div class="container-game"> <div id="score-display">Очки: 0</div> <canvas id="myCanvas" width="400" height="400"></canvas> </div> <!-- Попап для начала игры --> <div id="start-popup" class="popup"> <div class="popup-content"> <h2>Размерность поля</h2> <input type="number" id="myNumber" min="1" max="16" value="4"> <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> <script src="js/2048.js"></script> </html>