index.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!DOCTYPE html>
  2. <html lang="de">
  3. <head>
  4. <title>Chat</title>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="stylesheet" type="text/css" href="css/app.css" />
  8. <link rel="stylesheet" type="text/css" href="css/theme.css" />
  9. </head>
  10. <script src="/socket.io/socket.io.js" type="application/javascript"></script>
  11. <script src="https://code.jquery.com/jquery-1.11.1.js" type="application/javascript"></script>
  12. <script src="js/main.js" type="application/javascript"></script>
  13. <body>
  14. <div id="chat-host"></div>
  15. </body>
  16. <script id="chat-login-template" type="text/x-custom-template">
  17. <div class="login">
  18. <span class="loginError"></span>
  19. <form id="chat-login-form" action="">
  20. <div class="inputWrapper usernameWrapper">
  21. <label>Nickname:</label>
  22. <input class="username" autocomplete="off" />
  23. </div>
  24. <div class="inputWrapper passwordWrapper" style="display: none">
  25. <label>Passwort:</label>
  26. <input class="password" type="password" autocomplete="off" />
  27. </div>
  28. <button>Chat betreten</button>
  29. </form>
  30. </div>
  31. </script>
  32. <script id="chat-template" type="text/x-custom-template">
  33. <div class="main">
  34. <ul class="messages"></ul>
  35. <div class="userlistWrapper">
  36. <h2>Benutzer im Chat</h2>
  37. <ul class="userlist"></ul>
  38. </div>
  39. </div>
  40. </script>
  41. <script id="chat-admin-template" type="text/x-custom-template">
  42. <div class="main">
  43. <ul class="messages"></ul>
  44. <div class="userlistWrapper">
  45. <h2>Benutzer im Chat</h2>
  46. <ul class="userlist"></ul>
  47. <h2>Gesperrte IPs</h2>
  48. <ul class="bannedlist"></ul>
  49. </div>
  50. </div>
  51. </script>
  52. <script id="chat-message-form-template" type="text/x-custom-template">
  53. <form class="messageForm" action="">
  54. <textarea class="messageField" />
  55. <button>Abschicken</button>
  56. </form>
  57. </script>
  58. <script id="chat-kick-template" type="text/x-custom-template">
  59. <div class="login">
  60. <div class="loginError">Sie wurden aus dem Chat entfernt.</div>
  61. </div>
  62. </script>
  63. </html>