mirror of
https://github.com/ParkerTenBroeck/automata.git
synced 2026-06-06 21:24:06 -04:00
117 lines
No EOL
4.2 KiB
HTML
117 lines
No EOL
4.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
<title>Automata</title>
|
|
|
|
<link rel="icon" type="image/x-icon" href="icon.jpg">
|
|
<link href="style.css" rel="stylesheet">
|
|
<<<<<<< HEAD
|
|
<script src="./index-V5P5DPZO.js" type="module" crossorigin></script></head>
|
|
=======
|
|
<script src="./index-QK27BUL6.js" type="module" crossorigin></script></head>
|
|
>>>>>>> eb06fb8ed0a3ef1c768499be755e173710dc93ef
|
|
|
|
<body>
|
|
<div class="centered" id="center_text">
|
|
<p style="font-size:16px">
|
|
Loading…
|
|
</p>
|
|
<div class="lds-dual-ring"></div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="app" style="display:none" id="app">
|
|
<section>
|
|
<section>
|
|
<div id="graph" class="graph"></div>
|
|
</section>
|
|
|
|
<div class="vSplit" style="--split-default: 20%" title="Drag to resize canvas width"></div>
|
|
|
|
<section class="flexCol gap marginTop">
|
|
<div class="flexCenter sidePadding gap">
|
|
<button id="themeToggle" class="btn btn-blue" title="Toggle light/dark">
|
|
🌙 Dark
|
|
</button>
|
|
<button class="btn btm-grey" style="position: relative" id="shareBtn" type="button">
|
|
Share
|
|
<span class="share-toast" id="shareToast">
|
|
Copied to clipboard
|
|
</span>
|
|
</button>
|
|
</div>
|
|
<div class="flexCenter sidePadding">
|
|
<select id="exampleSelect" class="ex-select">
|
|
<option value="" selected disabled>Choose an example…</option>
|
|
</select>
|
|
</div>
|
|
<div class="hSplit styleOnly" title="Drag to resize canvas height"></div>
|
|
|
|
<div class="flexCenter sidePadding" style="font-size: calc(16px);font-weight: bold;color: var(--fg-1)">
|
|
<span style="margin-right: 0.5em;">Status: </span><span style="color: var(--fg-2)" id="simulationStatus">N/A</span>
|
|
</div>
|
|
<div class="flexCenter sidePadding">
|
|
<input id="machineInput" type="text" class="test-input" placeholder="Enter machine input…" />
|
|
</div>
|
|
|
|
</section>
|
|
</section>
|
|
|
|
<div class="hSplit" style="--split-default: 50%" title="Drag to resize canvas height"></div>
|
|
|
|
<div class="flexCol">
|
|
<div class="controls" style="background: var(--bg-0)">
|
|
<button id="togglePhysics" class="btn btn-red btn-toggle active" title="Toggle physics layout">
|
|
Physics: ON
|
|
</button>
|
|
|
|
<button id="resetLayout" class="btn btn-grey" title="Re-enable physics on nodes and reset layout">
|
|
Reset Layout
|
|
</button>
|
|
|
|
<span class="spacer"></span>
|
|
|
|
<button id="reloadSim" class="btn btn-blue" title="Stop and Reload simulation">
|
|
⟲ Reload
|
|
</button>
|
|
<button id="clearSim" class="btn btn-red" title="Stop and Clear simulation">
|
|
✖ Clear
|
|
</button>
|
|
|
|
|
|
<button id="stepSim" class="btn btn-yellow" title="Advance one step">
|
|
⏭ Step
|
|
</button>
|
|
<button id="playPauseSim" class="btn btn-green" title="Run / pause simulation">
|
|
▶ Play
|
|
</button>
|
|
|
|
<label class="speed">
|
|
Speed
|
|
<input id="speedSim" type="range" min="1" max="60" value="1" />
|
|
<span id="speedSimLabel">10x</span>
|
|
</label>
|
|
</div>
|
|
<div class="hSplit styleOnly" title="Drag to resize canvas height"></div>
|
|
|
|
<div style="height:100%">
|
|
<div class="vscroll">
|
|
<div id="editor" class="editor"></div>
|
|
</div>
|
|
|
|
<div class="vSplit" style="--split-default: 40%" title="Drag to resize terminal/editor width"></div>
|
|
|
|
<div id="terminal" class="terminal"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html> |