1 |
|
2 | <html>
|
3 | <head>
|
4 | <meta charset="utf-8">
|
5 | <title>Sub iFrame Test</title>
|
6 | </head>
|
7 | <body>
|
8 | <div id="my-text"></div>
|
9 |
|
10 | <script src="/dist/localforage.js"></script>
|
11 | <script>localforage.setItem('my cool key',
|
12 | 'I have been set').then(function() {
|
13 | localforage.getItem('my cool key').then(function(value) {
|
14 | document.getElementById('my-text').innerHTML = value;
|
15 | });
|
16 | });</script>
|
17 | </body>
|
18 | </html>
|