You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
3.9 KiB

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <!-- Required meta tags -->
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <!-- Bootstrap CSS -->
  8. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
  9. <link rel="stylesheet" href="css/style.css">
  10. <link rel="stylesheet" href="css/dark-theme.css">
  11. <title>gogame</title>
  12. </head>
  13. <body class="dark-theme">
  14. <div class="container">
  15. <div class="row" style="margin-top:20%;">
  16. <div class="col-lg-4"></div>
  17. <div class="col-lg-4">
  18. <h3>gogame</h3>
  19. <div class="card">
  20. <ul class="nav nav-tabs" id="myTab" role="tablist">
  21. <li class="nav-item">
  22. <a class="nav-link active" id="login-tab" data-toggle="tab" href="#login" role="tab" aria-controls="login" aria-selected="true">Login</a>
  23. </li>
  24. <li class="nav-item">
  25. <a class="nav-link" id="register-tab" data-toggle="tab" href="#register" role="tab" aria-controls="register" aria-selected="false">Register</a>
  26. </li>
  27. </ul>
  28. <div class="card-body">
  29. <div class="tab-content" id="myTabContent">
  30. <div class="tab-pane fade show active" id="login" role="tabpanel" aria-labelledby="login-tab">
  31. <h5 class="card-title">Login</h5>
  32. <hr>
  33. <p class="card-text">
  34. <label for="exampleInputEmail1">Email address</label>
  35. <input type="email" class="form-control" id="loginEmail" placeholder="Enter email">
  36. <br>
  37. <label for="exampleInputPassword1">Password</label>
  38. <input type="password" class="form-control" id="loginPassword" placeholder="Password">
  39. <div onclick="login()" class="btn btn-primary float-right">Login</div>
  40. </p>
  41. <div id="loginErr"></div>
  42. </div>
  43. <div class="tab-pane fade" id="register" role="tabpanel" aria-labelledby="register-tab">
  44. <h5 class="card-title">Register</h5>
  45. <hr>
  46. <p class="card-text">
  47. <label for="email">Email address</label>
  48. <input type="email" class="form-control" id="registerEmail" placeholder="Enter email">
  49. <br>
  50. <label for="name">Name</label>
  51. <input type="text" class="form-control" id="registerName" placeholder="Name">
  52. <br>
  53. <label for="password">Password</label>
  54. <input type="password" class="form-control" id="registerPassword" placeholder="Password">
  55. <div onclick="register()" class="btn btn-primary float-right">Register</div>
  56. </p>
  57. <div id="registerErr"></div>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <!-- Optional JavaScript -->
  66. <!-- jQuery first, then Popper.js, then Bootstrap JS -->
  67. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  68. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
  69. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
  70. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  71. <script src="constants.js"></script>
  72. <script src="index.js"></script>
  73. </body>
  74. </html>