diff options
| author | Marin Ivanov <[email protected]> | 2024-08-21 02:32:42 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2024-08-21 02:32:42 +0300 |
| commit | 51dc545d5c6e9dc3846d735c7766277b689f5f6e (patch) | |
| tree | 8362ade25459afc97237b3692dfa575be6621b7c | |
| parent | 4b32d0bab72927da861d072991fd57f68a32b48f (diff) | |
add noscript command interface
| -rw-r--r-- | app.js | 2 | ||||
| -rw-r--r-- | index.html | 12 | ||||
| -rw-r--r-- | style.css | 7 |
3 files changed, 18 insertions, 3 deletions
@@ -3,7 +3,7 @@ let isLoading = 0; let loading = (val) => { isLoading = val; - loader.$cls(isLoading ? "" : "hidden"); + loader.$cls(isLoading ? "" : "hide"); } loader.$click(() => loading(0)); @@ -10,8 +10,18 @@ <div class="container"> <header><big>🛠️ WebIF 2.0</big></header> <div id="app"></div> + <noscript> + <main> + <form action="/cgi-bin/cmd" method="post" enctype="text/plain"> + <textarea name="-">--- KEEP THIS, WRITE COMMANDS BELOW THE LINE --- +</textarea> + <br> + <input type="submit" value="Send"> + </form> + </main> + </noscript> </div> - <div id="loader" title="click to hide"> + <div id="loader" title="click to hide" class="hide"> <div> <div class="loadspin"></div> <p>Loading...</p> @@ -126,7 +126,7 @@ table td.title { align-content: center; background: rgba(0,0,0,0.05); } -#loader.hidden { +#loader.hide { display: none; } @@ -169,3 +169,8 @@ table td.title { .center { text-align: center; } + +noscript textarea { + min-width: 400px; + min-height: 300px; +} |
