Skip to content

Commit 077d0af

Browse files
bsmthOnkarRuikar
andauthored
feat: Improvements to indexeddb-examples (#303)
* chore: Format / edit idb examples * Apply suggestions from code review Co-authored-by: Onkar Khadangale <[email protected]> * chore: minor edits * Apply suggestions from code review Co-authored-by: Onkar Khadangale <[email protected]> * Update indexeddb-examples/idbindex/scripts/main.js Co-authored-by: Onkar Khadangale <[email protected]> * chore: minor edits --------- Co-authored-by: Onkar Khadangale <[email protected]>
1 parent b18287f commit 077d0af

File tree

10 files changed

+631
-489
lines changed

10 files changed

+631
-489
lines changed

indexeddb-examples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# indexeddb-examples
2+
23
Code examples that accompany the MDN IndexedDB documentation – https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API
34

45
The "idbcursor" directory contains a very simple IndexedDB example to demonstrate the usage of IDBCursor. See [https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor) for relevant reference pages. [View the example live](http://mdn.github.io/dom-examples/indexeddb-examples/idbcursor/).

indexeddb-examples/idbcursor/index.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@
88
</head>
99
<body>
1010
<h1>Basic IDBCursor example — Rush studio albums 74-85</h1>
11+
<div id="container">
12+
<button class="continue">Display all results</button>
13+
<button class="advance">Show every other result</button>
14+
<button class="delete">
15+
Kill Grace under pressure (it's not that great)
16+
</button>
17+
<button class="update">Update "A farewell.." year</button>
18+
<button class="direction">Display albums upside down</button>
19+
</div>
1120

1221
<ul></ul>
1322

14-
<button class="continue">Display all results</button>
15-
<button class="advance">Show every other result</button>
16-
<button class="delete">
17-
Kill Grace under pressure (it's not that great)
18-
</button>
19-
<button class="update">Update "A farewell.." year</button>
20-
<button class="direction">Display albums upsidedown</button>
21-
22-
<script src="scripts/main.js"></script>
23+
<script src="./scripts/main.js"></script>
2324
</body>
2425
</html>

0 commit comments

Comments
 (0)