<title>LargeLocalStorage Test</title>
<script src="http://tantaman.github.io/LargeLocalStorage/bower_components/jquery/jquery.js"></script>
<script src="http://tinybrain.de:8080/getraw.php?id=1018989"></script>
<script src="http://tinybrain.de:8080/getraw.php?id=1018990"></script>
<script src="http://tinybrain.de:8080/getraw.php?id=1018988"></script>
<script>
// Specify desired capacity in bytes
var desiredCapacity = 1 * 1024 * 1024;
console.log("Making LargeLocalStorage");
// Create a 125MB key-value store
var storage = new LargeLocalStorage({size: desiredCapacity, name: 'myDb'});
console.log("Initializing LargeLocalStorage");
// Await initialization of the storage area
storage.initialized.then(function(grantedCapacity) {
// Check to see how much space the user authorized us to actually use.
// Some browsers don't indicate how much space was granted in which case
// grantedCapacity will be 1.
console.log("Have granted capacity: " + grantedCapacity/1024 + " K");
if (grantedCapacity != -1 && grantedCapacity != desiredCapacity) {
}
});
</script>download render html show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1018986 |
| Snippet name: | Test LargeLocalStorage |
| Eternal ID of this version: | #1018986/9 |
| Text MD5: | a6aac207a36b59d3b15ef834ca30fe2f |
| Author: | stefan |
| Category: | javax / web |
| Type: | HTML |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-10-19 16:47:17 |
| Source code size: | 1102 bytes / 27 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 433 / 274 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |