chatkit / index.html
taupirho's picture
Update index.html
c6fcf4a verified
Raw History Blame Contribute Delete
1.82 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Facts &amp; Dad Jokes</title>
<link rel="stylesheet" href="/style.css">
<script src="/chat.js" defer></script>
</head>
<body>
<main class="card">
<h1>Facts &amp; Dad Jokes</h1>
<p class="powered-by">Powered by <strong>OpenAI Agents SDK</strong><span>GPT-4.1 mini</span></p>
<p>Pick a subject. Discover something interesting. Enjoy a terrible joke.</p>
<p>Click the speech bubble in the bottom right to start chatting.</p>
<button id="start-chat" type="button">Start a chat</button>
</main>
<button id="chat-fab" type="button" aria-label="Open chat" aria-controls="chat-panel" aria-expanded="false">💬</button>
<section id="chat-panel" role="dialog" aria-labelledby="chat-title" hidden>
<header class="chat-header">
<h2 id="chat-title">Facts &amp; Dad Jokes</h2>
<div>
<button id="new-chat" type="button" aria-label="Start a new chat">New chat</button>
<button id="close-chat" type="button" aria-label="Close chat">✕</button>
</div>
</header>
<div id="messages" role="log" aria-label="Conversation" aria-live="polite">
<p class="message assistant">Hello! Give me a subject, and I'll share an interesting fact and a dad joke.</p>
</div>
<p id="chat-status" role="status"></p>
<form id="chat-form">
<label class="sr-only" for="message">Your subject or message</label>
<input id="message" name="message" placeholder="Try space, cats or Python…" maxlength="2000" required autocomplete="off">
<button id="send" type="submit">Send</button>
</form>
<p class="chat-powered-by">Powered by OpenAI Agents SDK · GPT-4.1 mini</p>
</section>
</body>
</html>