index.html 2.42 KB
Newer Older
Sheng committed
1 2 3 4 5 6
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title> WebSSH </title>
    <link href="static/img/favicon.png" rel="icon" type="image/png">
Sheng committed
7 8 9
    <link href="static/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="static/css/xterm.min.css" rel="stylesheet" type="text/css"/>
    <link href="static/css/fullscreen.min.css" rel="stylesheet" type="text/css"/>
Sheng committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23
    <style>
      .row {
        margin-top: 20px;
        margin-bottom: 10px;
      }

      .container {
        margin-top: 20px;
      }

    </style>
  </head>
  <body>
    <div class="container">
Sheng committed
24 25 26
      <form id="connect" action="" type="post" enctype="multipart/form-data">
        <div class="row">
          <div class="col">
Sheng committed
27
            <label for="Hostname">Hostname</label>
Sheng committed
28 29 30
            <input class="form-control" type="text" name="hostname" value="">
          </div>
          <div class="col">
Sheng committed
31
            <label for="Port">Port</label>
Sheng committed
32 33 34 35 36
            <input class="form-control" type="text" name="port" value="">
          </div>
        </div>
        <div class="row">
          <div class="col">
Sheng committed
37
            <label for="Username">Username</label>
Sheng committed
38 39 40
            <input class="form-control" type="text" name="username" value="">
          </div>
          <div class="col">
Sheng committed
41
            <label for="Username">Private Key</label>
Sheng committed
42 43 44 45 46
            <input class="form-control" type="file" name="privatekey" value="">
          </div>
        </div>
        <div class="row">
          <div class="col">
Sheng committed
47
            <label for="Password">Password</label>
Sheng committed
48 49 50
            <input class="form-control" type="password" name="password" placeholder=""  value="">
          </div>
          <div class="col">
Sheng committed
51 52
            If Private Key is chosen, password will be used to decrypt the Private Key if it is encrypted, otherwise used as the password of username.
          </div>
Sheng committed
53
        </div>
Sheng committed
54 55
        {% module xsrf_form_html() %}
        <button type="submit" class="btn btn-primary">Connect</button>
Sheng committed
56
      </form>
Sheng committed
57 58 59 60

    </div>

    <div class="container">
61
      <div id="status" style="color: red;"></div>
Sheng committed
62 63 64
      <div id="terminal"></div>
    </div>

Sheng committed
65 66 67 68 69
    <script src="static/js/jquery.min.js"></script>
    <script src="static/js/popper.min.js"></script>
    <script src="static/js/bootstrap.min.js"></script>
    <script src="static/js/xterm.min.js"></script>
    <script src="static/js/fullscreen.min.js"></script>
Sheng committed
70 71 72
    <script src="static/js/main.js"></script>
  </body>
</html>