Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web UI refresh #2

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 84 additions & 54 deletions src/webfiles.h

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions web/book.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions web/credits.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
<body>
<nav>
<ul class="menu">
<li><a href="index.html">WiFi Duck</a></li>
<li><a href="settings.html">Settings</a></li>
<li><a href="terminal.html">Terminal</a></li>
<li><a href="credits.html">About</a></li>
<li><a href="index.html"><img src="wifi.svg" width="20" height="20" class="container"><span> WiFi Duck</span></a></li>
<li><a href="settings.html"><img src="settings.svg" width="20" height="20" class="container"><span> Settings</span></a></li>
<li><a href="terminal.html"><img src="terminal.svg" width="20" height="20" class="container"><span> Terminal</span></a></li>
<li><a href="docs.html"><img src="book.svg" width="20" height="20" class="container"><span> Docs</span></a></li>
<li><a href="credits.html" class="menuactive"><img src="info.svg" width="20" height="20" class="container"> About</a></li>
</ul>
</nav>
<div id="status"></div>
Expand Down
279 changes: 279 additions & 0 deletions web/docs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,279 @@
<!--
This software is licensed under the MIT License. See the license file for details.
Source: https://github.com/spacehuhntech/WiFiDuck
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=0.8, minimal-ui">
<meta name="theme-color" content="#36393E">

<meta name="description" content="WiFi Duck">
<title>WiFi Duck | Documentation</title>

<link rel="stylesheet" type="text/css" href="style.css">
<script src="script.js"></script>
<script src="index.js"></script>
</head>
<body>
<nav>
<ul class="menu">
<li><a href="index.html"><img src="wifi.svg" width="20" height="20" class="container"><span> WiFi Duck</span></a></li>
<li><a href="settings.html"><img src="settings.svg" width="20" height="20" class="container"><span> Settings</span></a></li>
<li><a href="terminal.html"><img src="terminal.svg" width="20" height="20" class="container"><span> Terminal</span></a></li>
<li><a href="docs.html" class="menuactive"><img src="book.svg" width="20" height="20" class="container"> Docs</a></li>
<li><a href="credits.html"><img src="info.svg" width="20" height="20" class="container"><span> About</span></a></li>
</ul>
</nav>
<div id="status"></div>
<main>
<h2>Scripting</h2>
<section>
<!--<h1>Documentation</h1>-->
<h3>Basics</h3>
<p>
Keys are separated by a single space.<br>
Everything written in a single line gets pressed and released at the same time.<br>
To write text, use the STRING function.
</p>
<table>
<thead>
<tr>
<th>Example</th>
<th>Explanation</th>
</tr>
</thead>
<tbody>
<tr>
<td>WINDOWS
<br> r
</td>
<td>Type the Windows key and then the r key</td>
</tr>
<tr>
<td>WINDOWS r</td>
<td>Press the Windows key and the r key simultaneously</td>
</tr>
<tr>
<td>STRING WINDOWS r</td>
<td>Write WINDOWS r</td>
</tr>
</tbody>
</table>
</section>
<section>
<h3>Functions</h3>
<table id="ducky-functions-table">
<thead>
<tr>
<th>Command</th>
<th>Example</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>REM</code></td>
<td><code>REM Hello World!</code></td>
<td>Comment</td>
</tr>
<tr>
<td><code>DEFAULTDELAY</code> or <code>DEFAULT_DELAY</code></td>
<td><code>DEFAULTDELAY 200</code></td>
<td>Time in ms between every command</td>
</tr>
<tr>
<td><code>DELAY</code></td>
<td><code>DELAY 1000</code></td>
<td>Delay in ms</td>
</tr>
<tr>
<td><code>STRING</code></td>
<td><code>STRING Hello World!</code></td>
<td>Types the following string</td>
</tr>
<tr>
<td><code>REPEAT</code> or <code>REPLAY</code></td>
<td><code>REPEAT 3</code></td>
<td>Repeats the last command n times</td>
</tr>
<tr>
<td><code>LOCALE</code></td>
<td><code>LOCALE DE</code></td>
<td>Sets the keyboard layout. Available: <code>DE</code>, <code>GB</code>, <code>US</code>, <code>ES</code>, <code>FR</code>, <code>DK</code>, <code>RU</code>, <code>BE</code>, <code>PT</code>, <code>IT</code>, <code>SK</code>, <code>CZ</code>, <code>SI</code>, <code>BG</code>, <code>CA-FR</code>, <code>CH-DE</code>, <code>CH-FR</code>, <code>HU</code>
</td>
</tr>
<tr>
<td><code>KEYCODE</code></td>
<td><code>KEYCODE 0x02 0x04</code></td>
<td>Types a specific key code (modifier, key1[, ..., key6]) in decimal or hexadecimal</td>
</tr>
<tr>
<td><code>LED</code></td>
<td><code>LED 40 20 10</code></td>
<td>Changes the color of the LED in decimal RGB values (0-255)</td>
</tr>
</tbody>
</table>
</section>
<section>
<h3>Standard Keys</h3>
<table>
<thead>
<tr>
<th>Key</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>a</code> - <code>z</code></td>
</tr>
<tr>
<td><code>A</code> - <code>Z</code></td>
</tr>
<tr>
<td><code>0</code> - <code>9</code></td>
</tr>
<tr>
<td><code>F1</code> - <code>F12</code></td>
</tr>
</tbody>
</table>
</section>
<section>
<h3>Modifier Keys</h3>
<table>
<thead>
<tr>
<th>Key</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>CTRL</code> or <code>CONTROL</code></td>
</tr>
<tr>
<td><code>SHIFT</code></td>
</tr>
<tr>
<td><code>ALT</code></td>
</tr>
<tr>
<td><code>WINDOWS</code> or <code>GUI</code></td>
</tr>
</tbody>
</table>
</section>
<section>
<h3>Other Keys</h3>
<table>
<thead>
<tr>
<th>Key</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>ENTER</code></td>
</tr>
<tr>
<td><code>MENU</code> or <code>APP</code></td>
</tr>
<tr>
<td><code>DELETE</code></td>
</tr>
<tr>
<td><code>HOME</code></td>
</tr>
<tr>
<td><code>INSERT</code></td>
</tr>
<tr>
<td><code>PAGEUP</code></td>
</tr>
<tr>
<td><code>PAGEDOWN</code></td>
</tr>
<tr>
<td><code>UP</code> or <code>UPARROW</code></td>
</tr>
<tr>
<td><code>DOWN</code> or <code>DOWNARROW</code></td>
</tr>
<tr>
<td><code>LEFT</code> or <code>LEFTARROW</code></td>
</tr>
<tr>
<td><code>RIGHT</code> or <code>RIGHTARROW</code></td>
</tr>
<tr>
<td><code>TAB</code></td>
</tr>
<tr>
<td><code>END</code></td>
</tr>
<tr>
<td><code>ESC</code> or <code>ESCAPE</code></td>
</tr>
<tr>
<td><code>SPACE</code></td>
</tr>
<tr>
<td><code>PAUSE or BREAK</code></td>
</tr>
<tr>
<td><code>CAPSLOCK</code></td>
</tr>
<tr>
<td><code>NUMLOCK</code></td>
</tr>
<tr>
<td><code>PRINTSCREEN</code></td>
</tr>
<tr>
<td><code>SCROLLLOCK</code></td>
</tr>
</tbody>
</table>
</section>
<section>
<h3>Numpad Keys</h3>
<table>
<thead>
<tr>
<th>Key</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>NUM_0</code> - <code>NUM_9</code></td>
</tr>
<tr>
<td><code>NUM_ASTERIX</code></td>
</tr>
<tr>
<td><code>NUM_ENTER</code></td>
</tr>
<tr>
<td><code>NUM_MINUS</code></td>
</tr>
<tr>
<td><code>NUM_DOT</code></td>
</tr>
<tr>
<td><code>NUM_PLUS</code></td>
</tr>
</tbody>
</table>
</section>
</main>
<footer>
<a href="https://github.com/wasdwasd0105/SuperWiFiDuck" target="_blank">Source</a>
<br><br>
<span id="version"></span><br>
Copyright (c) 2021 Spacehuhn Technologies<br>
<a href="https://spacehuhn.com" target="_blank">spacehuhn.com</a>
</footer>
</body>
</html>
9 changes: 5 additions & 4 deletions web/error404.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
<body>
<nav>
<ul class="menu">
<li><a href="index.html">WiFi Duck</a></li>
<li><a href="settings.html">Settings</a></li>
<li><a href="terminal.html">Terminal</a></li>
<li><a href="credits.html">About</a></li>
<li><a href="index.html"><img src="wifi.svg" width="20" height="20" class="container"><span> WiFi Duck</span></a></li>
<li><a href="settings.html"><img src="settings.svg" width="20" height="20" class="container"><span> Settings</span></a></li>
<li><a href="terminal.html"><img src="terminal.svg" width="20" height="20" class="container"><span> Terminal</span></a></li>
<li><a href="docs.html"><img src="book.svg" width="20" height="20" class="container"><span> Docs</span></a></li>
<li><a href="credits.html"><img src="info.svg" width="20" height="20" class="container"><span> About</span></a></li>
</ul>
</nav>
<div id="status"></div>
Expand Down
Loading