Spaces:
Running
Running
Add 2 files
Browse filesFiles changed (2)
- index.html+107-11
- prompts.txt+3-1
68 unmodified lines69707172737475767752 unmodified lines1301311321331341352 unmodified lines1381391401411421431441451461471481491501511521531541551 unmodified line15715815916016116216316416516616716816917017117217317417517617717817918018159 unmodified lines24124224324424524624749 unmodified lines2972982993003013023032 unmodified lines3063073083093103113126 unmodified lines31932032132232332432532632732861 unmodified lines39039139239339439539639739839940040140255 unmodified lines45845946046146246346468 unmodified linescolor: transparent;}/* Markdown styling */.markdown-content {line-height: 1.6;}.markdown-content h1,52 unmodified linesmargin-left: 0;margin-right: 0;margin-bottom: 1em;}.markdown-content pre {2 unmodified linespadding: 16px;overflow: auto;margin-bottom: 1em;}.markdown-content code {background-color: rgba(175, 184, 193, 0.2);border-radius: 6px;padding: 0.2em 0.4em;font-family: monospace;}.markdown-content pre code {background-color: transparent;padding: 0;}.markdown-content a {1 unmodified linetext-decoration: underline;}.markdown-content table {border-collapse: collapse;width: 100%;margin-bottom: 1em;}.markdown-content th,.markdown-content td {border: 1px solid #ddd;padding: 8px;}.markdown-content th {background-color: #f2f2f2;}.markdown-content tr:nth-child(even) {background-color: #f9f9f9;}</style></head><body class="bg-gray-50 h-screen flex flex-col">59 unmodified lines</button></div><button class="flex items-center justify-between w-full px-4 py-3 mb-4 text-sm rounded-md border border-gray-700 hover:bg-gray-800 transition"><span>New Chat</span><i class="fas fa-plus"></i></button>49 unmodified lines<!-- Input area --><div class="bg-white border-t border-gray-200 p-4 fixed bottom-0 left-0 right-0 md:left-64"><div class="max-w-3xl mx-auto relative"><div class="relative"><textareaid="messageInput"rows="1"2 unmodified linesstyle="min-height: 60px; max-height: 200px;"></textarea><buttonid="sendButton"class="absolute right-3 bottom-3 w-8 h-8 rounded-md bg-blue-500 text-white flex items-center justify-center hover:bg-blue-600 transition disabled:opacity-50 disabled:cursor-not-allowed"disabled><i class="fas fa-paper-plane"></i></button>6 unmodified lines</main><script>// Configure marked.jsmarked.setOptions({breaks: true,gfm: true,highlight: function(code, lang) {// In a real app, you'd use a proper syntax highlighter like highlight.jsreturn code;61 unmodified lines// Show typing indicatorshowTypingIndicator();// Simulate AI response after a delaysetTimeout(() => {// Remove typing indicatorremoveTypingIndicator();// Add AI responseaddMessage('assistant', "Hello! How can I assist you today?");// Scroll to bottomscrollToBottom();55 unmodified lines// Initialize with a greeting from the assistantwindow.addEventListener('DOMContentLoaded', () => {setTimeout(() => {addMessage('assistant', "Hello! I'm your AI assistant. How can I help you today?");scrollToBottom();}, 500);});68 unmodified lines6970717273747576777852 unmodified lines1311321331341351361371381392 unmodified lines1421431441451461471481491501511521531541551561571581591601611621631641 unmodified line16616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823959 unmodified lines29930030130230330430549 unmodified lines3553563573583593603612 unmodified lines3643653663673683693706 unmodified lines37737837938038138238338438538638738838939061 unmodified lines45245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549655 unmodified lines55255355455555655755855956068 unmodified linescolor: transparent;}/* Enhanced Markdown styling */.markdown-content {line-height: 1.6;overflow-wrap: break-word;}.markdown-content h1,52 unmodified linesmargin-left: 0;margin-right: 0;margin-bottom: 1em;background-color: #f9f9f9;padding: 8px 12px;border-radius: 0 4px 4px 0;}.markdown-content pre {2 unmodified linespadding: 16px;overflow: auto;margin-bottom: 1em;font-family: 'Courier New', Courier, monospace;font-size: 0.9em;line-height: 1.4;}.markdown-content code {background-color: rgba(175, 184, 193, 0.2);border-radius: 4px;padding: 0.2em 0.4em;font-family: 'Courier New', Courier, monospace;font-size: 0.9em;}.markdown-content pre code {background-color: transparent;padding: 0;font-size: inherit;}.markdown-content a {1 unmodified linetext-decoration: underline;}.markdown-content a:hover {text-decoration: none;}.markdown-content table {border-collapse: collapse;width: 100%;margin-bottom: 1em;border: 1px solid #ddd;}.markdown-content th,.markdown-content td {border: 1px solid #ddd;padding: 8px;text-align: left;}.markdown-content th {background-color: #f2f2f2;font-weight: bold;}.markdown-content tr:nth-child(even) {background-color: #f9f9f9;}.markdown-content img {max-width: 100%;height: auto;border-radius: 4px;margin: 1em 0;}/* Input container with centered send button */.input-container {position: relative;display: flex;align-items: center;}.send-button {position: absolute;right: 12px;top: 50%;transform: translateY(-50%);display: flex;align-items: center;justify-content: center;width: 36px;height: 36px;border-radius: 8px;background-color: #3b82f6;color: white;border: none;cursor: pointer;transition: background-color 0.2s;}.send-button:hover {background-color: #2563eb;}.send-button:disabled {opacity: 0.5;cursor: not-allowed;background-color: #9ca3af;}</style></head><body class="bg-gray-50 h-screen flex flex-col">59 unmodified lines</button></div><button class="flex items-center justify-between w-full px-4 py-3 mb-4 text-sm rounded-md border border-gray-7 hover:bg-gray-800 transition"><span>New Chat</span><i class="fas fa-plus"></i></button>49 unmodified lines<!-- Input area --><div class="bg-white border-t border-gray-200 p-4 fixed bottom-0 left-0 right-0 md:left-64"><div class="max-w-3xl mx-auto relative"><div class="input-container"><textareaid="messageInput"rows="1"2 unmodified linesstyle="min-height: 60px; max-height: 200px;"></textarea><buttonid="sendButton"class="send-button"disabled><i class="fas fa-paper-plane"></i></button>6 unmodified lines</main><script>// Configure marked.js with enhanced optionsmarked.setOptions({breaks: true,gfm: true,pedantic: false,smartLists: true,smartypants: true,xhtml: false,highlight: function(code, lang) {// In a real app, you'd use a proper syntax highlighter like highlight.jsreturn code;61 unmodified lines// Show typing indicatorshowTypingIndicator();// Simulate AI response after a delay with Markdown contentsetTimeout(() => {// Remove typing indicatorremoveTypingIndicator();// Add AI response with Markdown contentconst markdownResponse = `Here's a sample response with **Markdown** formatting:# Heading 1## Heading 2### Heading 3- List item 1- List item 2- List item 31. Numbered item 12. Numbered item 23. Numbered item 3**Bold text** and *italic text*\`\`\`javascript// Code blockfunction greet(name) {return 'Hello, ' + name + '!';}\`\`\`> Blockquote: This is an important note.[Link to example](https://example.com)| Header 1 | Header 2 ||----------|----------|| Cell 1 | Cell 2 || Cell 3 | Cell 4 |`;addMessage('assistant', markdownResponse);// Scroll to bottomscrollToBottom();55 unmodified lines// Initialize with a greeting from the assistantwindow.addEventListener('DOMContentLoaded', () => {setTimeout(() => {const greeting = `Hello! I'm your AI assistant. How can I help you today?`;addMessage('assistant', greeting);scrollToBottom();}, 500);});
1234发送按钮相对于编辑窗口请垂直居中继续补全make response simple as a greetingsfix bugs in this page123456发送按钮相对于编辑窗口请垂直居中继续补全make response simple as a greetingsfix bugs in this page请让发送按钮相对于编辑框居中请支持markdown显示
index.html+107-11
prompts.txt+3-1