Skip to content

Commit

Permalink
refactor format
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoSquirrels committed Jul 11, 2024
1 parent 7db3ec3 commit 6d1c7bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
24 changes: 5 additions & 19 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,37 +30,23 @@ <h2>Settings</h2>
</p>
<p>
<label for="interval">Joystick Request Intarval:</label>
<input
type="number"
id="settings-interval"
name="interval"
placeholder="125"
value="125"
/>ms
<input type="number" id="settings-interval" name="interval" placeholder="125" value="125" />ms
</p>
<p>
<label for="buttons">Show buttons:</label>
<input
type="checkbox"
id="settings-buttons"
name="buttons"
checked
/>
<input type="checkbox" id="settings-buttons" name="buttons" checked />
</p>
</section>
<section>
<h2>References</h2>
<p>
Joystick: send POST to <code>/joystick?p=aaff</code> (<code>aa</code>:
00~FF angle, <code>ff</code>: 00~FF force) at intervals.
Joystick: send POST to <code>/joystick?p=aaff</code> (<code>aa</code>: 00~FF angle, <code>ff</code>: 00~FF
force) at intervals.
</p>
<p>Buttons: send POST to <code>/a</code>, <code>/b</code>.</p>
<p>
More details:
<a
href="https://github.com/TwoSquirrels/virtual-gamepad#readme"
target="_blank"
rel="noopener noreferrer"
<a href="https://github.com/TwoSquirrels/virtual-gamepad#readme" target="_blank" rel="noopener noreferrer"
>TwoSquirrels/virtual-gamepad - GitHub</a
>
</p>
Expand Down
1 change: 0 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import nipplejs from "nipplejs";
import "sanitize.css";
import "./style.css";

const elms = {
Expand Down
2 changes: 2 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url(sanitize.css);

:root {
width: 0;
color: #fffc;
Expand Down

0 comments on commit 6d1c7bf

Please sign in to comment.