Skip to content

Commit b4ebcff

Browse files
committed
Add links everywhere
1 parent 52b56b5 commit b4ebcff

52 files changed

Lines changed: 58 additions & 192 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎files/en-us/web/api/idbdatabase/close/index.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ None ({{jsxref("undefined")}}).
3232

3333
## Examples
3434

35+
For a complete working example, see our [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) app ([view example live](https://mdn.github.io/dom-examples/to-do-notifications/)).
36+
3537
```js
3638
// Let us open our database
3739
const DBOpenRequest = window.indexedDB.open("toDoList", 4); // opening a database.
@@ -70,4 +72,3 @@ DBOpenRequest.onsuccess = (event) => {
7072
- Setting a range of keys: {{domxref("IDBKeyRange")}}
7173
- Retrieving and making changes to your data: {{domxref("IDBObjectStore")}}
7274
- Using cursors: {{domxref("IDBCursor")}}
73-
- Reference example: [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) ([View the example live](https://mdn.github.io/dom-examples/to-do-notifications/)).

‎files/en-us/web/api/idbdatabase/close_event/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ A generic {{domxref("Event")}}.
2828

2929
## Examples
3030

31-
This example opens a database and listens for the `close` event:
31+
This example opens a database and listens for the `close` event. For a complete working example, see our [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) app ([view example live](https://mdn.github.io/dom-examples/to-do-notifications/)).
3232

3333
```js
3434
// Open the database

‎files/en-us/web/api/idbdatabase/createobjectstore/index.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ one of the following types:
7070

7171
## Examples
7272

73+
For a complete working example, see our [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) app ([view example live](https://mdn.github.io/dom-examples/to-do-notifications/)).
74+
7375
```js
7476
// Let us open our database
7577
const request = window.indexedDB.open("toDoList", 4);
@@ -124,4 +126,3 @@ request.onupgradeneeded = (event) => {
124126
- Setting a range of keys: {{domxref("IDBKeyRange")}}
125127
- Retrieving and making changes to your data: {{domxref("IDBObjectStore")}}
126128
- Using cursors: {{domxref("IDBCursor")}}
127-
- Reference example: [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) ([View the example live](https://mdn.github.io/dom-examples/to-do-notifications/)).

‎files/en-us/web/api/idbdatabase/index.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,3 @@ const objectStore = db
150150
- Setting a range of keys: {{domxref("IDBKeyRange")}}
151151
- Retrieving and making changes to your data: {{domxref("IDBObjectStore")}}
152152
- Using cursors: {{domxref("IDBCursor")}}
153-
- Reference example: [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) ([View the example live](https://mdn.github.io/dom-examples/to-do-notifications/)).

‎files/en-us/web/api/idbdatabase/name/index.md‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ A string containing the name of the connected database.
1818

1919
## Examples
2020

21-
This example shows a database connection being opened, the resulting
22-
{{domxref("IDBDatabase")}} object being stored in a db variable, and the name property
23-
then being logged. For a full example, see our
24-
[To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications)
25-
app ([view example live](https://mdn.github.io/dom-examples/to-do-notifications/)).
21+
This example shows a database connection being opened, the resulting {{domxref("IDBDatabase")}} object being stored in a db variable, and the name property then being logged. For a complete working example, see our [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) app ([view example live](https://mdn.github.io/dom-examples/to-do-notifications/)).
2622

2723
```js
2824
// Let us open our database
@@ -63,4 +59,3 @@ DBOpenRequest.onsuccess = (event) => {
6359
- Setting a range of keys: {{domxref("IDBKeyRange")}}
6460
- Retrieving and making changes to your data: {{domxref("IDBObjectStore")}}
6561
- Using cursors: {{domxref("IDBCursor")}}
66-
- Reference example: [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) ([View the example live](https://mdn.github.io/dom-examples/to-do-notifications/)).

‎files/en-us/web/api/idbdatabase/objectstorenames/index.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ in the connected database.
2020

2121
## Examples
2222

23+
For a complete working example, see our [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) app ([view example live](https://mdn.github.io/dom-examples/to-do-notifications/)).
24+
2325
```js
2426
// Let us open our database
2527
const DBOpenRequest = window.indexedDB.open("toDoList", 4);
@@ -59,4 +61,3 @@ DBOpenRequest.onsuccess = (event) => {
5961
- Setting a range of keys: {{domxref("IDBKeyRange")}}
6062
- Retrieving and making changes to your data: {{domxref("IDBObjectStore")}}
6163
- Using cursors: {{domxref("IDBCursor")}}
62-
- Reference example: [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) ([View the example live](https://mdn.github.io/dom-examples/to-do-notifications/)).

‎files/en-us/web/api/idbdatabase/transaction/index.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ An {{domxref("IDBTransaction")}} object.
8282
## Examples
8383

8484
In this example we open a database connection, then use transaction() to open a transaction on the database.
85-
For a complete example, see our [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) app ([view example live](https://mdn.github.io/dom-examples/to-do-notifications/)).
85+
For a complete working example, see our [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) app ([view example live](https://mdn.github.io/dom-examples/to-do-notifications/)).
8686

8787
```js
8888
let db;
@@ -139,4 +139,3 @@ const objectStore = transaction.objectStore("toDoList");
139139
- Setting a range of keys: {{domxref("IDBKeyRange")}}
140140
- Retrieving and making changes to your data: {{domxref("IDBObjectStore")}}
141141
- Using cursors: {{domxref("IDBCursor")}}
142-
- Reference example: [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) ([View the example live](https://mdn.github.io/dom-examples/to-do-notifications/)).

‎files/en-us/web/api/idbdatabase/version/index.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ An integer containing the version of the connected database.
1616

1717
## Examples
1818

19+
For a complete working example, see our [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) app ([view example live](https://mdn.github.io/dom-examples/to-do-notifications/)).
20+
1921
```js
2022
// Let us open our database
2123
const DBOpenRequest = window.indexedDB.open("toDoList", 4);
@@ -55,4 +57,3 @@ DBOpenRequest.onsuccess = (event) => {
5557
- Setting a range of keys: {{domxref("IDBKeyRange")}}
5658
- Retrieving and making changes to your data: {{domxref("IDBObjectStore")}}
5759
- Using cursors: {{domxref("IDBCursor")}}
58-
- Reference example: [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) ([View the example live](https://mdn.github.io/dom-examples/to-do-notifications/)).

‎files/en-us/web/api/idbdatabase/versionchange_event/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ A generic {{domxref("Event")}}.
2727

2828
## Examples
2929

30-
This example opens a database and, on success, adds a listener to `versionchange`:
30+
This example opens a database and, on success, adds a listener to `versionchange`. For a complete working example, see our [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) app ([view example live](https://mdn.github.io/dom-examples/to-do-notifications/)).
3131

3232
```js
3333
// Open the database

‎files/en-us/web/api/idbfactory/index.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The **`IDBFactory`** interface of the [IndexedDB API](/en-US/docs/Web/API/Indexe
2222

2323
## Example
2424

25-
In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) app ([view example live](https://mdn.github.io/dom-examples/to-do-notifications/)).
25+
In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a complete working example, see our [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) app ([view example live](https://mdn.github.io/dom-examples/to-do-notifications/)).
2626

2727
```js
2828
// Let us open version 4 of our database
@@ -57,4 +57,3 @@ DBOpenRequest.onsuccess = (event) => {
5757
- Setting a range of keys: {{domxref("IDBKeyRange")}}
5858
- Retrieving and making changes to your data: {{domxref("IDBObjectStore")}}
5959
- Using cursors: {{domxref("IDBCursor")}}
60-
- Reference example: [To-do Notifications](https://github.com/mdn/dom-examples/tree/main/to-do-notifications) ([View the example live](https://mdn.github.io/dom-examples/to-do-notifications/)).

0 commit comments

Comments
 (0)