TextDungeon.io 2.0
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.
 
 
 
 

125 lines
4.5 KiB

  1. <!DOCTYPE html>
  2. <html lang="en" dir="ltr">
  3. <head>
  4. <meta charset="utf-8">
  5. <!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
  6. <!--<meta http-equiv="Content-Security-Policy" content="default-src 'self'">-->
  7. <title>Text Dungeon</title>
  8. <link rel="stylesheet" type="text/css" href="/webjars/Semantic-UI/2.4.1/semantic.min.css">
  9. <link rel="stylesheet" type="text/css" href="css/style.css">
  10. <script>src = "/webjars/Semantic-UI/2.4.1/semantic.min.js"</script>
  11. </head>
  12. <body>
  13. <!-- filmgrain.js dep -->
  14. <canvas id="canvas"></canvas>
  15. <!-- logo -->
  16. <div id="div-logo" class="ui center aligned container">
  17. <img id="img-logo" src="imgs/logo.png" alt="logo">
  18. </div>
  19. <!-- login -->
  20. <div id="div-login-parent" class="ui center aligned container">
  21. <div id="div-login" class="ui center aligned container basic segment">
  22. <div class="ui left attached rail">
  23. <div class="ui basic segment">
  24. <!-- seg -->
  25. <div class="ui large inverted vertical pointing menu" style="background: transparent;">
  26. <a class="active item" onclick="initValidateLogin();">
  27. <span style="color: #007373; font-weight: bold;">Enter</span>
  28. </a>
  29. <a class="item" onclick="initEmptyForm();">
  30. <span style="color: #005151;">Create</span>
  31. </a>
  32. <a class="item" onclick="initAboutPage();">
  33. <span style="color: #005151;">About</span>
  34. </a>
  35. </div>
  36. <!-- seg -->
  37. </div>
  38. </div>
  39. <input id="name" type="text" name="name" placeholder="Name">
  40. <div id="label-name" class="ui left pointing label"
  41. style="position: fixed; display: none;">
  42. </div>
  43. <br>
  44. <input id="password" type="password" name="password" placeholder="Password">
  45. <div id="label-password" class="ui left pointing label"
  46. style="position: fixed; display: none;">
  47. </div>
  48. <br>
  49. <input id="btn-login" type="button" onclick="initValidateLogin();">
  50. </div>
  51. </div>
  52. <!-- FORM PAGE -->
  53. <div id="page-form-menu" class="ui inverted attached stackable menu" style="display: none; background-color: #152e38">
  54. <div class="ui container">
  55. <a id="btn-save" class="item" onclick="initValidateSave();">
  56. <i class="save icon"></i> Save
  57. </a>
  58. <div id="btn-settings" class="ui simple dropdown item" style="display: none;">
  59. Settings
  60. <i class="dropdown icon"></i>
  61. <div class="menu">
  62. <a id="btn-resetpass" class="item" onclick="initPasswordReset();"><i class="key icon"></i> Reset
  63. Password</a>
  64. <a id="btn-delete" class="item" onclick="initDelete();"><i class="trash icon"></i> Delete</a>
  65. </div>
  66. </div>
  67. <div class="right borderless item" style="padding-left: 0px;">
  68. <div class="ui input"><input id="name-form" type="text" placeholder="Name"
  69. style="background-color: whitesmoke;"></div>
  70. <a id="btn-logout" class="ui borderless item" onclick="initLogout();"
  71. style="display: none; padding-bottom: 3px; padding-top: 3px;">Logout</a>
  72. <div class="ui input"><input id="password-form" type="password" placeholder="Password"
  73. style="background-color: whitesmoke;"></div>
  74. </div>
  75. </div>
  76. </div>
  77. <div id="page-form" class="ui container" style="display: none;">
  78. <!-- tab container -->
  79. <div class="ui inverted top attached tabular menu wrapped" style="margin-top: 1%;">
  80. <a id="tab1" class="active item" style="border: none; background-color: #3d3e3f;">
  81. Tab
  82. </a>
  83. <div id="div-helper-tabs" class="right menu">
  84. <a class="item" onclick="initAddTab()">
  85. <i class="add icon"></i> New Tab
  86. </a>
  87. </div>
  88. </div>
  89. <div class="ui bottom attached segment" style="background-color: whitesmoke;">
  90. <!-- form segment -->
  91. <div class="ui form">
  92. <div class="field">
  93. <textarea spellcheck="false" id="textarea" style="background-color: whitesmoke; color: black;border: none;"></textarea>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. <script src="js/main.js"></script>
  99. <script src="js/filmgrain.js"></script>
  100. </body>
  101. </html>