Changes to clippychat.scroll.pub

root
root
19 days ago
Initial commit
body.html
Changed around line 1
+
+

Chat with Clippy

+

Your friendly virtual assistant is here to help!

+
+
+
+
+
+
+
+
+
+
+
+
+
📎
+
+
+
+
+

ClippyChat - Your helpful assistant

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://clippychat.scroll.pub
+ metaTags
+ editButton /edit.html
+ title Chat with Clippy
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "f78a81b4-7892-4fc8-98c3-cf1c45cc4789",
+ "object": "chat.completion",
+ "created": 1735848856,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nclippychat.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://clippychat.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Chat with Clippy\nstyle.css\nbody.html\nscript.js\n---body.html---\n
\n

Chat with Clippy

\n

Your friendly virtual assistant is here to help!

\n
\n\n
\n
\n
\n
\n \n \n
\n
\n\n
\n
📎
\n
\n
\n\n
\n

ClippyChat - Your helpful assistant

\n
\n---style.css---\n:root {\n --primary-color: #4CAF50;\n --secondary-color: #45a049;\n --background-color: #f5f5f5;\n --text-color: #333;\n --chat-bg: #fff;\n --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background-color: var(--background-color);\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n}\n\nheader {\n background: var(--primary-color);\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\nmain {\n flex: 1;\n padding: 2rem;\n position: relative;\n}\n\n#chat-container {\n position: fixed;\n bottom: 100px;\n right: 20px;\n width: 300px;\n background: var(--chat-bg);\n border-radius: 10px;\n box-shadow: var(--shadow);\n display: none;\n flex-direction: column;\n z-index: 1000;\n}\n\n#chat-box {\n height: 300px;\n overflow-y: auto;\n padding: 1rem;\n border-bottom: 1px solid #eee;\n}\n\n#input-container {\n display: flex;\n padding: 0.5rem;\n}\n\n#user-input {\n flex: 1;\n padding: 0.5rem;\n border: 1px solid #ddd;\n border-radius: 5px;\n margin-right: 0.5rem;\n}\n\n#send-btn {\n background: var(--primary-color);\n color: white;\n border: none;\n padding: 0.5rem 1rem;\n border-radius: 5px;\n cursor: pointer;\n}\n\n#send-btn:hover {\n background: var(--secondary-color);\n}\n\n#clippy {\n position: fixed;\n bottom: 20px;\n right: 20px;\n background: var(--primary-color);\n color: white;\n width: 60px;\n height: 60px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: var(--shadow);\n z-index: 1000;\n}\n\n#clippy-icon {\n font-size: 2rem;\n}\n\nfooter {\n background: var(--primary-color);\n color: white;\n text-align: center;\n padding: 1rem;\n}\n\n@media (max-width: 768px) {\n #chat-container {\n width: 90%;\n right: 5%;\n bottom: 80px;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const clippy = document.getElementById('clippy');\n const chatContainer = document.getElementById('chat-container');\n const userInput = document.getElementById('user-input');\n const sendBtn = document.getElementById('send-btn');\n const chatBox = document.getElementById('chat-box');\n\n clippy.addEventListener('click', function() {\n chatContainer.style.display = chatContainer.style.display === 'flex' ? 'none' : 'flex';\n });\n\n sendBtn.addEventListener('click', sendMessage);\n userInput.addEventListener('keypress', function(e) {\n if (e.key === 'Enter') sendMessage();\n });\n\n function sendMessage() {\n const message = userInput.value.trim();\n if (message) {\n addMessage('user', message);\n userInput.value = '';\n setTimeout(() => {\n addMessage('clippy', 'Let me think about that...');\n }, 500);\n }\n }\n\n function addMessage(sender, message) {\n const messageDiv = document.createElement('div');\n messageDiv.classList.add('message', sender);\n messageDiv.textContent = message;\n chatBox.appendChild(messageDiv);\n chatBox.scrollTop = chatBox.scrollHeight;\n }\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 251,
+ "completion_tokens": 1139,
+ "total_tokens": 1390,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 251
+ },
+ "system_fingerprint": "fp_f1afce2943"
+ }
readme.scroll
Changed around line 1
+ # clippychat.scroll.pub
+ Website generated by DeepSeek from prompt: a website iwht a clippy like popup that i can chat to
script.js
Changed around line 1
+ document.addEventListener('DOMContentLoaded', function() {
+ const clippy = document.getElementById('clippy');
+ const chatContainer = document.getElementById('chat-container');
+ const userInput = document.getElementById('user-input');
+ const sendBtn = document.getElementById('send-btn');
+ const chatBox = document.getElementById('chat-box');
+
+ clippy.addEventListener('click', function() {
+ chatContainer.style.display = chatContainer.style.display === 'flex' ? 'none' : 'flex';
+ });
+
+ sendBtn.addEventListener('click', sendMessage);
+ userInput.addEventListener('keypress', function(e) {
+ if (e.key === 'Enter') sendMessage();
+ });
+
+ function sendMessage() {
+ const message = userInput.value.trim();
+ if (message) {
+ addMessage('user', message);
+ userInput.value = '';
+ setTimeout(() => {
+ addMessage('clippy', 'Let me think about that...');
+ }, 500);
+ }
+ }
+
+ function addMessage(sender, message) {
+ const messageDiv = document.createElement('div');
+ messageDiv.classList.add('message', sender);
+ messageDiv.textContent = message;
+ chatBox.appendChild(messageDiv);
+ chatBox.scrollTop = chatBox.scrollHeight;
+ }
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #4CAF50;
+ --secondary-color: #45a049;
+ --background-color: #f5f5f5;
+ --text-color: #333;
+ --chat-bg: #fff;
+ --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: 'Segoe UI', sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background-color: var(--background-color);
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ }
+
+ header {
+ background: var(--primary-color);
+ color: white;
+ padding: 2rem;
+ text-align: center;
+ }
+
+ main {
+ flex: 1;
+ padding: 2rem;
+ position: relative;
+ }
+
+ #chat-container {
+ position: fixed;
+ bottom: 100px;
+ right: 20px;
+ width: 300px;
+ background: var(--chat-bg);
+ border-radius: 10px;
+ box-shadow: var(--shadow);
+ display: none;
+ flex-direction: column;
+ z-index: 1000;
+ }
+
+ #chat-box {
+ height: 300px;
+ overflow-y: auto;
+ padding: 1rem;
+ border-bottom: 1px solid #eee;
+ }
+
+ #input-container {
+ display: flex;
+ padding: 0.5rem;
+ }
+
+ #user-input {
+ flex: 1;
+ padding: 0.5rem;
+ border: 1px solid #ddd;
+ border-radius: 5px;
+ margin-right: 0.5rem;
+ }
+
+ #send-btn {
+ background: var(--primary-color);
+ color: white;
+ border: none;
+ padding: 0.5rem 1rem;
+ border-radius: 5px;
+ cursor: pointer;
+ }
+
+ #send-btn:hover {
+ background: var(--secondary-color);
+ }
+
+ #clippy {
+ position: fixed;
+ bottom: 20px;
+ right: 20px;
+ background: var(--primary-color);
+ color: white;
+ width: 60px;
+ height: 60px;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ cursor: pointer;
+ box-shadow: var(--shadow);
+ z-index: 1000;
+ }
+
+ #clippy-icon {
+ font-size: 2rem;
+ }
+
+ footer {
+ background: var(--primary-color);
+ color: white;
+ text-align: center;
+ padding: 1rem;
+ }
+
+ @media (max-width: 768px) {
+ #chat-container {
+ width: 90%;
+ right: 5%;
+ bottom: 80px;
+ }
+ }