index.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <title>聊天室</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <link rel="stylesheet" type="text/css" media="screen" href="css/style.css" />
  9. <script src="socket.io/socket.io.js"></script>
  10. </head>
  11. <body>
  12. <div class="chat_room">
  13. <div class="list">
  14. <div class="list_1 on" id="all" onclick="char_list(this)">
  15. <div class="img"><img src="" alt=""></div>
  16. <div class="title">公共聊天室</div>
  17. <div class="info"></div>
  18. </div>
  19. </div>
  20. <div class="content" id="all"></div>
  21. <div class="input">
  22. <textarea class="input_content"></textarea>
  23. <input type="button" value="发送" onclick="send(this)">
  24. </div>
  25. <div class="user_list">
  26. <div class="title">用户列表</div>
  27. <div class="list">
  28. </div>
  29. </div>
  30. </div>
  31. <div class="setting" style="display: none;">
  32. <div class="setting_main">
  33. <div class="title">设置</div>
  34. <div class="img"onclick="this.querySelector('input').click()">
  35. <img src="" alt="">
  36. <input type="file" hidden accept="image/gif, image/jpeg,image/png" onchange="changepic(this,document.querySelector('.setting .img img'))">
  37. <span>点击更改头像</span>
  38. </div>
  39. <div class="info">
  40. <span>名称:</span><input type="text" class="name">
  41. </div>
  42. <input type="button" value="确定" class="ok">
  43. </div>
  44. </div>
  45. <script src="js/main.js"></script>
  46. </body>
  47. </html>