-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdemo.html
More file actions
39 lines (34 loc) · 1.1 KB
/
demo.html
File metadata and controls
39 lines (34 loc) · 1.1 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
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1, width=device-width" />
<title>DataStore Demo</title>
<link rel="stylesheet" href="https://unpkg.com/boltcss/bolt.min.css" />
<style>
main {
margin: 0 auto;
max-width: 800px;
}
</style>
<script type="module" src="demo.js"></script>
</head>
<body>
<main>
<h1>DataStore Demo</h1>
<p>
This is a simple demo of the DataStore API. Open the console to see the
output.
</p>
<div style="display: flex; gap: 1rem; flex-direction: column">
<button id="default">Run default store test</button>
<button id="named">Run named db and store test</button>
<button id="multiple">Run multiple stores test</button>
<button id="length">Get length of default store</button>
<button id="upgrade">Test onUpgradeNeeded</button>
<button id="clear">Clear default store</button>
<button id="remove-all">Remove all databases</button>
</div>
</main>
</body>
</html>