Changes to ircchat.scroll.pub

ffff:148.71.18.163
ffff:148.71.18.163
25 days ago
updated index.scroll
index.scroll
Changed around line 2: buildHtml
- title WebIRC - Modern IRC Client
+ title IRCChat - Modern IRC Client
- script.js
+ script.js
root
root
25 days ago
Initial commit
.log.txt
Changed around line 1
+ read ircchat.scroll.pub https://hub.scroll.pub/edit.html?folderName=ircchat.scroll.pub 1735331783309 ::ffff:148.71.18.163 0.0 200 Chrome.120 WindowsNT.10.0
+ read ircchat.scroll.pub https://hub.scroll.pub/ls.json?folderName=ircchat.scroll.pub 1735331784719 ::ffff:148.71.18.163 0.0 200 Chrome.120 WindowsNT.10.0
+ read ircchat.scroll.pub https://hub.scroll.pub/readFile.htm?folderName=ircchat.scroll.pub&filePath=ircchat.scroll.pub%2Findex.scroll 1735331784902 ::ffff:148.71.18.163 0.0 200 Chrome.120 WindowsNT.10.0
.stats.json
Changed around line 1
+ {
+ "files": [
+ "body.html",
+ "index.scroll",
+ "prompt.json",
+ "readme.scroll",
+ "script.js",
+ "style.css"
+ ],
+ "hasSslCert": false,
+ "stats": {
+ "folder": "ircchat.scroll.pub",
+ "folderLink": "http://ircchat.scroll.pub",
+ "created": "2024-12-27T20:36:22.000Z",
+ "revised": "2024-12-27T20:36:22.000Z",
+ "files": 6,
+ "mb": 1,
+ "revisions": 1,
+ "hash": "680da57d1e"
+ }
+ }
body.html
Changed around line 1
-

IRCChat

-

Your modern, sleek IRC client

+
+
+
Disconnected
+
-
-
-

Connect to Server

-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+

Channels

+
+
+
+

Users

+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-

Enjoy seamless IRC communication with IRCChat

-
+

Built with modern web technologies

+
index.html
Changed around line 1
+
+
+
+
+ IRCChat - Modern IRC Client
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

IRCChat

+

Your modern, sleek IRC client

+
+
+
+
+

Connect to Server

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Enjoy seamless IRC communication with IRCChat

+
+
+
+
index.scroll
Changed around line 2: buildHtml
- title IRCChat - Modern IRC Client
+ title WebIRC - Modern IRC Client
- script.js
+ script.js
prompt.json
Changed around line 1
- "id": "fcda42be-7b1d-4ef8-b1a0-5514fe5e74a0",
- "object": "chat.completion",
- "created": 1735331767,
- "model": "deepseek-chat",
- "choices": [
+ "id": "msg_01PrboDopW2xfrSwXzHQbmTM",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
- "index": 0,
- "message": {
- "role": "assistant",
- "content": "---domain---\nircchat.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://ircchat.scroll.pub\nmetaTags\neditButton /edit.html\ntitle IRCChat - Modern IRC Client\nstyle.css\nbody.html\nscript.js\n---body.html---\n
\n

IRCChat

\n

Your modern, sleek IRC client

\n
\n\n
\n
\n

Connect to Server

\n
\n \n \n \n \n \n \n \n \n \n \n
\n
\n\n
\n
\n
\n \n \n
\n
\n
\n\n
\n

Enjoy seamless IRC communication with IRCChat

\n
\n---style.css---\n:root {\n --primary-color: #3498db;\n --secondary-color: #2ecc71;\n --background-color: #f4f4f4;\n --text-color: #333;\n --border-color: #ddd;\n}\n\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n margin: 0;\n padding: 0;\n background-color: var(--background-color);\n color: var(--text-color);\n line-height: 1.6;\n}\n\nheader {\n background-color: var(--primary-color);\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\nheader h1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\nheader p {\n margin: 0.5rem 0 0;\n font-size: 1.2rem;\n}\n\nmain {\n padding: 2rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\nsection {\n background-color: white;\n padding: 1.5rem;\n border-radius: 8px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n margin-bottom: 2rem;\n}\n\nh2 {\n color: var(--primary-color);\n margin-top: 0;\n}\n\nform {\n display: grid;\n gap: 1rem;\n}\n\nlabel {\n font-weight: bold;\n}\n\ninput, button {\n padding: 0.5rem;\n border: 1px solid var(--border-color);\n border-radius: 4px;\n font-size: 1rem;\n}\n\nbutton {\n background-color: var(--primary-color);\n color: white;\n border: none;\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\nbutton:hover {\n background-color: #2980b9;\n}\n\n#chat-window {\n height: 300px;\n border: 1px solid var(--border-color);\n border-radius: 4px;\n padding: 1rem;\n overflow-y: auto;\n margin-bottom: 1rem;\n background-color: #f9f9f9;\n}\n\n.hidden {\n display: none;\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background-color: var(--primary-color);\n color: white;\n margin-top: 2rem;\n}\n\n@media (max-width: 600px) {\n header h1 {\n font-size: 2rem;\n }\n\n header p {\n font-size: 1rem;\n }\n\n main {\n padding: 1rem;\n }\n\n section {\n padding: 1rem;\n }\n}\n---script.js---\ndocument.getElementById('connect-form').addEventListener('submit', function(e) {\n e.preventDefault();\n \n const server = document.getElementById('server').value;\n const port = document.getElementById('port').value;\n const nickname = document.getElementById('nickname').value;\n \n // Simulate connection\n setTimeout(() => {\n document.getElementById('connection').classList.add('hidden');\n document.getElementById('chat').classList.remove('hidden');\n document.getElementById('chat-window').innerHTML = `

Connected to ${server}:${port} as ${nickname}

`;\n }, 1000);\n});\n\ndocument.getElementById('message-form').addEventListener('submit', function(e) {\n e.preventDefault();\n \n const message = document.getElementById('message-input').value;\n const chatWindow = document.getElementById('chat-window');\n \n chatWindow.innerHTML += `

You: ${message}

`;\n chatWindow.scrollTop = chatWindow.scrollHeight;\n \n document.getElementById('message-input').value = '';\n});\n---end---"
- },
- "logprobs": null,
- "finish_reason": "stop"
+ "type": "text",
+ "text": "I'll help create a modern IRC web client. For the domain, I suggest:\n\n---domain---\nircchat.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://ircchat.scroll.pub\nmetaTags\neditButton /edit.html\ntitle WebIRC - Modern IRC Client\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n
\n \n
\n\n
\n \n\n
\n
\n
\n \n \n
\n
\n
\n\n
\n

Built with modern web technologies

\n
\n\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --secondary-color: #34495e;\n --accent-color: #3498db;\n --text-color: #ecf0f1;\n --border-color: #465669;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;\n background: var(--primary-color);\n color: var(--text-color);\n line-height: 1.6;\n}\n\n.top-nav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1rem 2rem;\n background: var(--secondary-color);\n box-shadow: 0 2px 5px rgba(0,0,0,0.2);\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: bold;\n color: var(--accent-color);\n}\n\n.connection-status {\n padding: 0.5rem 1rem;\n border-radius: 20px;\n background: #e74c3c;\n font-size: 0.9rem;\n}\n\n.connection-status.connected {\n background: #2ecc71;\n}\n\n.container {\n display: grid;\n grid-template-columns: 250px 1fr;\n height: calc(100vh - 120px);\n gap: 1rem;\n padding: 1rem;\n}\n\n.sidebar {\n background: var(--secondary-color);\n border-radius: 8px;\n padding: 1rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n\ninput[type=\"text\"] {\n width: 100%;\n padding: 0.8rem;\n margin: 0.5rem 0;\n border: none;\n border-radius: 4px;\n background: var(--primary-color);\n color: var(--text-color);\n}\n\nbutton {\n width: 100%;\n padding: 0.8rem;\n border: none;\n border-radius: 4px;\n background: var(--accent-color);\n color: white;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n\nbutton:hover {\n background: #2980b9;\n}\n\n.chat-area {\n background: var(--secondary-color);\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n}\n\n.messages {\n flex-grow: 1;\n padding: 1rem;\n overflow-y: auto;\n}\n\n.input-area {\n display: flex;\n gap: 0.5rem;\n padding: 1rem;\n}\n\n.input-area input {\n flex-grow: 1;\n}\n\n.input-area button {\n width: auto;\n padding: 0.8rem 1.5rem;\n}\n\n.channel-list, .user-list {\n background: var(--primary-color);\n border-radius: 4px;\n padding: 0.5rem;\n}\n\nh3 {\n margin-bottom: 0.5rem;\n font-size: 1rem;\n color: var(--accent-color);\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background: var(--secondary-color);\n}\n\n@media (max-width: 768px) {\n .container {\n grid-template-columns: 1fr;\n }\n \n .sidebar {\n height: auto;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n const connectButton = document.getElementById('connectButton');\n const sendButton = document.getElementById('sendButton');\n const messageInput = document.getElementById('messageInput');\n const messages = document.getElementById('messages');\n const connectionStatus = document.getElementById('connectionStatus');\n const serverInput = document.getElementById('serverInput');\n const nickInput = document.getElementById('nickInput');\n\n let websocket = null;\n\n connectButton.addEventListener('click', () => {\n if (websocket && websocket.readyState === WebSocket.OPEN) {\n websocket.close();\n connectButton.textContent = 'Connect';\n connectionStatus.textContent = 'Disconnected';\n connectionStatus.classList.remove('connected');\n return;\n }\n\n const server = serverInput.value;\n const nickname = nickInput.value;\n\n if (!server || !nickname) {\n addMessage('System', 'Please enter server and nickname');\n return;\n }\n\n // In a real implementation, we would connect to an IRC server here\n // This is a mock implementation for demonstration\n mockConnect(server, nickname);\n });\n\n sendButton.addEventListener('click', sendMessage);\n messageInput.addEventListener('keypress', (e) => {\n if (e.key === 'Enter') sendMessage();\n });\n\n function sendMessage() {\n if (!messageInput.value.trim()) return;\n \n if (websocket && websocket.readyState === WebSocket.OPEN) {\n addMessage(nickInput.value, messageInput.value);\n messageInput.value = '';\n } else {\n addMessage('System', 'Not connected to server');\n }\n }\n\n function addMessage(sender, text) {\n const messageDiv = document.createElement('div');\n messageDiv.innerHTML = `${sender}: ${text}`;\n messages.appendChild(messageDiv);\n messages.scrollTop = messages.scrollHeight;\n }\n\n function mockConnect(server, nickname) {\n connectButton.textContent = 'Disconnect';\n connectionStatus.textContent = 'Connected';\n connectionStatus.classList.add('connected');\n addMessage('System', `Connected to ${server} as ${nickname}`);\n \n // Mock WebSocket connection\n websocket = {\n readyState: WebSocket.OPEN,\n close: function() {\n this.readyState = WebSocket.CLOSED;\n addMessage('System', 'Disconnected from server');\n }\n };\n }\n});\n\n---end---\n\nThis implementation provides a modern, responsive IRC client interface with a clean design. Key features include:\n\n1. Server connection management\n2. Channel and user lists\n3. Message input and display\n4. Responsive design for mobile devices\n5. Modern color scheme and UI elements\n6. Clean, semantic HTML structure\n7. Extensive CSS styling with CSS variables\n8. Mock functionality for demonstration purposes\n\nNote that this is a frontend-only implementation. In a real-world scenario, you would need to implement proper WebSocket connections to IRC servers, handle IRC protocols, and manage real-time communications. The current implementation includes mock functionality to demonstrate the UI/UX."
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
- "prompt_tokens": 263,
- "completion_tokens": 1167,
- "total_tokens": 1430,
- "prompt_cache_hit_tokens": 0,
- "prompt_cache_miss_tokens": 263
- },
- "system_fingerprint": "fp_f1afce2943"
+ "input_tokens": 300,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 2187
+ }
readme.scroll
Changed around line 1
- Website generated by DeepSeek from prompt: Build a mirc clone that allows you to connect to servers and has all the normal functionalities needed for IRC use. Make it sleek and modern
+ Website generated by Claude from prompt: Build a mirc clone that allows you to connect to servers and has all the normal functionalities needed for IRC use. Make it sleek and modern
script.js
Changed around line 1
- document.getElementById('connect-form').addEventListener('submit', function(e) {
- e.preventDefault();
-
- const server = document.getElementById('server').value;
- const port = document.getElementById('port').value;
- const nickname = document.getElementById('nickname').value;
-
- // Simulate connection
- setTimeout(() => {
- document.getElementById('connection').classList.add('hidden');
- document.getElementById('chat').classList.remove('hidden');
- document.getElementById('chat-window').innerHTML = `

Connected to ${server}:${port} as ${nickname}

`;
- }, 1000);
- });
+ document.addEventListener('DOMContentLoaded', () => {
+ const connectButton = document.getElementById('connectButton');
+ const sendButton = document.getElementById('sendButton');
+ const messageInput = document.getElementById('messageInput');
+ const messages = document.getElementById('messages');
+ const connectionStatus = document.getElementById('connectionStatus');
+ const serverInput = document.getElementById('serverInput');
+ const nickInput = document.getElementById('nickInput');
+
+ let websocket = null;
+
+ connectButton.addEventListener('click', () => {
+ if (websocket && websocket.readyState === WebSocket.OPEN) {
+ websocket.close();
+ connectButton.textContent = 'Connect';
+ connectionStatus.textContent = 'Disconnected';
+ connectionStatus.classList.remove('connected');
+ return;
+ }
+
+ const server = serverInput.value;
+ const nickname = nickInput.value;
+
+ if (!server || !nickname) {
+ addMessage('System', 'Please enter server and nickname');
+ return;
+ }
- document.getElementById('message-form').addEventListener('submit', function(e) {
- e.preventDefault();
-
- const message = document.getElementById('message-input').value;
- const chatWindow = document.getElementById('chat-window');
-
- chatWindow.innerHTML += `

You: ${message}

`;
- chatWindow.scrollTop = chatWindow.scrollHeight;
-
- document.getElementById('message-input').value = '';
- });
+ // In a real implementation, we would connect to an IRC server here
+ // This is a mock implementation for demonstration
+ mockConnect(server, nickname);
+ });
+
+ sendButton.addEventListener('click', sendMessage);
+ messageInput.addEventListener('keypress', (e) => {
+ if (e.key === 'Enter') sendMessage();
+ });
+
+ function sendMessage() {
+ if (!messageInput.value.trim()) return;
+
+ if (websocket && websocket.readyState === WebSocket.OPEN) {
+ addMessage(nickInput.value, messageInput.value);
+ messageInput.value = '';
+ } else {
+ addMessage('System', 'Not connected to server');
+ }
+ }
+
+ function addMessage(sender, text) {
+ const messageDiv = document.createElement('div');
+ messageDiv.innerHTML = `${sender}: ${text}`;
+ messages.appendChild(messageDiv);
+ messages.scrollTop = messages.scrollHeight;
+ }
+
+ function mockConnect(server, nickname) {
+ connectButton.textContent = 'Disconnect';
+ connectionStatus.textContent = 'Connected';
+ connectionStatus.classList.add('connected');
+ addMessage('System', `Connected to ${server} as ${nickname}`);
+
+ // Mock WebSocket connection
+ websocket = {
+ readyState: WebSocket.OPEN,
+ close: function() {
+ this.readyState = WebSocket.CLOSED;
+ addMessage('System', 'Disconnected from server');
+ }
+ };
+ }
+ });
style.css
Changed around line 1
- --primary-color: #3498db;
- --secondary-color: #2ecc71;
- --background-color: #f4f4f4;
- --text-color: #333;
- --border-color: #ddd;
+ --primary-color: #2c3e50;
+ --secondary-color: #34495e;
+ --accent-color: #3498db;
+ --text-color: #ecf0f1;
+ --border-color: #465669;
- body {
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ * {
- background-color: var(--background-color);
- color: var(--text-color);
- line-height: 1.6;
- }
-
- header {
- background-color: var(--primary-color);
- color: white;
- padding: 2rem;
- text-align: center;
+ box-sizing: border-box;
- header h1 {
- margin: 0;
- font-size: 2.5rem;
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
+ background: var(--primary-color);
+ color: var(--text-color);
+ line-height: 1.6;
- header p {
- margin: 0.5rem 0 0;
- font-size: 1.2rem;
+ .top-nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 1rem 2rem;
+ background: var(--secondary-color);
+ box-shadow: 0 2px 5px rgba(0,0,0,0.2);
- main {
- padding: 2rem;
- max-width: 800px;
- margin: 0 auto;
+ .logo {
+ font-size: 1.5rem;
+ font-weight: bold;
+ color: var(--accent-color);
- section {
- background-color: white;
- padding: 1.5rem;
- border-radius: 8px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- margin-bottom: 2rem;
+ .connection-status {
+ padding: 0.5rem 1rem;
+ border-radius: 20px;
+ background: #e74c3c;
+ font-size: 0.9rem;
- h2 {
- color: var(--primary-color);
- margin-top: 0;
+ .connection-status.connected {
+ background: #2ecc71;
- form {
+ .container {
+ grid-template-columns: 250px 1fr;
+ height: calc(100vh - 120px);
+ padding: 1rem;
- label {
- font-weight: bold;
+ .sidebar {
+ background: var(--secondary-color);
+ border-radius: 8px;
+ padding: 1rem;
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
- input, button {
- padding: 0.5rem;
- border: 1px solid var(--border-color);
+ input[type="text"] {
+ width: 100%;
+ padding: 0.8rem;
+ margin: 0.5rem 0;
+ border: none;
- font-size: 1rem;
+ background: var(--primary-color);
+ color: var(--text-color);
- background-color: var(--primary-color);
- color: white;
+ width: 100%;
+ padding: 0.8rem;
+ border-radius: 4px;
+ background: var(--accent-color);
+ color: white;
- transition: background-color 0.3s ease;
+ transition: background 0.3s ease;
- background-color: #2980b9;
+ background: #2980b9;
- #chat-window {
- height: 300px;
- border: 1px solid var(--border-color);
- border-radius: 4px;
+ .chat-area {
+ background: var(--secondary-color);
+ border-radius: 8px;
+ display: flex;
+ flex-direction: column;
+ }
+
+ .messages {
+ flex-grow: 1;
- margin-bottom: 1rem;
- background-color: #f9f9f9;
- .hidden {
- display: none;
+ .input-area {
+ display: flex;
+ gap: 0.5rem;
+ padding: 1rem;
+ }
+
+ .input-area input {
+ flex-grow: 1;
+ }
+
+ .input-area button {
+ width: auto;
+ padding: 0.8rem 1.5rem;
+ }
+
+ .channel-list, .user-list {
+ background: var(--primary-color);
+ border-radius: 4px;
+ padding: 0.5rem;
+ }
+
+ h3 {
+ margin-bottom: 0.5rem;
+ font-size: 1rem;
+ color: var(--accent-color);
- background-color: var(--primary-color);
- color: white;
- margin-top: 2rem;
+ background: var(--secondary-color);
- @media (max-width: 600px) {
- header h1 {
- font-size: 2rem;
+ @media (max-width: 768px) {
+ .container {
+ grid-template-columns: 1fr;
-
- header p {
- font-size: 1rem;
- }
-
- main {
- padding: 1rem;
+
+ .sidebar {
+ height: auto;
-
- section {
- padding: 1rem;
- }
- }
+ }
root
root
25 days ago
Initial commit
body.html
Changed around line 1
+
+

IRCChat

+

Your modern, sleek IRC client

+
+
+
+
+

Connect to Server

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Enjoy seamless IRC communication with IRCChat

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://ircchat.scroll.pub
+ metaTags
+ editButton /edit.html
+ title IRCChat - Modern IRC Client
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "fcda42be-7b1d-4ef8-b1a0-5514fe5e74a0",
+ "object": "chat.completion",
+ "created": 1735331767,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nircchat.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://ircchat.scroll.pub\nmetaTags\neditButton /edit.html\ntitle IRCChat - Modern IRC Client\nstyle.css\nbody.html\nscript.js\n---body.html---\n
\n

IRCChat

\n

Your modern, sleek IRC client

\n
\n\n
\n
\n

Connect to Server

\n
\n \n \n \n \n \n \n \n \n \n \n
\n
\n\n
\n
\n
\n \n \n
\n
\n
\n\n
\n

Enjoy seamless IRC communication with IRCChat

\n
\n---style.css---\n:root {\n --primary-color: #3498db;\n --secondary-color: #2ecc71;\n --background-color: #f4f4f4;\n --text-color: #333;\n --border-color: #ddd;\n}\n\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n margin: 0;\n padding: 0;\n background-color: var(--background-color);\n color: var(--text-color);\n line-height: 1.6;\n}\n\nheader {\n background-color: var(--primary-color);\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\nheader h1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\nheader p {\n margin: 0.5rem 0 0;\n font-size: 1.2rem;\n}\n\nmain {\n padding: 2rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\nsection {\n background-color: white;\n padding: 1.5rem;\n border-radius: 8px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n margin-bottom: 2rem;\n}\n\nh2 {\n color: var(--primary-color);\n margin-top: 0;\n}\n\nform {\n display: grid;\n gap: 1rem;\n}\n\nlabel {\n font-weight: bold;\n}\n\ninput, button {\n padding: 0.5rem;\n border: 1px solid var(--border-color);\n border-radius: 4px;\n font-size: 1rem;\n}\n\nbutton {\n background-color: var(--primary-color);\n color: white;\n border: none;\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\nbutton:hover {\n background-color: #2980b9;\n}\n\n#chat-window {\n height: 300px;\n border: 1px solid var(--border-color);\n border-radius: 4px;\n padding: 1rem;\n overflow-y: auto;\n margin-bottom: 1rem;\n background-color: #f9f9f9;\n}\n\n.hidden {\n display: none;\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background-color: var(--primary-color);\n color: white;\n margin-top: 2rem;\n}\n\n@media (max-width: 600px) {\n header h1 {\n font-size: 2rem;\n }\n\n header p {\n font-size: 1rem;\n }\n\n main {\n padding: 1rem;\n }\n\n section {\n padding: 1rem;\n }\n}\n---script.js---\ndocument.getElementById('connect-form').addEventListener('submit', function(e) {\n e.preventDefault();\n \n const server = document.getElementById('server').value;\n const port = document.getElementById('port').value;\n const nickname = document.getElementById('nickname').value;\n \n // Simulate connection\n setTimeout(() => {\n document.getElementById('connection').classList.add('hidden');\n document.getElementById('chat').classList.remove('hidden');\n document.getElementById('chat-window').innerHTML = `

Connected to ${server}:${port} as ${nickname}

`;\n }, 1000);\n});\n\ndocument.getElementById('message-form').addEventListener('submit', function(e) {\n e.preventDefault();\n \n const message = document.getElementById('message-input').value;\n const chatWindow = document.getElementById('chat-window');\n \n chatWindow.innerHTML += `

You: ${message}

`;\n chatWindow.scrollTop = chatWindow.scrollHeight;\n \n document.getElementById('message-input').value = '';\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 263,
+ "completion_tokens": 1167,
+ "total_tokens": 1430,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 263
+ },
+ "system_fingerprint": "fp_f1afce2943"
+ }
readme.scroll
Changed around line 1
+ # ircchat.scroll.pub
+ Website generated by DeepSeek from prompt: Build a mirc clone that allows you to connect to servers and has all the normal functionalities needed for IRC use. Make it sleek and modern
script.js
Changed around line 1
+ document.getElementById('connect-form').addEventListener('submit', function(e) {
+ e.preventDefault();
+
+ const server = document.getElementById('server').value;
+ const port = document.getElementById('port').value;
+ const nickname = document.getElementById('nickname').value;
+
+ // Simulate connection
+ setTimeout(() => {
+ document.getElementById('connection').classList.add('hidden');
+ document.getElementById('chat').classList.remove('hidden');
+ document.getElementById('chat-window').innerHTML = `

Connected to ${server}:${port} as ${nickname}

`;
+ }, 1000);
+ });
+
+ document.getElementById('message-form').addEventListener('submit', function(e) {
+ e.preventDefault();
+
+ const message = document.getElementById('message-input').value;
+ const chatWindow = document.getElementById('chat-window');
+
+ chatWindow.innerHTML += `

You: ${message}

`;
+ chatWindow.scrollTop = chatWindow.scrollHeight;
+
+ document.getElementById('message-input').value = '';
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #3498db;
+ --secondary-color: #2ecc71;
+ --background-color: #f4f4f4;
+ --text-color: #333;
+ --border-color: #ddd;
+ }
+
+ body {
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ margin: 0;
+ padding: 0;
+ background-color: var(--background-color);
+ color: var(--text-color);
+ line-height: 1.6;
+ }
+
+ header {
+ background-color: var(--primary-color);
+ color: white;
+ padding: 2rem;
+ text-align: center;
+ }
+
+ header h1 {
+ margin: 0;
+ font-size: 2.5rem;
+ }
+
+ header p {
+ margin: 0.5rem 0 0;
+ font-size: 1.2rem;
+ }
+
+ main {
+ padding: 2rem;
+ max-width: 800px;
+ margin: 0 auto;
+ }
+
+ section {
+ background-color: white;
+ padding: 1.5rem;
+ border-radius: 8px;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+ margin-bottom: 2rem;
+ }
+
+ h2 {
+ color: var(--primary-color);
+ margin-top: 0;
+ }
+
+ form {
+ display: grid;
+ gap: 1rem;
+ }
+
+ label {
+ font-weight: bold;
+ }
+
+ input, button {
+ padding: 0.5rem;
+ border: 1px solid var(--border-color);
+ border-radius: 4px;
+ font-size: 1rem;
+ }
+
+ button {
+ background-color: var(--primary-color);
+ color: white;
+ border: none;
+ cursor: pointer;
+ transition: background-color 0.3s ease;
+ }
+
+ button:hover {
+ background-color: #2980b9;
+ }
+
+ #chat-window {
+ height: 300px;
+ border: 1px solid var(--border-color);
+ border-radius: 4px;
+ padding: 1rem;
+ overflow-y: auto;
+ margin-bottom: 1rem;
+ background-color: #f9f9f9;
+ }
+
+ .hidden {
+ display: none;
+ }
+
+ footer {
+ text-align: center;
+ padding: 1rem;
+ background-color: var(--primary-color);
+ color: white;
+ margin-top: 2rem;
+ }
+
+ @media (max-width: 600px) {
+ header h1 {
+ font-size: 2rem;
+ }
+
+ header p {
+ font-size: 1rem;
+ }
+
+ main {
+ padding: 1rem;
+ }
+
+ section {
+ padding: 1rem;
+ }
+ }