1 <meta name="apple-touch-fullscreen" content="YES" />2 <meta name="apple-mobile-web-app-capable" content="yes" />3 <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />4 <h1>IndexedDB Introspection [LOggER]</h1>5 <button onclick="open_database();">Open database</button><input id="database_name" value="my_db" size=5><input id="database_version" value="2" size=1><br>6 7 8 <script type="text/javascript">9 var db = null;10 11 function open_database() {12 db = indexedDB.open(document.getElementById('database_name').value, document.getElementById('database_version').value);13 logger.log(db);14 15 db.onerror = function(event) {16 logger.log(event);17 }18 19 db.onsuccess = function(event) {20 logger.log(event);21 }22 23 db.onblocked = function(event) {24 logger.log(event);25 }26 27 db.onupgradeneeded = function(event) {28 logger.log(event);29 }30 31 }32 33 </script>
Este ShareCode tiene versiones:
- IndexedDB Introspection [LOggER] ... (07/11/2012)
- IndexedDB Introspection [LOggER] Open... (24/04/2013)
Enlace
El enlace para compartir es: