mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-29 19:15:35 +00:00
Integrates real-time document collaboration with a new tool and UI. Co-authored-by: nicsins <nicsins@gmail.com>
65 lines
1.7 KiB
HTML
65 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Collaboration Space</title>
|
|
<link rel="stylesheet" href="index.css">
|
|
<style>
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
margin: 0;
|
|
background-color: #1e1e1e;
|
|
color: #d4d4d4;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
#editor-container {
|
|
flex: 1;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
#editor {
|
|
flex: 1;
|
|
width: 100%;
|
|
background-color: #252526;
|
|
color: #d4d4d4;
|
|
border: 1px solid #3e3e42;
|
|
padding: 10px;
|
|
font-family: monospace;
|
|
font-size: 14px;
|
|
resize: none;
|
|
outline: none;
|
|
}
|
|
header {
|
|
padding: 10px 20px;
|
|
background-color: #333333;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
h1 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
}
|
|
.status {
|
|
font-size: 12px;
|
|
color: #888;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>Collaboration Space</h1>
|
|
<div id="status" class="status">Disconnected</div>
|
|
</header>
|
|
<div id="editor-container">
|
|
<textarea id="editor" placeholder="Start typing..."></textarea>
|
|
</div>
|
|
|
|
<script src="https://cdn.socket.io/4.7.5/socket.io.min.js"></script>
|
|
<script src="js/collaboration.js"></script>
|
|
</body>
|
|
</html>
|