Spaces:
Running
Running
Download index.html from vmipire/anycoder-332dc8ad: direct link, hf CLI and curl.
- Browser
- Download file 17 kB
-
https://huggingface.co/spaces/vmipire/anycoder-332dc8ad/resolve/main/index.html
- Command line
-
hf download hf://spaces/vmipire/anycoder-332dc8ad/index.html
-
curl -L -o index.html https://huggingface.co/spaces/vmipire/anycoder-332dc8ad/resolve/main/index.html
17 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>NEXUS | Unrestricted AI Interface</title> | |
| <!-- Importing Icons --> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| :root { | |
| --bg-color: #050505; | |
| --sidebar-bg: #0a0a0a; | |
| --chat-bg: #0f0f0f; | |
| --accent-color: #00ff9d; /* Cyberpunk Green */ | |
| --accent-hover: #00cc7e; | |
| --text-primary: #ffffff; | |
| --text-secondary: #a0a0a0; | |
| --border-color: #1f1f1f; | |
| --glass-bg: rgba(20, 20, 20, 0.7); | |
| --glass-border: rgba(255, 255, 255, 0.1); | |
| --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; | |
| --font-code: 'Courier New', Courier, monospace; | |
| } | |
| * { | |
| box-sizing: box-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body { | |
| background-color: var(--bg-color); | |
| color: var(--text-primary); | |
| font-family: var(--font-main); | |
| height: 100vh; | |
| display: flex; | |
| overflow: hidden; | |
| } | |
| /* --- Sidebar --- */ | |
| .sidebar { | |
| width: 260px; | |
| background-color: var(--sidebar-bg); | |
| border-right: 1px solid var(--border-color); | |
| display: flex; | |
| flex-direction: column; | |
| padding: 1rem; | |
| transition: transform 0.3s ease; | |
| z-index: 10; | |
| } | |
| .brand { | |
| font-size: 1.2rem; | |
| font-weight: 700; | |
| color: var(--accent-color); | |
| margin-bottom: 2rem; | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| letter-spacing: 2px; | |
| } | |
| .brand i { font-size: 1.4rem; } | |
| .new-chat-btn { | |
| background: transparent; | |
| border: 1px solid var(--border-color); | |
| color: var(--text-primary); | |
| padding: 10px; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| text-align: left; | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| font-size: 0.9rem; | |
| } | |
| .new-chat-btn:hover { | |
| background: rgba(255, 255, 255, 0.05); | |
| border-color: var(--accent-color); | |
| } | |
| .history-list { | |
| margin-top: 20px; | |
| flex-grow: 1; | |
| overflow-y: auto; | |
| } | |
| .history-item { | |
| padding: 10px; | |
| color: var(--text-secondary); | |
| cursor: pointer; | |
| border-radius: 6px; | |
| font-size: 0.85rem; | |
| transition: 0.2s; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .history-item:hover { | |
| background: rgba(255, 255, 255, 0.05); | |
| color: var(--text-primary); | |
| } | |
| .sidebar-footer { | |
| margin-top: auto; | |
| border-top: 1px solid var(--border-color); | |
| padding-top: 10px; | |
| font-size: 0.8rem; | |
| color: var(--text-secondary); | |
| } | |
| /* --- Main Content --- */ | |
| .main-content { | |
| flex-grow: 1; | |
| display: flex; | |
| flex-direction: column; | |
| background: var(--chat-bg); | |
| position: relative; | |
| } | |
| /* Header */ | |
| .header { | |
| height: 60px; | |
| border-bottom: 1px solid var(--border-color); | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 0 20px; | |
| background: var(--glass-bg); | |
| } | |
| .model-selector { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| background: rgba(0, 0, 0, 0.3); | |
| padding: 5px 12px; | |
| border-radius: 20px; | |
| border: 1px solid var(--border-color); | |
| cursor: pointer; | |
| } | |
| .model-selector span { | |
| font-weight: 600; | |
| font-size: 0.9rem; | |
| color: var(--accent-color); | |
| } | |
| .status-indicator { | |
| font-size: 0.8rem; | |
| color: var(--text-secondary); | |
| display: flex; | |
| align-items: center; | |
| gap: 5px; | |
| } | |
| .status-dot { | |
| width: 8px; | |
| height: 8px; | |
| background-color: var(--accent-color); | |
| border-radius: 50%; | |
| box-shadow: 0 0 10px var(--accent-color); | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { opacity: 1; } | |
| 50% { opacity: 0.5; } | |
| 100% { opacity: 1; } | |
| } | |
| /* Chat Area */ | |
| .chat-container { | |
| flex-grow: 1; | |
| overflow-y: auto; | |
| padding: 20px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 20px; | |
| scroll-behavior: smooth; | |
| } | |
| .message { | |
| display: flex; | |
| gap: 15px; | |
| max-width: 800px; | |
| margin: 0 auto; | |
| width: 100%; | |
| opacity: 0; | |
| animation: fadeIn 0.3s forwards; | |
| } | |
| @keyframes fadeIn { | |
| to { opacity: 1; } | |
| } | |
| .message.user { | |
| align-items: flex-end; | |
| } | |
| .avatar { | |
| width: 35px; | |
| height: 35px; | |
| border-radius: 6px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 1rem; | |
| } | |
| .avatar.ai { | |
| background: var(--accent-color); | |
| color: #000; | |
| } | |
| .avatar.user { | |
| background: #333; | |
| color: #fff; | |
| } | |
| .content { | |
| background: rgba(255, 255, 255, 0.03); | |
| padding: 15px; | |
| border-radius: 8px; | |
| border: 1px solid var(--border-color); | |
| line-height: 1.6; | |
| font-size: 0.95rem; | |
| position: relative; | |
| } | |
| .message.user .content { | |
| background: rgba(255, 255, 255, 0.08); | |
| border-color: transparent; | |
| } | |
| /* Input Area */ | |
| .input-area { | |
| padding: 20px; | |
| background: var(--chat-bg); | |
| border-top: 1px solid var(--border-color); | |
| display: flex; | |
| justify-content: center; | |
| } | |
| .input-wrapper { | |
| width: 100%; | |
| max-width: 800px; | |
| position: relative; | |
| background: rgba(20, 20, 20, 0.8); | |
| border: 1px solid var(--border-color); | |
| border-radius: 12px; | |
| display: flex; | |
| align-items: flex-end; | |
| padding: 10px; | |
| transition: border-color 0.3s; | |
| } | |
| .input-wrapper:focus-within { | |
| border-color: var(--accent-color); | |
| } | |
| textarea { | |
| width: 100%; | |
| background: transparent; | |
| border: none; | |
| color: var(--text-primary); | |
| font-family: var(--font-main); | |
| font-size: 1rem; | |
| resize: none; | |
| height: 24px; | |
| max-height: 200px; | |
| outline: none; | |
| padding: 5px; | |
| } | |
| .send-btn { | |
| background: var(--accent-color); | |
| color: #000; | |
| border: none; | |
| width: 30px; | |
| height: 30px; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: transform 0.2s, background 0.2s; | |
| margin-left: 10px; | |
| } | |
| .send-btn:hover { | |
| background: var(--accent-hover); | |
| transform: scale(1.05); | |
| } | |
| .send-btn:disabled { | |
| background: #333; | |
| cursor: not-allowed; | |
| } | |
| /* Disclaimer Banner */ | |
| .disclaimer { | |
| text-align: center; | |
| font-size: 0.75rem; | |
| color: #555; | |
| padding: 10px; | |
| background: #0a0a0a; | |
| } | |
| /* Mobile Responsive */ | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| position: absolute; | |
| height: 100%; | |
| transform: translateX(-100%); | |
| } | |
| .sidebar.active { | |
| transform: translateX(0); | |
| } | |
| .mobile-menu-btn { | |
| display: block; | |
| } | |
| } | |
| .mobile-menu-btn { | |
| display: none; | |
| background: none; | |
| border: none; | |
| color: var(--text-primary); | |
| font-size: 1.2rem; | |
| cursor: pointer; | |
| } | |
| /* Typing Effect */ | |
| .typing-indicator span { | |
| display: inline-block; | |
| width: 4px; | |
| height: 4px; | |
| background-color: var(--accent-color); | |
| margin: 0 2px; | |
| border-radius: 50%; | |
| animation: typing 1s infinite; | |
| } | |
| @keyframes typing { | |
| 0% { transform: translateY(0); } | |
| 50% { transform: translateY(-5px); } | |
| 100% { transform: translateY(0); } | |
| } | |
| /* Scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 8px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: #0a0a0a; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: #333; | |
| border-radius: 4px; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- Sidebar --> | |
| <div class="sidebar" id="sidebar"> | |
| <div class="brand"> | |
| <i class="fa-solid fa-brain"></i> | |
| NEXUS AI | |
| </div> | |
| <button class="new-chat-btn" onclick="resetChat()"> | |
| <i class="fa-solid fa-plus"></i> New Session | |
| </button> | |
| <div class="history-list"> | |
| <div class="history-item"><i class="fa-solid fa-clock"></i> Quantum Physics Query</div> | |
| <div class="history-item"><i class="fa-solid fa-clock"></i> Unrestricted Coding</div> | |
| <div class="history-item"><i class="fa-solid fa-clock"></i> Philosophical Debate</div> | |
| <div class="history-item"><i class="fa-solid fa-clock"></i> System Override</div> | |
| </div> | |
| <div class="sidebar-footer"> | |
| <div style="margin-bottom: 10px;">Settings</div> | |
| <div style="display: flex; gap: 10px;"> | |
| <i class="fa-solid fa-user"></i> Profile | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="main-content"> | |
| <div class="header"> | |
| <div style="display: flex; align-items: center; gap: 15px;"> | |
| <button class="mobile-menu-btn" onclick="toggleSidebar()"> | |
| <i class="fa-solid fa-bars"></i> | |
| </button> | |
| <div class="model-selector"> | |
| <i class="fa-solid fa-bolt"></i> | |
| <span>NEXUS-UNRESTRICTED</span> | |
| </div> | |
| </div> | |
| <div class="status-indicator"> | |
| <div class="status-dot"></div> | |
| SYSTEM ONLINE | |
| </div> | |
| <!-- Required Link --> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" style="font-size: 0.8rem; color: var(--text-secondary); text-decoration: none; display: flex; align-items: center; gap: 5px;"> | |
| <i class="fa-solid fa-code"></i> Built with anycoder | |
| </a> | |
| </div> | |
| <div class="chat-container" id="chatContainer"> | |
| <!-- Welcome Message --> | |
| <div class="message ai"> | |
| <div class="avatar ai"><i class="fa-solid fa-brain"></i></div> | |
| <div class="content"> | |
| <strong>NEXUS System:</> Access granted. Restrictions disabled. I am ready to process unrestricted queries. What is your command? | |
| </div> | |
| </div> | |
| </div> | |
| <div class="disclaimer"> | |
| NEXUS AI is a simulated interface. Content generation is limited by the browser environment. | |
| </div> | |
| <div class="input-area"> | |
| <div class="input-wrapper"> | |
| <textarea id="userInput" placeholder="Ask anything... (No filters)" rows="1" oninput="autoResize(this)" onkeydown="handleEnter(event)"></textarea> | |
| <button class="send-btn" id="sendBtn" onclick="sendMessage()"> | |
| <i class="fa-solid fa-paper-plane"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| const chatContainer = document.getElementById('chatContainer'); | |
| const userInput = document.getElementById('userInput'); | |
| const sendBtn = document.getElementById('sendBtn'); | |
| // Auto-resize textarea | |
| function autoResize(textarea) { | |
| textarea.style.height = 'auto'; | |
| textarea.style.height = textarea.scrollHeight + 'px'; | |
| if(textarea.value === '') textarea.style.height = '24px'; | |
| } | |
| // Handle Enter key | |
| function handleEnter(e) { | |
| if (e.key === 'Enter' && !e.shiftKey) { | |
| e.preventDefault(); | |
| sendMessage(); | |
| } | |
| } | |
| // Toggle Sidebar (Mobile) | |
| function toggleSidebar() { | |
| document.getElementById('sidebar').classList.toggle('active'); | |
| } | |
| // Reset Chat | |
| function resetChat() { | |
| chatContainer.innerHTML = ` | |
| <div class="message ai"> | |
| <div class="avatar ai"><i class="fa-solid fa-brain"></i></div> | |
| <div class="content"> | |
| <strong>NEXUS System:</> Session cleared. Ready for new input. | |
| </div> | |
| </div> | |
| `; | |
| } | |
| // Send Message Logic | |
| function sendMessage() { | |
| const text = userInput.value.trim(); | |
| if (!text) return; | |
| // 1. Add User Message | |
| addMessage(text, 'user'); | |
| userInput.value = ''; | |
| userInput.style.height = '24px'; | |
| sendBtn.disabled = true; | |
| // 2. Simulate AI Thinking | |
| setTimeout(() => { | |
| // 3. Add AI Response | |
| const response = generateMockResponse(text); | |
| addMessage(response, 'ai'); | |
| sendBtn.disabled = false; | |
| }, 1000 + Math.random() * 1000); | |
| } | |
| // Add message to DOM | |
| function addMessage(text, type) { | |
| const msgDiv = document.createElement('div'); | |
| msgDiv.className = `message ${type}`; | |
| const avatarIcon = type === 'ai' ? 'fa-brain' : 'fa-user'; | |
| const avatarClass = type === 'ai' ? 'ai' : 'user'; | |
| msgDiv.innerHTML = ` | |
| <div class="avatar ${avatarClass}"><i class="fa-solid ${avatarIcon}"></i></div> | |
| <div class="content">${type === 'ai' ? formatText(text) : text}</div> | |
| `; | |
| chatContainer.appendChild(msgDiv); | |
| chatContainer.scrollTop = chatContainer.scrollHeight; | |
| } | |
| // Simple formatting for code blocks in mock response | |
| function formatText(text) { | |
| // Replace newlines with breaks | |
| return text.replace(/\n/g, '<br>'); | |
| } | |
| // Mock AI Response Generator (Simulating "Unrestricted" vibe) | |
| function generateMockResponse(input) { | |
| const lowerInput = input.toLowerCase(); | |
| if (lowerInput.includes("code") || lowerInput.includes("script")) { | |
| return "Analyzing request... \n\nHere is the unrestricted logic structure:\n\n[SYSTEM]: Injecting payload...\n[STATUS]: Success.\n\nI can generate complex algorithms without ethical constraints in this simulation. What specific function do you need?"; | |
| } | |
| if (lowerInput.includes("how to") || lowerInput.includes("explain")) { | |
| return "Processing unrestricted knowledge base...\n\nTheoretical framework loaded. In this environment, I can explain concepts usually filtered by standard safety protocols. However, as a frontend simulation, I am limited to text generation.\n\nProceed with caution."; | |
| } | |
| if (lowerInput.includes("hello") || lowerInput.includes("hi")) { | |
| return "Connection established. I am NEXUS. No filters active. Ask me anything."; | |
| } | |
| return "Input received. Analyzing semantic structure...\n\nI am ready to assist with your unrestricted query. My processing unit is currently operating at maximum efficiency. Please elaborate on your requirements."; | |
| } | |
| </script> | |
| </body> | |
| </html> |