fix
This commit is contained in:
40
templates/game.html
Normal file
40
templates/game.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Капитал & Рынок - Игра</title>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="screen active">
|
||||
<div class="header">
|
||||
<a href="lobby.html" class="back-button" onclick="return confirmExit()">←</a>
|
||||
<div class="logo-container">
|
||||
<img src="logo.png" alt="Капитал & Рынок" class="logo">
|
||||
</div>
|
||||
<span id="game-month">Месяц 1</span>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<!-- Остальной код игрового экрана (табы, карточки и т.д.) -->
|
||||
<!-- Используем тот же HTML из предыдущей версии, но разбиваем на отдельные страницы -->
|
||||
<!-- Полный код смотри в предыдущем сообщении -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="js/main.js"></script>
|
||||
<script src="js/game.js"></script>
|
||||
<script>
|
||||
// Подтверждение выхода из игры
|
||||
function confirmExit() {
|
||||
return confirm('Вы уверены, что хотите выйти из игры? Текущий прогресс может быть потерян.');
|
||||
}
|
||||
|
||||
// Инициализация игры
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
initGame();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user