103 lines
4.4 KiB
HTML
103 lines
4.4 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Web OSCAR Chat</title>
|
|
<link rel="stylesheet" href="/style.css?v=28">
|
|
</head>
|
|
<body>
|
|
<div id="app">
|
|
<header class="topbar">
|
|
<div class="brand">Web OSCAR Chat</div>
|
|
<div id="tocStatus" class="toc-status hidden" title="TOC disconnected"><span class="dot dot-off"></span><span class="toc-label">Disconnected</span></div>
|
|
<div id="me" class="me"></div>
|
|
<div class="topbar-actions">
|
|
<button id="logoutBtn" class="hidden" type="button">Log out</button>
|
|
</div>
|
|
</header>
|
|
|
|
<div id="broadcastBanner" class="banner hidden" role="status"></div>
|
|
|
|
<main>
|
|
<section id="loginView" class="panel login-panel">
|
|
<h1>Sign in</h1>
|
|
<p class="muted login-hint">Sign in with your OSCAR screen name. Server defaults to Claytonia; change host/ports to connect elsewhere.</p>
|
|
<form id="loginForm">
|
|
<div class="login-grid">
|
|
<label>Screen name <input id="screenName" name="screenName" autocomplete="username" required></label>
|
|
<label>Password <input id="password" name="password" type="password" autocomplete="current-password" required></label>
|
|
</div>
|
|
<div class="login-grid login-grid-server">
|
|
<label class="field-host">Server host <input id="serverHost" name="host" autocomplete="off" spellcheck="false" value="oscar.claytonia.net" required></label>
|
|
<label>Web API <input id="webapiPort" name="webapiPort" type="number" min="1" max="65535" value="8081" required></label>
|
|
<label>TOC <input id="tocPort" name="tocPort" type="number" min="1" max="65535" value="9898" required></label>
|
|
</div>
|
|
<div class="login-grid login-grid-captcha">
|
|
<label class="captcha-label">Bot check <span id="captchaQuestion" class="captcha-q">...</span>
|
|
<input id="captchaAnswer" name="captchaAnswer" type="number" inputmode="numeric" autocomplete="off" required placeholder="Answer">
|
|
</label>
|
|
<button type="submit" class="login-submit">Sign in</button>
|
|
</div>
|
|
<p id="loginError" class="error" aria-live="polite"></p>
|
|
</form>
|
|
</section>
|
|
|
|
<section id="chatView" class="chat-layout hidden">
|
|
<aside class="sidebar">
|
|
<div class="card sidebar-section">
|
|
<h2>Start IM</h2>
|
|
<form id="userSearchForm" class="inline-form">
|
|
<input id="userSearch" placeholder="Screen name" aria-label="Screen name">
|
|
<button type="submit">Open</button>
|
|
</form>
|
|
<ul id="userResults" class="list"></ul>
|
|
</div>
|
|
|
|
<div class="card sidebar-section">
|
|
<h2>Rooms</h2>
|
|
<form id="joinRoomForm" class="inline-form">
|
|
<input id="roomName" placeholder="Room name" aria-label="Room name">
|
|
<button type="submit">Join</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div id="invitesCard" class="card sidebar-section hidden">
|
|
<h2>Invites</h2>
|
|
<ul id="invites" class="list"></ul>
|
|
</div>
|
|
|
|
<div class="card sidebar-section">
|
|
<h2>Buddies</h2>
|
|
<form id="addBuddyForm" class="inline-form">
|
|
<input id="buddyName" placeholder="Screen name" aria-label="Buddy screen name">
|
|
<button type="submit">Add</button>
|
|
</form>
|
|
<ul id="buddies" class="list"></ul>
|
|
</div>
|
|
</aside>
|
|
|
|
<section class="panel chat-panel">
|
|
<div class="tabs-bar">
|
|
<ul id="conversations" class="tabs"></ul>
|
|
</div>
|
|
<div class="chat-header">
|
|
<div>
|
|
<h2 id="chatTitle">No conversation selected</h2>
|
|
<div id="chatMeta" class="muted"></div>
|
|
</div>
|
|
</div>
|
|
<div id="messages" class="messages" aria-live="polite"></div>
|
|
<form id="messageForm" class="message-form">
|
|
<textarea id="messageInput" placeholder="Type a message (Enter to send, Shift+Enter for new line)" autocomplete="off" maxlength="2000" rows="1"></textarea>
|
|
<button type="submit">Send</button>
|
|
</form>
|
|
<p id="chatError" class="error" aria-live="polite"></p>
|
|
</section>
|
|
</section>
|
|
</main>
|
|
</div>
|
|
|
|
<script type="module" src="/app.js?v=28"></script>
|
|
</body>
|
|
</html>
|