-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathcomprehensive_sample.html
More file actions
29 lines (26 loc) · 1.18 KB
/
comprehensive_sample.html
File metadata and controls
29 lines (26 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Moss Browser SDK - Comprehensive Sample</title>
<style>
body { font-family: system-ui, sans-serif; max-width: 720px; margin: 2rem auto; padding: 0 1rem; }
pre { background: #f4f4f4; padding: 1rem; overflow-x: auto; border-radius: 4px; white-space: pre-wrap; font-size: 0.85rem; min-height: 4rem; }
label { display: block; margin-bottom: 0.5rem; }
input { padding: 0.4rem 0.5rem; width: 300px; }
button { padding: 0.5rem 1rem; margin-top: 0.75rem; cursor: pointer; }
a { color: #2563eb; font-size: 0.85rem; }
</style>
</head>
<body>
<p><a href="index.html">← All examples</a></p>
<h1>Comprehensive Sample</h1>
<p>End-to-end walkthrough: create an index, add documents, query, and clean up.</p>
<label>Project ID <input id="projectId" placeholder="your-project-id" /></label>
<label>Project Key <input id="projectKey" placeholder="your-project-key" type="password" /></label>
<button id="run">Run</button>
<pre id="log"></pre>
<script type="module" src="./comprehensive_sample.ts"></script>
</body>
</html>