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
//
// Legend.swift
// VCN
//
// Created by Jamone Alexander Kelly on 3/3/15.
// Copyright (c) 2015 Veteran Care Network, LLC. All rights reserved.
//
import UIKit
//
// LayersSubView.swift
// Veteran Care Network
//
// Created by Jamone Alexander Kelly on 3/4/15.
// Copyright (c) 2015 Veteran Care Network, LLC. All rights reserved.
//
import UIKit
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
let popoverViewController = segue.destinationViewController as UIViewController
popoverViewController.modalPresentationStyle = UIModalPresentationStyle.Popover
popoverViewController.popoverPresentationController!.delegate = self
}
// 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(){