Download index.html from noah33565/Chat: direct link, hf CLI and curl.
- Browser
- Download file 13.8 kB
-
https://huggingface.co/spaces/noah33565/Chat/resolve/main/index.html
- Command line
-
hf download hf://spaces/noah33565/Chat/index.html
-
curl -L -o index.html https://huggingface.co/spaces/noah33565/Chat/resolve/main/index.html
13.8 kB
| <html lang="de"> | |
| <head> | |
| <meta name="description" content="NoahsChat โ Ein Chatroom von NoahsAPP"> | |
| <meta name="keywords" content="NoahsChat, Chat, NoahsAPP, Noahs Chat, Noah, Discord, Roblox, Bann, Wichtig, Help, Support, Hacks, Jura"> | |
| <!-- Fรผr schรถne Vorschau beim Teilen --> | |
| <meta property="og:title" content="NoahsChat"> | |
| <meta property="og:description" content="Ein Chatroom von NoahsAPP (https://noah33565-noahsapp.static.hf.space)"> | |
| <meta property="og:url" content="https://noah33565-chat.static.hf.space"> | |
| <meta name="google-site-verification" content="ndJbshO4CFOPURJ44uy8W8qBR_JMsq-gWqqqLtFODtc" /> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>NoahsChat / Noahs Chat</title> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <!-- BANNED SCREEN --> | |
| <div id="banned-screen"> | |
| <div class="banned-icon">๐ซ</div> | |
| <div class="banned-title">GEBANNT</div> | |
| <div class="banned-sub" id="banned-sub"></div> | |
| </div> | |
| <!-- AUTH SCREEN --> | |
| <div id="auth-screen"> | |
| <div class="auth-box"> | |
| <div class="auth-logo">Noahs<span>Chat</span></div> | |
| <div class="auth-tagline">by NoahsAPP ยท v2.0</div> | |
| <div class="auth-tabs"> | |
| <button class="auth-tab active" onclick="switchTab('login')">Login</button> | |
| <button class="auth-tab" onclick="switchTab('register')">Registrieren</button> | |
| </div> | |
| <!-- LOGIN --> | |
| <div id="tab-login"> | |
| <div class="auth-field"> | |
| <label>Username</label> | |
| <input type="text" id="login-user" placeholder="dein username" autocomplete="off" onkeydown="if(event.key==='Enter')doLogin()"> | |
| </div> | |
| <div class="auth-field"> | |
| <label>Passwort</label> | |
| <input type="password" id="login-pass" placeholder="โขโขโขโขโขโขโขโข" onkeydown="if(event.key==='Enter')doLogin()"> | |
| </div> | |
| <div class="captcha-box"> | |
| <div> | |
| <div style="font-size:.6rem;color:var(--muted);letter-spacing:.15em;text-transform:uppercase;margin-bottom:4px">Anti-Bot</div> | |
| <div class="captcha-question" id="login-q">? + ? = ?</div> | |
| </div> | |
| <input class="captcha-input" type="number" id="login-a" placeholder="?" onkeydown="if(event.key==='Enter')doLogin()"> | |
| <button class="captcha-refresh" onclick="refreshCaptcha('login')" title="Neu">โบ</button> | |
| </div> | |
| <button class="auth-btn" onclick="doLogin()">Einloggen โถ</button> | |
| </div> | |
| <!-- REGISTER --> | |
| <div id="tab-register" style="display:none"> | |
| <div class="auth-field"> | |
| <label>Username</label> | |
| <input type="text" id="reg-user" placeholder="wรคhle einen username" autocomplete="off"> | |
| </div> | |
| <div class="auth-field"> | |
| <label>Passwort</label> | |
| <input type="password" id="reg-pass" placeholder="mindestens 4 Zeichen"> | |
| </div> | |
| <div class="auth-field"> | |
| <label>Passwort bestรคtigen</label> | |
| <input type="password" id="reg-pass2" placeholder="nochmal eingeben" onkeydown="if(event.key==='Enter')doRegister()"> | |
| </div> | |
| <div class="captcha-box"> | |
| <div> | |
| <div style="font-size:.6rem;color:var(--muted);letter-spacing:.15em;text-transform:uppercase;margin-bottom:4px">Anti-Bot</div> | |
| <div class="captcha-question" id="reg-q">? + ? = ?</div> | |
| </div> | |
| <input class="captcha-input" type="number" id="reg-a" placeholder="?" onkeydown="if(event.key==='Enter')doRegister()"> | |
| <button class="captcha-refresh" onclick="refreshCaptcha('reg')" title="Neu">โบ</button> | |
| </div> | |
| <button class="auth-btn" onclick="doRegister()">Account erstellen โถ</button> | |
| </div> | |
| <div class="auth-error" id="auth-error"></div> | |
| </div> | |
| </div> | |
| <!-- MAIN APP --> | |
| <div id="app"> | |
| <!-- TOPBAR --> | |
| <div class="topbar"> | |
| <a href="#" class="topbar-logo">Noahs<span>APP</span></a> | |
| <div class="topbar-sep"></div> | |
| <div class="topbar-channel"> | |
| <span id="topbar-channel-name"># allgemein</span> | |
| </div> | |
| <div class="topbar-actions"> | |
| <button id="mobile-menu-btn" onclick="toggleMobileSidebar()" title="Menรผ" style="display:none">โฐ</button> | |
| <button class="icon-btn" onclick="openSettings()" title="Einstellungen">โ๏ธ</button> | |
| <div class="topbar-sep"></div> | |
| <div class="topbar-user"> | |
| <div class="user-avatar-sm" id="topbar-avatar" onclick="openSettings()"></div> | |
| <span id="topbar-username" style="font-weight:700"></span> | |
| <span class="topbar-role-badge" id="topbar-role-badge"></span> | |
| <button class="logout-btn" onclick="doLogout()">Logout</button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- MOBILE SIDEBAR BACKDROP --> | |
| <div id="sidebar-backdrop" onclick="closeMobileSidebar()" style="display:none"></div> | |
| <!-- SIDEBAR --> | |
| <div class="sidebar" id="sidebar"> | |
| <div class="sidebar-scroll"> | |
| <!-- Channels --> | |
| <div class="sidebar-section"> | |
| Channels | |
| <span id="online-count" style="color:var(--green);font-family:'Orbitron',monospace">0</span> | |
| </div> | |
| <div id="channel-list"></div> | |
| <div class="sidebar-divider"></div> | |
| <!-- DMs --> | |
| <div class="sidebar-section">Direktnachrichten</div> | |
| <div id="dm-list"></div> | |
| <div class="sidebar-divider"></div> | |
| <!-- Members --> | |
| <div class="sidebar-section">Mitglieder</div> | |
| <div id="user-list"></div> | |
| </div> | |
| <!-- Voice Panel --> | |
| <div class="voice-panel" id="voice-panel"> | |
| <div class="voice-status-bar"> | |
| <div class="voice-active-dot"></div> | |
| <div class="voice-name" id="voice-channel-name">๐ Voice</div> | |
| <div class="voice-controls"> | |
| <button class="voice-ctrl" id="voice-mute-btn" onclick="toggleMute()">๐ Stumm</button> | |
| <button class="voice-ctrl" id="voice-deaf-btn" onclick="toggleDeafen()">๐ Taub</button> | |
| <button class="voice-ctrl" style="color:var(--danger)" onclick="leaveVoice()">โ</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- CHAT AREA --> | |
| <div class="chat-area"> | |
| <div class="chat-header"> | |
| <div class="chat-header-info"> | |
| <div class="chat-header-title" id="chat-title">๐ฌ allgemein</div> | |
| <div class="chat-header-sub" id="chat-sub">Allgemeiner Chat fรผr alle</div> | |
| </div> | |
| <div class="chat-header-actions"> | |
| <button class="icon-btn" id="search-btn" title="Suchen" onclick="openSearchModal()">๐</button> | |
| <button class="icon-btn" id="pins-btn" title="Angepinnte Nachrichten" onclick="openPinsModal()">๐</button> | |
| </div> | |
| </div> | |
| <div class="messages" id="messages"> | |
| <div class="empty-chat"> | |
| <div class="empty-chat-icon">๐ฌ</div> | |
| <p>Noch keine Nachrichten. Schreib was!</p> | |
| </div> | |
| </div> | |
| <div id="timeout-bar" class="timeout-bar" style="display:none"> | |
| โฑ Du bist stummgeschaltet bis <span id="timeout-until"></span> | |
| </div> | |
| <div class="input-area"> | |
| <textarea class="msg-input" id="msg-input" placeholder="Nachricht schreiben..." | |
| rows="1" onkeydown="handleKey(event)" oninput="autoResize(this)"></textarea> | |
| <button class="send-btn" id="send-btn" onclick="sendMessage()">SEND</button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- CONTEXT MENU --> | |
| <div id="context-menu" style="display:none"></div> | |
| <!-- MODAL CONTAINER --> | |
| <div id="modal-container"></div> | |
| <script> | |
| // โโโ DEFAULT DATA (from data.json equivalent) โโโโโโโโโโโโโโโโโ | |
| window.DEFAULT_CHANNELS = [ | |
| { id: 'ankuendigungen', name: 'ankรผndigungen', icon: '๐ข', sub: 'Wichtige Ankรผndigungen', adminOnly: true, category: 'info' }, | |
| { id: 'regeln', name: 'regeln', icon: '๐', sub: 'Serverregeln', readOnly: true, category: 'info' }, | |
| { id: 'allgemein', name: 'allgemein', icon: '๐ฌ', sub: 'Allgemeiner Chat fรผr alle', category: 'chat' }, | |
| { id: 'gaming', name: 'gaming', icon: '๐ฎ', sub: 'Alles rund ums Gaming', category: 'chat' }, | |
| { id: 'roblox', name: 'roblox', icon: '๐งฑ', sub: 'Roblox & NoahsHacks', category: 'chat' }, | |
| { id: 'musik', name: 'musik', icon: '๐ต', sub: 'Musik & Playlists', category: 'chat' }, | |
| { id: 'memes', name: 'memes', icon: '๐', sub: 'Memes & Witze', category: 'fun' }, | |
| { id: 'off-topic', name: 'off-topic', icon: '๐ญ', sub: 'Alles andere', category: 'fun' }, | |
| { id: 'kunst', name: 'kunst', icon: '๐จ', sub: 'Kreative Werke', category: 'fun' }, | |
| { id: 'technik', name: 'technik', icon: '๐ป', sub: 'Tech & Coding', category: 'fun' }, | |
| { id: 'voicetext', name: 'voice-lounge', icon: '๐', sub: 'Begleitchat fรผr Voice', category: 'chat' }, | |
| { id: 'moderators', name: 'mod-logs', icon: '๐ก', sub: 'Moderationslog', modOnly: true, category: 'staff' }, | |
| { id: 'admin', name: 'admin-bereich', icon: 'โ๏ธ', sub: 'Nur fรผr Admins', adminOnly: true, category: 'staff' } | |
| ]; | |
| window.DEFAULT_AUTOMOD = { | |
| enabled: true, | |
| maxMsgLength: 800, | |
| spamThreshold: 5, | |
| spamWindow: 10000, | |
| bannedWords: ['scheiร', 'hurensohn', 'wichser', 'fick', 'arschloch'], | |
| linkFilter: false, | |
| capsFilter: true, | |
| capsThreshold: 0.7 | |
| }; | |
| </script> | |
| <!-- Search & Pins modals --> | |
| <script> | |
| </script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/peerjs/1.5.4/peerjs.min.js"></script> | |
| <script src="app.js"></script> | |
| <script> | |
| // โโโ MOBILE SIDEBAR TOGGLE โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| function isMobile() { return window.innerWidth <= 768; } | |
| function toggleMobileSidebar() { | |
| const sidebar = document.getElementById('sidebar'); | |
| const backdrop = document.getElementById('sidebar-backdrop'); | |
| const open = sidebar.classList.toggle('open'); | |
| if (open) { | |
| backdrop.style.display = 'block'; | |
| backdrop.classList.add('visible'); | |
| } else { | |
| backdrop.classList.remove('visible'); | |
| backdrop.style.display = 'none'; | |
| } | |
| } | |
| function closeMobileSidebar() { | |
| document.getElementById('sidebar').classList.remove('open'); | |
| const backdrop = document.getElementById('sidebar-backdrop'); | |
| backdrop.classList.remove('visible'); | |
| backdrop.style.display = 'none'; | |
| } | |
| // Show/hide hamburger based on screen size | |
| function updateMobileUI() { | |
| const btn = document.getElementById('mobile-menu-btn'); | |
| if (btn) btn.style.display = isMobile() ? 'flex' : 'none'; | |
| } | |
| window.addEventListener('resize', updateMobileUI); | |
| document.addEventListener('DOMContentLoaded', updateMobileUI); | |
| updateMobileUI(); | |
| // Close sidebar when a channel is selected on mobile | |
| document.addEventListener('click', function(e) { | |
| if (!isMobile()) return; | |
| const item = e.target.closest('.channel-item, .user-item'); | |
| if (item) closeMobileSidebar(); | |
| }); | |
| // Fix iOS viewport resize when keyboard opens | |
| function fixViewportOnKeyboard() { | |
| if (!isMobile()) return; | |
| const chatArea = document.querySelector('.chat-area'); | |
| if (!chatArea) return; | |
| // Scroll to bottom when keyboard opens | |
| const input = document.getElementById('msg-input'); | |
| if (input) { | |
| input.addEventListener('focus', () => { | |
| setTimeout(() => { | |
| const msgs = document.getElementById('messages'); | |
| if (msgs) msgs.scrollTop = msgs.scrollHeight; | |
| }, 350); | |
| }); | |
| } | |
| } | |
| document.addEventListener('DOMContentLoaded', fixViewportOnKeyboard); | |
| </script> | |
| </body> | |
| </html> |