Files
stupidsimcpp/web/index.html
2025-11-07 13:03:36 -05:00

41 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Generator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Generator</h1>
<div id="modeDisplay" class="mode-display">Current Mode: Loading...</div>
<div class="controls">
<button onclick="currentMode === 'terrain' ? refreshTerrain() : refreshImage()" id="refreshBtn">Refresh Image</button>
<button onclick="toggleAutoRefresh()" id="autoRefreshBtn">Start Auto-Refresh (5s)</button>
<button onclick="switchMode()" id="switchModeBtn" style="display: none;">Switch Mode</button>
<button onclick="showStats()" id="statsBtn">Show Performance Stats</button>
<button onclick="clearStats()" id="clearStatsBtn">Clear Stats</button>
</div>
<div class="image-container">
<img id="displayImage" src="./output/display.jxl" alt="Dynamic Image">
</div>
<div id="statsPanel" class="stats-panel" style="display: none;">
<div class="stats-header">
<h3>Performance Statistics</h3>
<button onclick="hideStats()" class="close-btn">&times;</button>
</div>
<div id="statsContent" class="stats-content">
<!-- Stats will be loaded here -->
</div>
</div>
<div id="status" class="status"></div>
</div>
<script src="script.js"></script>
</body>
</html>