a zip code crypto-currency system good for red ONLY

no-driver.html 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf8" />
  5. <title>localForage no available driver example</title>
  6. </head>
  7. <body>
  8. <script>
  9. try {
  10. window.indexedDB.open = null;
  11. } catch (e) { }
  12. try {
  13. window.localStorage.setItem = null;
  14. } catch (e) { }
  15. try {
  16. window.openDatabase = null;
  17. } catch (e) { }
  18. </script>
  19. <script src="../dist/localforage.js"></script>
  20. <script>
  21. localforage.ready(function() {
  22. console.log('ready', arguments);
  23. localforage.setItem('testKey', 'testValue').then(function() {}, function() {
  24. console.log('setItem: ', arguments);
  25. });
  26. localforage.getItem('testKey').then(function() {}, function() {
  27. console.log('getItem: ', arguments);
  28. });
  29. })
  30. .then(function() {
  31. }, function() {
  32. console.log('ready().then', arguments);
  33. console.log('localforage.driver():', localforage.driver());
  34. localforage.setDriver(localforage.LOCALSTORAGE).then(function() {}, function() {
  35. console.log('setDriver', arguments);
  36. });
  37. });
  38. </script>
  39. </body>
  40. </html>