44 lines
1.8 KiB
HTML
44 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>BridgeSwarm – Whiteboard</title>
|
||
<link rel="stylesheet" href="../shared/theme.css">
|
||
<link rel="stylesheet" href="../shared/chrome.css">
|
||
<link rel="stylesheet" href="style.css">
|
||
<script src="../shared/boot.js"></script>
|
||
<script>if (BridgeSwarmExamples.guardFileProtocol('whiteboard/')) { /* blocked */ }</script>
|
||
</head>
|
||
<body>
|
||
<div class="bs-page bs-page--wide">
|
||
<a class="bs-back" href="../">← Examples</a>
|
||
<p class="bs-brand">BridgeSwarm</p>
|
||
<h1 class="bs-title">Whiteboard</h1>
|
||
<p class="bs-lede">Draw together over a topic. Strokes sync in real time.</p>
|
||
<p class="bs-status" id="status">Waiting for extension…</p>
|
||
|
||
<div class="bs-section">
|
||
<div class="bs-row">
|
||
<input type="text" id="topic" placeholder="Topic" value="bridge-swarm-whiteboard">
|
||
<button class="primary" id="btnJoin">Join</button>
|
||
<button class="danger" id="btnLeave" disabled>Leave</button>
|
||
<button class="secondary" id="btnClear" disabled>Clear</button>
|
||
</div>
|
||
<div class="bs-toolbar" id="tools" hidden>
|
||
<label class="tool-label">Color <input type="color" id="color" value="#e7ecf3"></label>
|
||
<label class="tool-label">Size <input type="range" id="width" min="1" max="24" value="3"></label>
|
||
<span class="bs-meta" id="widthLabel">3px</span>
|
||
</div>
|
||
<div class="bs-meta" id="peers">Peers: 0</div>
|
||
<div class="bs-meta" id="publicKey">Your public key: (join to generate)</div>
|
||
</div>
|
||
|
||
<div class="bs-stage canvas-wrap">
|
||
<canvas id="canvas" width="800" height="500"></canvas>
|
||
</div>
|
||
</div>
|
||
<script src="app.js"></script>
|
||
</body>
|
||
</html>
|