Update indexedDB.html

This commit is contained in:
Mark Nadal 2018-09-20 11:37:13 -07:00 committed by GitHub
parent b536a00007
commit 0160d1cd8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,12 +7,6 @@
<script src="../../lib/store.js"></script>
<script src="../../lib/rindexed.js"></script>
<button onclick="var i = 0; window.TO = setInterval(function(){ gun.get(Gun.text.random(3)).put({a: ++i}) }, 0);">start</button>
<button onclick="clearTimeout(window.TO);">end</button>
<br/><br/>
<button onclick="gun.get('a').put({b: Gun.text.random(900)});setTimeout(function(){gun.get('x').put({y: Gun.text.random(900)});},1000);">write</button>
<button id='read' onclick="console.debug.i=1;gun.get('a').once(d => console.log(1, d));gun.get('x').once(d => console.log(2, d));">read</button>
<script>
localStorage.clear();
@ -21,4 +15,4 @@ var opt = {};
opt.store = RindexedDB(opt);
var gun = Gun(opt);
</script>
</script>