Skip to content

Instantly share code, notes, and snippets.

View nookeen's full-sized avatar

Arkai Pasternak nookeen

View GitHub Profile
@nookeen
nookeen / IndexedDB101.js
Created March 29, 2018 14:00 — forked from JamesMessinger/IndexedDB101.js
Very Simple IndexedDB Example
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
// Open (or create) the database
var open = indexedDB.open("MyDatabase", 1);
// Create the schema
open.onupgradeneeded = function() {
var db = open.result;
var store = db.createObjectStore("MyObjectStore", {keyPath: "id"});
<input type="radio" id="wahtever"> Some text</label>
@nookeen
nookeen / something.php
Created August 21, 2012 19:03
Some thing
<?php hello world ?>