-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathload_and_query_sample.html
More file actions
30 lines (27 loc) · 1.25 KB
/
load_and_query_sample.html
File metadata and controls
30 lines (27 loc) · 1.25 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
30
<!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 - Load & Query</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>Load & Query Sample</h1>
<p>Load an existing index and perform semantic searches entirely in-browser.</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>
<label>Index Name <input id="indexName" placeholder="my-index" /></label>
<button id="run">Run</button>
<pre id="log"></pre>
<script type="module" src="./load_and_query_sample.ts"></script>
</body>
</html>