Permalink
Browse files

Updated the readme

  • Loading branch information...
1 parent c085e68 commit c06fbd8cbef7bce6acfba6ae37008b59be269e39 @jc1arke committed May 10, 2011
Showing with 10 additions and 12 deletions.
  1. +10 −12 README.markdown
View
@@ -2,15 +2,13 @@ Just a simple HTML5 localStorage wrapper written in Javascript
To use, just simply do the following:
-<code>
-<script src='/path/to/the/localstorage/js/file/utils.storage.js'></script>
-<script>
- var storage = utils.storage;
- storage.init("mynamespace", true);
- storage.save("mypersonalvar", {someindex: 'somevalue'});
- if( storage.exists("mypersonalvar") ) {
- var result = JSON.parse( storage.read("mypersonalvar") );
- alert( "someindex: " + result.someindex );
- }
-</script>
-</code>
+ <script src='/path/to/the/localstorage/js/file/utils.storage.js'></script>
+ <script>
+ var storage = utils.storage;
+ storage.init("mynamespace", true);
+ storage.save("mypersonalvar", {someindex: 'somevalue'});
+ if( storage.exists("mypersonalvar") ) {
+ var result = JSON.parse( storage.read("mypersonalvar") );
+ alert( "someindex: " + result.someindex );
+ }
+ </script>

0 comments on commit c06fbd8

Please sign in to comment.