index.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr">
  4. <!-- This file is part of the Civetweb project,
  5. http://code.google.com/p/civetweb -->
  6. <head>
  7. <title>Civetweb chat server</title>
  8. <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
  9. <link type="text/css" rel="stylesheet" href="style.css"/>
  10. <script src="jquery.js"></script>
  11. <script src="main.js"></script>
  12. </head>
  13. <body>
  14. <div id="header">
  15. <div id="logo"></div>
  16. <div class="rounded infobox help-message" id="motd">
  17. Chat room implemented using
  18. <a href="http://code.google.com/p/civetweb" target="_blank">Civetweb</a>
  19. embeddable web server.
  20. This application was written for educational purposes demonstrating
  21. how web interface could be decoupled from the business logic. Not a
  22. single line of HTML is generated by the server, instead, server
  23. gives data to the client in JSON format.
  24. </div>
  25. </div>
  26. <div>
  27. <div id="middle">
  28. <div><center><span id="error" class="rounded"></span><center></div>
  29. <div id="menu">
  30. <div class="menu-item left-rounded menu-item-selected"
  31. name="chat">Chat</div>
  32. <div class="menu-item left-rounded" name="settings">Settings</div>
  33. </div>
  34. <div id="content" class="rounded">
  35. <div id="chat" class="main">
  36. <div class="chat-window">
  37. <span class="top-rounded chat-title">Main room</span>
  38. <div class="bottom-rounded chat-content">
  39. <div class="message-list" id="mml">
  40. </div>
  41. <input type="text" size="40" class="message-input"></input>
  42. <span class="help-message">
  43. Type your message here and press enter</span>
  44. </div>
  45. </div>
  46. </div>
  47. <div id="settings" class="hidden main">
  48. <div>
  49. <span class="top-rounded chat-title">Settings</span>
  50. <div class="bottom-rounded chat-content">
  51. <table>
  52. <tr><td>Max messages to display:</td><td>blah blah</td></tr>
  53. <tr><td>Text color:</td><td>blah blah</td></tr>
  54. </table>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <div id="footer">
  61. Copyright &copy; 2004-2010 by Sergey Lyubka
  62. </div>
  63. </body>
  64. </html>