chookchat/client-web/index.html

45 lines
2.2 KiB
HTML
Raw Normal View History

2024-11-05 20:35:10 +11:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2024-11-23 18:10:56 +11:00
<title>Chookchat</title>
2024-11-05 20:35:10 +11:00
<link type="text/css" rel="stylesheet" href="index.css">
2024-11-23 18:10:56 +11:00
<link type="text/css" rel="stylesheet" href="gradient.css">
2024-11-05 20:35:10 +11:00
<link rel="shortcut icon" type="image/jpg" href="favicon.ico"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
2024-11-23 18:10:56 +11:00
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
2024-11-05 20:35:10 +11:00
</head>
2024-11-23 18:10:56 +11:00
<body class="gradient">
2024-11-05 20:35:10 +11:00
<div id="login">
<div class="section">
<div class="box">
2024-11-23 18:10:56 +11:00
<h3>Chookchat</h3>
2024-11-05 20:35:10 +11:00
<input type="text" id="username" placeholder="Username"><br>
<input type="password" id="password" placeholder="Password"><br>
<button class="bluebutton" onclick="connect()">Log in</button>
<button class="greenbutton" onclick="register()">Register</button>
<button class="redbutton" onclick="showConfig()">Show Server Config</button>
<div id="serverStatus"></div>
</div>
<div class="box" style="display: none;" id="serverconfig">
<input type="text" id="serverUrl" value="bobcompass.online" placeholder="Server URL"><br>
<input type="text" id="serverPort" value="443" placeholder="Server Port"><br>
<input type="checkbox" id="securityStatus" checked>
<label for="securityStatus">Use HTTPS/WSS</label>
</div>
</div>
</div>
<div class="hidden" id="messaging">
<div class="box">
2024-11-23 18:10:56 +11:00
<div id="messagebox" class="box" style="height: 600px;"><div></div></div>
<div class="input-container">
<input type="text" id="messageInput" placeholder="Send a message...">
<button onclick="sendMessage()" class="bluebutton">Send</button>
</div>
2024-11-05 20:35:10 +11:00
</div>
</div>
<script src="index.js"></script>
</body>
</html>