go-websockets-talk/code/static/index.html

36 lines
986 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Go Chat Application</title>
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link rel="stylesheet" type="text/css" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
</head>
2020-09-02 03:37:23 +07:00
<div id="snackbar"></div>
<body>
<div id="modal" class="modal">
<div class="modal-content">
<h1>Enter a username:</h1>
2020-09-02 03:37:23 +07:00
<input type="text" id="nickI" placeholder="Nickname">
<button type="submit" id="nickB">Join </button>
</div>
</div>
<div class="container">
2020-09-02 03:37:23 +07:00
<div class="lhs">
<div class="chat">
<div class="chat-inner">
<input type="text" id="chatI" placeholder="Enter your message">
<button id="chatB">Send </button>
</div>
</div>
<div class="messages" id="messages">
</div>
</div>
2020-09-02 03:37:23 +07:00
<div class="rhs" id="users">
<h3>Online Users</h3>
</div>
</div>
<script src="/js/index.js"></script>
</body>
</html>