Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

3.9 KB
Raw Blame
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="A sample page for the Bot browser reader.">
<title>Reader sample</title>
<style>
  body { font: 15px/1.5 system-ui, sans-serif; margin: 24px 32px; color: #1f2328; max-width: 860px }
  h1 { font-size: 26px; margin: 0 0 8px }
  h2 { font-size: 19px; margin: 22px 0 6px; border-bottom: 1px solid #d0d7de }
  table { border-collapse: collapse } td, th { border: 1px solid #d0d7de; padding: 3px 8px }
  pre { background: #f6f8fa; padding: 8px 12px; border-radius: 6px }
  blockquote { border-left: 3px solid #d0d7de; margin: 0; padding-left: 12px; color: #59636e }
  iframe { width: 100%; height: 150px; border: 1px solid #d0d7de; border-radius: 6px }
  .gone { display: none } .ghost { visibility: hidden } .folded { height: 0; overflow: hidden }
  .row { display: flex; gap: 8px } .chip { display: inline-block; padding: 0 6px; background: #ddf4ff; border-radius: 10px }
  form { display: grid; grid-template-columns: 160px 220px; gap: 6px 10px; align-items: center }
</style>
</head>
<body>
<h1>Reader sample</h1>
<p>This page tests the <a href="/docs">structured reader</a>: headings, <code>inline code</code>, lists, tables, and more.</p>

<h2>Lists</h2>
<ul>
  <li>Fruit
    <ol start="3">
      <li>Apple</li>
      <li>Pear <span class="chip">ripe</span><span class="chip">green</span></li>
    </ol>
  </li>
  <li>Vegetables</li>
</ul>

<h2>Table</h2>
<table>
  <caption>Team schedule</caption>
  <thead><tr><th>Day</th><th>Who</th><th>Task</th></tr></thead>
  <tbody>
    <tr><td rowspan="2">Mon</td><td>Writer</td><td>Draft | review</td></tr>
    <tr><td>Coder</td><td>Fix <a href="/bug/7">bug 7</a></td></tr>
    <tr><td colspan="2">Everyone</td><td>Retro</td></tr>
  </tbody>
</table>

<h2>Code</h2>
<pre><code class="language-js">function greet(name) {
  return `hi ${name}`
}</code></pre>

<blockquote><p>Read what a person sees.</p><p>Nothing more.</p></blockquote>
<hr>

<h2>Hidden things</h2>
<p class="gone">HIDDEN-DISPLAY-NONE</p>
<p class="ghost">HIDDEN-VISIBILITY <span style="visibility: visible">but this child shows</span></p>
<div class="folded">HIDDEN-FOLDED</div>
<details><summary>More details</summary><p>HIDDEN-IN-CLOSED-DETAILS</p></details>
<div class="row"><span>Flex one</span><span>Flex two</span></div>
<p><img src="data:image/gif;base64,R0lGODlhAQABAAAAACw=" alt="A tiny dot" width="8" height="8"> after the image.</p>

<h2>Web component</h2>
<team-card><span slot="name">Chief</span>Leads the team.</team-card>

<h2>Form</h2>
<form onsubmit="return false">
  <label for="user">User</label><input id="user" value="[email protected]">
  <label for="pw">Password</label><input id="pw" type="password" value="SECRET-PASSWORD">
  <label for="card">Card</label><input id="card" autocomplete="cc-number" value="4111111111111111">
  <label for="otp">Code</label><input id="otp" autocomplete="one-time-code" value="123456">
  <label><input type="checkbox" checked> Remember me</label><select><option>Red</option><option selected>Blue</option></select>
  <button>Sign in</button><span></span>
</form>

<h2>Frames</h2>
<iframe src="frame-1.html" title="Same-origin frame"></iframe>
<iframe id="cross" title="Cross-origin frame"></iframe>
<script>
  customElements.define('team-card', class extends HTMLElement {
    constructor() {
      super()
      this.attachShadow({ mode: 'open' }).innerHTML = '<style>:host{display:block;border:1px solid #d0d7de;border-radius:8px;padding:8px 12px}</style>'
        + '<h3>Bot: <slot name="name">nobody</slot></h3><p><slot></slot></p><button>Message</button><p><slot name="missing">Fallback text</slot></p>'
    }
  })
  // The same server on the other host name is another origin.
  const other = location.hostname === 'localhost' ? '127.0.0.1' : 'localhost'
  document.getElementById('cross').src = `${location.protocol}//${other}:${location.port}/other.html`
</script>
</body>
</html>