Skip to content

Instantly share code, notes, and snippets.

@coolaj86
Created February 3, 2014 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coolaj86/8787872 to your computer and use it in GitHub Desktop.
Save coolaj86/8787872 to your computer and use it in GitHub Desktop.
$.getScript('https://raw2.github.com/coolaj86/json-storage-js/master/lib/json-storage.js')
var store = JsonStorage.create(localStorage);
store.set('foo', { bar: "baz", html: '<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>' , updated: Date.now() });
$('body').append(store.get('foo').html);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment