Update some CSS, support JSON

This commit is contained in:
Maxwell Jeffress
2024-11-23 18:10:56 +11:00
parent 61c60f7906
commit b1b1c0accc
4 changed files with 222 additions and 51 deletions

View File

@@ -3,16 +3,18 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chookpen</title>
<title>Chookchat</title>
<link type="text/css" rel="stylesheet" href="index.css">
<link type="text/css" rel="stylesheet" href="gradient.css">
<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>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
</head>
<body>
<body class="gradient">
<div id="login">
<div class="section">
<div class="box">
<h3>Chookpen</h3>
<h3>Chookchat</h3>
<input type="text" id="username" placeholder="Username"><br>
<input type="password" id="password" placeholder="Password"><br>
<button class="bluebutton" onclick="connect()">Log in</button>
@@ -29,14 +31,13 @@
</div>
</div>
<div class="hidden" id="messaging">
<div class="section">
<div class="box">
<h3>Chookpen</h3>
<div id="messagebox" class="box" style="height: 600px;"><div style="color: grey;">Chookpen for Web is ready. Happy chatting!</div></div>
<input type="text" id="messageInput" placeholder="Send a message...">
<button onclick="sendMessage()" class="bluebutton">Send</button>
<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>
</div>
</div>
</div>
<script src="index.js"></script>
</body>