69 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html>
 | |
|     <head>
 | |
|         <meta charset="UTF-8">
 | |
|         <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | |
|         <title>Chookchat</title>
 | |
|         <link rel="preconnect" href="https://rsms.me/">
 | |
|         <link rel="stylesheet" href="https://rsms.me/inter/inter.css">
 | |
|         <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 class="gradient">
 | |
|         <div id="login">
 | |
|             <div class="section">
 | |
|                 <div class="box">
 | |
|                     <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>                    
 | |
|                     <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="messaging-container">
 | |
|                 <div id="meet"></div>
 | |
|                 <div class="box">
 | |
|                     <div id="users" class="suttle"></div>
 | |
|                     <button id="meeting" class="bluebutton" onclick="startMeeting()">📞</button>                    
 | |
|                     <div id="messagebox" class="box" style="height: 600px;">
 | |
|                         <div></div>
 | |
|                     </div>
 | |
|                     <div id="typing" class="suttle"></div>
 | |
|                     <div id="upload" class="suttle" style="display: none;">
 | |
|                         <input type="file" id="fileupload" accept="image/*,text/*">
 | |
|                             <button class="bluebutton"  onclick="uploadFile()">Upload</button>
 | |
|                         </input>
 | |
|                     </div>
 | |
|                     <div class="input-container">                          
 | |
|                         <button onclick="showFileUpload()" class="bluebutton">📁</button>                        
 | |
|                         <button onclick="showEggs()" class="bluebutton">🥚</button>                        
 | |
|                         <input type="text" id="messageInput" placeholder="Send a message..." autofocus>                        
 | |
|                         <button onclick="sendMessage()" class="bluebutton">Send</button>                    
 | |
|                     </div>
 | |
|                 </div>
 | |
|                 <div id="eggs" style="display: none;">
 | |
|                     <div id="eggs-list" class="eggs-list">                        
 | |
|                         <button class="egg-item" onclick="eggNotepad()">📝 Notepad</button>                    
 | |
|                     </div>
 | |
|                     <!-- Eggs Start Here -->
 | |
|                 </div>
 | |
|             </div>
 | |
|         </div>
 | |
|         <script src="index.js"></script>    
 | |
|     </body>
 | |
| </html>
 | |
| 
 | 
