Skip to content

Instantly share code, notes, and snippets.

View Jamonek's full-sized avatar
🏗️
Building.. Exploring.. Dreaming..

Jamone Kelly Jamonek

🏗️
Building.. Exploring.. Dreaming..
View GitHub Profile
// this goes into every page where the hijack will take place
// or where the hijack will land
function hijack (abs, landing) {
// get the #jump=url from the url
url_hash = window.location.hash.substr(1);
// make sure its actually a #jump=
if (url_hash.indexOf("jump=") !== -1) {
// trim off jump= and redirect
url = window.location.hash.substr(6);
window.setTimeout(function(){