generated from Labyricorn/labyricorn-project-template
89 lines
2.8 KiB
HTML
89 lines
2.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Aquarium — XZBT Reference Exhibit</title>
|
|
<link rel="stylesheet" href="../shared/exhibit-shell.css">
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
|
|
<div class="exhibit">
|
|
<header class="exhibit-header">
|
|
<h1>Aquarium</h1>
|
|
<span class="subtitle">Reef tank — live simulation</span>
|
|
<span class="status" id="contract-status">standalone</span>
|
|
</header>
|
|
|
|
<main class="stage">
|
|
<canvas id="tank-canvas" aria-label="Aquarium view"></canvas>
|
|
</main>
|
|
|
|
<aside class="panel">
|
|
<section>
|
|
<h2>Stocking</h2>
|
|
<div class="control">
|
|
<label for="species-select">Species</label>
|
|
<select id="species-select"></select>
|
|
</div>
|
|
<div class="control">
|
|
<label for="population-range">
|
|
<span>Population</span>
|
|
<span class="readout" id="population-readout">12 fish</span>
|
|
</label>
|
|
<input type="range" id="population-range" min="1" max="40" step="1" value="12">
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>Environment</h2>
|
|
<div class="control">
|
|
<label for="lighting-select">Lighting</label>
|
|
<select id="lighting-select"></select>
|
|
</div>
|
|
<div class="control">
|
|
<label for="current-range">
|
|
<span>Water current</span>
|
|
<span class="readout" id="current-readout">35%</span>
|
|
</label>
|
|
<input type="range" id="current-range" min="0" max="1" step="0.01" value="0.35">
|
|
</div>
|
|
<div class="control">
|
|
<label for="temperature-range">
|
|
<span>Temperature</span>
|
|
<span class="readout" id="temperature-readout">23.0 °C</span>
|
|
</label>
|
|
<input type="range" id="temperature-range" min="0" max="1" step="0.01" value="0.5">
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>Actions</h2>
|
|
<div class="button-row">
|
|
<button id="feed-button" type="button">Feed</button>
|
|
<button id="startle-button" type="button">Startle</button>
|
|
<button id="clean-button" type="button">Clean glass</button>
|
|
</div>
|
|
<div class="toggle-row" style="margin-top:12px">
|
|
<span>Simulation</span>
|
|
<button id="pause-button" type="button" aria-pressed="false">Pause</button>
|
|
</div>
|
|
</section>
|
|
</aside>
|
|
|
|
<footer class="exhibit-footer">
|
|
<span class="announcement-label">Tank</span>
|
|
<span class="announcement-text is-idle" id="announcement">Tank settled — awaiting instruction.</span>
|
|
</footer>
|
|
</div>
|
|
|
|
<script src="../shared/contract-core.js"></script>
|
|
<script src="../shared/exhibit-shell.js"></script>
|
|
<script src="../shared/host-transport.js"></script>
|
|
<script src="exhibit.js"></script>
|
|
<script src="contract-adapter.js"></script>
|
|
<script src="boot.js"></script>
|
|
</body>
|
|
</html>
|