remote-login.html 1.5 KB

1234567891011121314151617
  1. <!doctype html>
  2. <html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
  3. <meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'">
  4. <title>登录远程 · 夭夭</title><link rel="stylesheet" href="remote-login.css"></head>
  5. <body><main>
  6. <header><img src="icon.png" alt="" width="56" height="56"><h1>登录远程夭夭</h1>
  7. <p>连接另一台电脑上的夭夭服务器。登录后本机无需 Hermes,也不运行 Web 服务,窗口直接使用远程夭夭;管理员账号同时会把这台 Mac 注册为可远程控制的桌面主机。</p></header>
  8. <form id="login-form" aria-label="远程登录">
  9. <label>服务器地址<input id="server" name="server" required autocomplete="off" spellcheck="false" placeholder="192.168.1.10:15300" inputmode="url"></label>
  10. <label>用户名<input id="username" name="username" required autocomplete="username" autocapitalize="none" spellcheck="false"></label>
  11. <label>密码<input id="password" name="password" type="password" required autocomplete="current-password"></label>
  12. <button type="submit" id="submit" class="primary">登录</button>
  13. <p id="error" role="alert" hidden></p>
  14. <p id="status" role="status" aria-live="polite" hidden></p>
  15. </form>
  16. <footer><button type="button" id="use-local">改为作为服务器运行</button></footer>
  17. </main><script src="remote-login.js"></script></body></html>