Skip to content

Commit

Permalink
fix demo
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime committed Sep 14, 2023
1 parent ea3435c commit 905131d
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 199 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
cache: "pnpm"
- run: pnpm install
- run: pnpm build
- run: pnpm -C demo build
- run: pnpm -C demo build --base "/webnect/"
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v1
with:
Expand Down
19 changes: 7 additions & 12 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="module" src="src/main.ts"></script>
<title>webnect demo</title>
</head>

<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>

<marquee id="annoying" behavior="alternate">WebUSB not found</marquee>

<div id="plugItIn">
Expand Down Expand Up @@ -40,12 +38,9 @@ <h3>

<fieldset id="pairedDevices" hidden>
<legend>
<h3>
Paired Devices
</h3>
<h3>Paired Devices</h3>
</legend>
<div id="pairedDeviceList">
</div>
<div id="pairedDeviceList"></div>
</fieldset>

</div>
Expand All @@ -54,14 +49,14 @@ <h3>
<legend>
<h2>Camera</h2>
</legend>
<button id="videoFsBtn">FullscreenVideo</button>
<select id="videoMode">
<button id="videoFsBtn">Fullscreen Video</button>
<select id="videoModeOpt">
<option value="depth">Depth</option>
<option value="visible">Visible</option>
<option value="ir">Infrared</option>
</select>
<div>FPS: <span id="videoFps"></span></div>
<label><input type="checkbox" id="flipCb"></input>Flip</label>
<div id="videoFps"></div>
<label><input type="checkbox" id="videoFlipCb"></input>Flip</label>
<div class="canvasBack">
<canvas id="videoCanvas" width="640" height="480"></canvas>
</div>
Expand Down
Loading

0 comments on commit 905131d

Please sign in to comment.