codingOL

basic chat widget code (thsst2)

Jun 10th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.98 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5. <meta charset="utf-8">
  6. <title>Chat Widget using WebSockets</title>
  7.  
  8. <!-- Customizable section -->
  9. <style>
  10. * { font-family:tahoma; font-size:12px; padding:0px; margin:0px; }
  11. p { line-height:18px; }
  12. div { width:205px; margin-left:auto; margin-right:auto; }
  13.     #content { padding:5px; background:#ddd; border-radius:5px; overflow-y: scroll;
  14.         border:1px solid #CCC; margin-top:10px; height: 160px; }
  15.     #input { border-radius:2px; border:1px solid #ccc;
  16.         margin-top:10px; padding:5px; width:197px; height:50px; }
  17.     #status { width:197px; display:block; float:left; margin-top:15px; }
  18. </style>
  19.  
  20. </head>
  21.  
  22. <body>
  23.  
  24. <!-- Need to place this with the game itself -->
  25. <div id="content"></div>
  26. <div>
  27. <span id="status">Connecting...</span>
  28. <input type="text" id="input" disabled="disabled" />
  29. </div>
  30.  
  31. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  32. <!-- <script src="./chatfrontend.js"></script> -->
  33. </body>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment