Something went wrong. Try again.
honestly just guess what it does. You're probably right.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> <title>tsbutt</title> <link rel="stylesheet" href="style.css"> </head> <body> <main id="app"> <header> <h1>tsbutt</h1> <button id="rescan" type="button" class="ghost">Rescan</button> <button id="settings-btn" type="button" class="ghost icon-btn" aria-label="Open settings">⚙︎</button> <div id="status-pill" class="pill pill-off" role="status">connecting…</div> </header>
<div id="banner" class="banner hidden"></div>
<nav id="mode-tabs" role="tablist" aria-label="Control mode"> <button id="tab-direct" class="tab active" role="tab" aria-selected="true" type="button">Direct</button> <button id="tab-pattern" class="tab" role="tab" aria-selected="false" type="button">Pattern</button> <button id="tab-freehand" class="tab" role="tab" aria-selected="false" type="button">Freehand</button> </nav>
<div id="views"> <!-- Direct control: one row per vibrator on every connected device. Rendered by app.js. --> <section id="view-direct" aria-label="Direct control"> <div id="device-list"></div> </section>
<!-- Pattern mode: transport + one editable waveform per vibrator. Rows are rendered by app.js. --> <section id="view-pattern" class="hidden" aria-label="Pattern"> <div class="card"> <div class="transport"> <button id="pat-play" type="button">▶ Play</button> <button id="pat-restart" type="button">↻ Restart</button> <button id="pat-pause" type="button">⏸ Pause</button> <button id="pat-stop" type="button">■ Stop</button> </div> <div class="loop-row"> <label for="pat-loop">Loop length</label> <input id="pat-loop" type="number" min="0.5" max="60" step="0.5" value="4"> <span class="muted">seconds</span> </div> </div> <div id="pattern-rows"></div> </section>
<!-- Freehand mode: vibrators as shaded rings on a canvas; edit their positions and rings, then drive them by touch. Canvas content is rendered by app.js. --> <section id="view-freehand" class="hidden" aria-label="Freehand"> <div class="card freehand-bar"> <div class="submode"> <button id="fh-edit" class="tab active" type="button">Edit</button> <button id="fh-play" class="tab" type="button">Play</button> </div> <p class="muted hint" id="fh-hint-edit"> Drag a point to move it, the ring edge to resize it, and the top handle to change how intensity falls off with distance. </p> <p class="muted hint hidden" id="fh-hint-play"> Touch and hold (or click and hold), then drag: vibrators ringed under the point vibrate — closer to a point means stronger. </p> </div> <div id="freehand-wrap"> <svg id="freehand-canvas" xmlns="http://www.w3.org/2000/svg"> <defs id="fh-defs"></defs> <g id="fh-points"></g> <circle id="fh-selection" r="10" visibility="hidden"></circle> </svg> <div id="fh-key" class="hidden" aria-label="Vibrator color key"></div> </div> </section> </div>
<details id="log-details"> <summary>Status log</summary> <pre id="log"></pre> </details> </main>
<!-- Settings panel: opened from the gear in the top bar. --> <div id="settings-overlay" class="hidden"> <section class="card settings-panel" role="dialog" aria-modal="true" aria-label="Settings"> <div class="settings-head"> <h2>Settings</h2> <button id="settings-close" type="button" class="ghost icon-btn" aria-label="Close settings">✕</button> </div> <label class="settings-label" for="endpoint">WebSocket endpoint</label> <p class="muted"> WebSocket endpoint of the buttplug server. Empty = this page's own server. Example: <code>ws://localhost:12345</code> — Intiface Central running on this machine. </p> <input id="endpoint" type="text" spellcheck="false" autocapitalize="off" placeholder="same as this page" aria-label="WebSocket endpoint"> <div class="row"> <button id="endpoint-apply" type="button">Connect</button> <button id="endpoint-reset" type="button" class="ghost">Use default</button> </div> </section> </div>
<!-- Global safety control: fixed to the bottom of the screen in every view, always reachable, always first in the tab order after it. --> <section id="estop-dock"> <button id="estop" type="button" class="danger">EMERGENCY STOP</button> </section>
<script type="module" src="app.js"></script> </body></html>