Skip to content

Instantly share code, notes, and snippets.

// initialize the jQTouch variable and the current hash, then grab
// the app history from local storage
var jQT = null;
var currentHash = null;
var hist = localStorage.getItem("app_history");
// if the history is null, then reset the history list to include
// just 'home'
if (hist == null){
hist = ["home"];