Guest User

frontend.html

a guest
Sep 6th, 2018
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.05 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="utf-8">
  5.         <title>WebSockets - Simple chat</title>
  6.  
  7.         <style>
  8.         * { font-family:tahoma; font-size:12px; padding:0px; margin:0px; }
  9.         p { line-height:18px; }
  10.         div { width:500px; margin-left:auto; margin-right:auto;}
  11.         #content { padding:5px; background:#ddd; border-radius:5px; overflow-y: scroll;
  12.                    border:1px solid #CCC; margin-top:10px; height: 160px; }
  13.         #input { border-radius:2px; border:1px solid #ccc;
  14.                  margin-top:10px; padding:5px; width:400px;  }
  15.         #status { width:88px; display:block; float:left; margin-top:15px; }
  16.         </style>
  17.     </head>
  18.     <body>
  19.         <div id="content"></div>
  20.         <div>
  21.             <span id="status">Connecting...</span>
  22.             <input type="text" id="input" disabled="disabled" />
  23.         </div>
  24.  
  25.         <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  26.         <script src="chat-frontend.js"></script>
  27.     </body>
  28. </html>
Advertisement
Add Comment
Please, Sign In to add comment