Download aichat/index.html from EDUrocks/EDUrocks-3.0-frontend-source-code: direct link, hf CLI and curl.
- Browser
- Download file 16.1 kB
-
https://huggingface.co/datasets/EDUrocks/EDUrocks-3.0-frontend-source-code/resolve/main/aichat/index.html
- Command line
-
hf download hf://datasets/EDUrocks/EDUrocks-3.0-frontend-source-code/aichat/index.html
-
curl -L -o index.html https://huggingface.co/datasets/EDUrocks/EDUrocks-3.0-frontend-source-code/resolve/main/aichat/index.html
16.1 kB
| <html lang="en" class="scroll-smooth"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>EDUrocks AI Chat</title> | |
| <meta name="robots" content="noindex, nofollow, noarchive, nosnippet, noimageindex"> | |
| <meta name="googlebot" content="noindex, nofollow, noarchive, nosnippet, noimageindex"> | |
| <link rel="icon" href="favicon.ico" type="image/x-icon"> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link href="https://fonts.googleapis.com/css2?family=Pacifico&family=Inter:wght@400;500;600;700;800;900&display=swap" rel="stylesheet"> | |
| <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | |
| <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css"> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous"> | |
| <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js" integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8" crossorigin="anonymous"></script> | |
| <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script> | |
| <script src="../assets/js/aws-detection.js"></script> | |
| <script src="../assets/js/ip-restriction.js"></script> | |
| <style type="text/tailwindcss"> | |
| @theme { | |
| --color-edu-dark: #011627; | |
| --color-edu-dark-secondary: #3C1642; | |
| --color-edu-dark-accent: #58355E; | |
| --color-edu-text: #e8d5e0; | |
| --color-edu-text-secondary: #c4a5b8; | |
| --color-edu-pink: #F4154D; | |
| --color-edu-pink-light: #FA0F71; | |
| --color-edu-rose: #FF1F84; | |
| --font-pacifico: 'Pacifico', cursive; | |
| --font-inter: 'Inter', sans-serif; | |
| --animate-gradient: gradient 6s ease infinite; | |
| --animate-fade-in: fadeIn 0.5s ease-in-out; | |
| --animate-slide-down: slideDown 0.4s ease-out; | |
| --animate-slide-up: slideUp 0.3s ease-out; | |
| --animate-message-slide: messageSlide 0.3s ease; | |
| --animate-bounce-dot: bounceDot 1.4s infinite ease-in-out both; | |
| --animate-pulse: pulse 2s infinite; | |
| --animate-blink: blink 1s infinite; | |
| @keyframes gradient { | |
| 0%, 100% { background-position: 0% 50% } | |
| 50% { background-position: 100% 50% } | |
| } | |
| @keyframes fadeIn { | |
| 0% { opacity: 0; transform: translateY(10px) } | |
| 100% { opacity: 1; transform: translateY(0) } | |
| } | |
| @keyframes slideDown { | |
| 0% { opacity: 0; transform: translateY(-20px) } | |
| 100% { opacity: 1; transform: translateY(0) } | |
| } | |
| @keyframes slideUp { | |
| 0% { opacity: 0; transform: translateY(20px) } | |
| 100% { opacity: 1; transform: translateY(0) } | |
| } | |
| @keyframes messageSlide { | |
| 0% { opacity: 0; transform: translateY(10px) } | |
| 100% { opacity: 1; transform: translateY(0) } | |
| } | |
| @keyframes bounceDot { | |
| 0%, 80%, 100% { transform: scale(0); opacity: 0.5 } | |
| 40% { transform: scale(1); opacity: 1 } | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1 } | |
| 50% { opacity: 0.6 } | |
| } | |
| @keyframes blink { | |
| 0%, 100% { opacity: 1 } | |
| 50% { opacity: 0.3 } | |
| } | |
| } | |
| </style> | |
| <style> | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| } | |
| .gradient-text { | |
| background: linear-gradient(45deg, #F4154D, #FA0F71, #e8d5e0, #FA0F71, #F4154D); | |
| background-size: 200% 200%; | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| animation: gradient 6s ease infinite; | |
| } | |
| /* Custom scrollbar for chat messages */ | |
| .chat-messages::-webkit-scrollbar { | |
| width: 8px; | |
| } | |
| .chat-messages::-webkit-scrollbar-track { | |
| background: #3C1642; | |
| } | |
| .chat-messages::-webkit-scrollbar-thumb { | |
| background: #58355E; | |
| border-radius: 4px; | |
| } | |
| .chat-messages::-webkit-scrollbar-thumb:hover { | |
| background: #F4154D; | |
| } | |
| /* Loading dot animations */ | |
| .loading-dot:nth-child(1) { animation-delay: -0.32s; } | |
| .loading-dot:nth-child(2) { animation-delay: -0.16s; } | |
| /* Markdown Content Styling */ | |
| .message-body.markdown-body { | |
| line-height: 1.6; | |
| } | |
| .message-body.markdown-body p { | |
| margin-bottom: 1em; | |
| } | |
| .message-body.markdown-body p:last-child { | |
| margin-bottom: 0; | |
| } | |
| .message-body.markdown-body pre { | |
| background: #011627 ; | |
| padding: 1rem; | |
| border-radius: 0.5rem; | |
| overflow-x: auto; | |
| margin: 0.75rem 0; | |
| border: 1px solid #58355E; | |
| } | |
| .message-body.markdown-body code { | |
| font-family: 'Courier New', monospace; | |
| font-size: 0.9em; | |
| } | |
| /* Inline code */ | |
| .message-body.markdown-body :not(pre) > code { | |
| background: rgba(88, 53, 94, 0.5); | |
| padding: 0.2em 0.4em; | |
| border-radius: 0.3em; | |
| color: #FA0F71; | |
| } | |
| .message-body.markdown-body h1, | |
| .message-body.markdown-body h2, | |
| .message-body.markdown-body h3, | |
| .message-body.markdown-body h4 { | |
| color: #fff; | |
| font-weight: 700; | |
| margin-top: 1.5em; | |
| margin-bottom: 0.5em; | |
| } | |
| .message-body.markdown-body h1 { font-size: 1.5em; border-bottom: 1px solid #58355E; padding-bottom: 0.3em; } | |
| .message-body.markdown-body h2 { font-size: 1.3em; } | |
| .message-body.markdown-body h3 { font-size: 1.1em; } | |
| .message-body.markdown-body ul, | |
| .message-body.markdown-body ol { | |
| padding-left: 1.5em; | |
| margin-bottom: 1em; | |
| } | |
| .message-body.markdown-body ul { list-style-type: disc; } | |
| .message-body.markdown-body ol { list-style-type: decimal; } | |
| .message-body.markdown-body a { | |
| color: #FA0F71; | |
| text-decoration: underline; | |
| } | |
| .message-body.markdown-body blockquote { | |
| border-left: 4px solid #F4154D; | |
| padding-left: 1em; | |
| color: #c4a5b8; | |
| font-style: italic; | |
| } | |
| /* KaTeX overrides */ | |
| .katex { font-size: 1.1em; } | |
| .katex-display { overflow-x: auto; overflow-y: hidden; } | |
| </style> | |
| </head> | |
| <body class="bg-edu-dark text-edu-text min-h-screen flex flex-col"> | |
| <header class="bg-edu-dark-secondary border-b-2 border-edu-dark-accent sticky top-0 z-50 backdrop-blur-lg shadow-lg"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex items-center justify-between py-4 gap-4"> | |
| <div class="flex items-center gap-3"> | |
| <div class="hidden sm:block"> | |
| <h1 class="font-pacifico text-xl md:text-2xl gradient-text">EDUrocks AI</h1> | |
| <p class="text-edu-text-secondary text-xs hidden md:block">An EDUrocks Service</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center gap-2 md:gap-3 flex-wrap justify-end"> | |
| <a href="#" id="back-to-main" | |
| class="flex items-center justify-center w-9 h-9 md:w-10 md:h-10 bg-edu-dark-accent border border-edu-pink/20 text-edu-text-secondary rounded-xl hover:bg-edu-pink hover:text-white transition-all hover:-translate-y-0.5" | |
| title="Back to Main Site"> | |
| <span class="material-icons text-lg md:text-xl">arrow_back</span> | |
| </a> | |
| <div class="flex items-center gap-2 px-3 py-2 bg-edu-dark-accent border border-edu-pink/20 rounded-xl text-xs md:text-sm text-edu-text-secondary"> | |
| <div id="connection-dot" class="w-2.5 h-2.5 rounded-full bg-yellow-500 animate-blink shadow-lg shadow-yellow-500/50"></div> | |
| <span id="connection-status-text" class="hidden sm:inline font-medium">Checking...</span> | |
| </div> | |
| <button id="clear-chat" | |
| class="flex items-center justify-center w-9 h-9 md:w-10 md:h-10 bg-edu-dark-accent border border-edu-pink/20 text-edu-text-secondary rounded-xl hover:bg-edu-pink hover:text-white transition-all hover:-translate-y-0.5" | |
| title="Clear Chat"> | |
| <span class="material-icons text-lg md:text-xl">delete_outline</span> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <main class="flex-1 flex flex-col max-w-7xl w-full mx-auto p-2 md:p-4 lg:p-8"> | |
| <div class="flex-1 flex flex-col bg-gradient-to-br from-edu-dark-secondary to-edu-dark-accent/80 border border-edu-pink/20 rounded-2xl md:rounded-3xl overflow-hidden shadow-2xl"> | |
| <div id="chat-messages" class="chat-messages flex-1 overflow-y-auto p-4 md:p-6 lg:p-8 flex flex-col gap-4 md:gap-6 min-h-[400px]"> | |
| <div class="welcome-screen flex flex-col items-center justify-center text-center p-6 md:p-12 gap-4 md:gap-6 animate-fade-in"> | |
| <h2 class="text-2xl md:text-3xl lg:text-4xl font-bold gradient-text">Welcome to EDUrocks AI</h2> | |
| <p class="text-edu-text-secondary text-sm md:text-base max-w-md lg:max-w-lg">Your intelligent AI assistant ready to help with questions, code, creative writing, and more!</p> | |
| </div> | |
| </div> | |
| <div id="image-preview-container" class="hidden p-4 md:p-6 bg-edu-dark/50 border-t border-edu-pink/20"> | |
| <div id="image-preview-wrapper" class="flex gap-3"></div> | |
| </div> | |
| <div class="p-4 md:p-6 bg-edu-dark/50 border-t border-edu-pink/20"> | |
| <div class="flex gap-2 md:gap-3 items-end"> | |
| <label class="flex items-center justify-center w-12 h-12 md:w-14 md:h-14 bg-edu-dark-accent border-2 border-edu-pink/20 text-edu-text-secondary rounded-2xl cursor-pointer transition-all hover:border-edu-pink hover:text-edu-pink hover:-translate-y-0.5 flex-shrink-0" | |
| title="Upload Image"> | |
| <span class="material-icons text-xl md:text-2xl">image</span> | |
| <input type="file" | |
| id="image-input" | |
| class="hidden" | |
| accept="image/png,image/jpeg,image/jpg,image/webp,image/heic,image/heif"> | |
| </label> | |
| <textarea id="chat-input" | |
| class="flex-1 bg-edu-dark-accent border-2 border-edu-pink/20 rounded-2xl px-4 py-3 md:px-5 md:py-4 text-edu-text text-sm md:text-base resize-none outline-none transition-all focus:border-edu-pink focus:ring-2 focus:ring-edu-pink/20 placeholder-edu-text-secondary/50 min-h-[3rem] md:min-h-[3.5rem] max-h-[200px]" | |
| placeholder="Type your message here..." | |
| rows="1"></textarea> | |
| <button id="send-btn" | |
| class="flex items-center justify-center w-12 h-12 md:w-14 md:h-14 bg-gradient-to-br from-edu-pink to-edu-pink-light text-white rounded-2xl transition-all hover:-translate-y-0.5 hover:shadow-lg hover:shadow-edu-pink/30 active:translate-y-0 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:translate-y-0 flex-shrink-0" | |
| title="Send Message"> | |
| <span class="material-icons text-xl md:text-2xl">send</span> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <script src="js/app.js"></script> | |
| <script> | |
| // Check if bypass mode is enabled (respects user preference from landing page) | |
| function isBypassEnabled() { | |
| try { | |
| const pref = localStorage.getItem('edurocks_bypass_mode'); | |
| return pref !== 'normal'; // default to bypass if not set | |
| } catch (e) { | |
| return true; | |
| } | |
| } | |
| // ChromeOS Detection and Blank Tab Functionality | |
| function isChromeOS() { | |
| // If IP is restricted or user prefers normal mode, always return false to disable bypass | |
| if (window.isIPRestricted || window.forceDisableBypass || !isBypassEnabled()) { | |
| return false; | |
| } | |
| const userAgent = navigator.userAgent.toLowerCase(); | |
| return userAgent.includes('cros') || | |
| userAgent.includes('chromeos') || | |
| userAgent.includes('chrome os'); | |
| } | |
| // Only run bypass if not IP restricted and bypass is enabled | |
| if (!window.isIPRestricted && !window.forceDisableBypass && isBypassEnabled() && isChromeOS() && window.location.protocol !== 'about:' && !sessionStorage.getItem('chromeos_redirected')) { | |
| sessionStorage.setItem('chromeos_redirected', 'true'); | |
| const newWindow = window.open('about:blank', '_blank'); | |
| if (newWindow) { | |
| newWindow.document.body.style.margin = '0'; | |
| newWindow.document.body.style.height = '100vh'; | |
| var iframe = newWindow.document.createElement('iframe'); | |
| iframe.style.border = 'none'; | |
| iframe.style.width = '100%'; | |
| iframe.style.height = '100%'; | |
| iframe.style.margin = '0'; | |
| iframe.src = window.location.href; | |
| newWindow.document.body.appendChild(iframe); | |
| window.close(); | |
| } | |
| } | |
| function loadPageInBlank(url) { | |
| if (window.location.protocol === 'about:') { | |
| const iframe = document.querySelector('iframe'); | |
| if (iframe) { | |
| iframe.src = url; | |
| } else { | |
| window.location.href = url; | |
| } | |
| } else { | |
| window.location.href = url; | |
| } | |
| } | |
| // Initialize Auth (load dynamically) | |
| (async () => { | |
| try { | |
| const { Auth } = await import('../assets/js/auth.js'); | |
| const { initNavbarAuth } = await import('../assets/js/navbar-auth.js'); | |
| await import('../assets/js/user-profile.js'); | |
| window.Auth = Auth; | |
| await initNavbarAuth(); | |
| } catch (e) { | |
| console.log("Auth modules not found, skipping..."); | |
| } | |
| })(); | |
| // Back Button Handler | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const backBtn = document.getElementById('back-to-main'); | |
| if (backBtn) { | |
| backBtn.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| loadPageInBlank('../index.html'); | |
| }); | |
| } | |
| }); | |
| </script> | |
| </body> | |
| </html> |