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

38 lines
1.1 KiB
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>
<div id="snackbar">Warning: This is some message.</div>
<body>
<div id="modal" class="modal">
<div class="modal-content">
<h1>Enter a username:</h1>
<div class="chat">
<input type="text" id="nickI" placeholder="Nickname">
<button type="submit" id="nickB"><i class="icon ion-android-arrow-forward"></i></button>
</input>
</div>
</div>
</div>
<div class="container">
<div class="messages">
<div id="messages">
</div>
</div>
<div class="users" id="users">
<h3>Online Users</h3>
</div>
<div class="chat primary">
<input type="text" id="chatI" placeholder="Enter your message">
<button type="submit" id="chatB"><i class="icon ion-android-arrow-forward"></i></button>
</input>
</div>
</div>
<script src="/js/index.js"></script>
</body>
</html>