add a localstorage test

This commit is contained in:
Sami Samhuri 2014-04-08 11:12:47 -07:00
parent 59d2986054
commit 688184c80a

View file

@ -0,0 +1,10 @@
<!doctype html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<p align=center id=out></p>
<script>
var x = Number(localStorage['test'] || 0)
document.getElementById('out').innerHTML = x
x += 1
localStorage['test'] = x
</script>