()
| 12 | // rudimentary off-line support |
| 13 | (function(){ |
| 14 | var offline = function(){ |
| 15 | var store = JSON.parse(localStorage[location.hostname]); |
| 16 | items = store.items; |
| 17 | categories = store.categories; |
| 18 | payloads = store.payloads; |
| 19 | $('#offline').show(); |
| 20 | }; |
| 21 | if(navigator.onLine || typeof navigator.onLine === 'undefined') { |
| 22 | try { |
| 23 | localStorage[location.hostname]=JSON.stringify( |