2014-08-22 17:50:42 +00:00
! function ( a ) { "use strict" ; a . fn . fitVids = function ( b ) { var c = { customSelector : null } ; if ( ! document . getElementById ( "fit-vids-style" ) ) { var d = document . createElement ( "div" ) , e = document . getElementsByTagName ( "base" ) [ 0 ] || document . getElementsByTagName ( "script" ) [ 0 ] , f = "­<style>.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>" ; d . className = "fit-vids-style" , d . id = "fit-vids-style" , d . style . display = "none" , d . innerHTML = f , e . parentNode . insertBefore ( d , e ) } return b && a . extend ( c , b ) , this . each ( function ( ) { var b = [ "iframe[src*='player.vimeo.com']" , "iframe[src*='youtube.com']" , "iframe[src*='youtube-nocookie.com']" , "iframe[src*='kickstarter.com'][src*='video.html']" , "object" , "embed" ] ; c . customSelector && b . push ( c . customSelector ) ; var d = a ( this ) . find ( b . join ( "," ) ) ; d = d . not ( "object object" ) , d . each ( function ( ) { var b = a ( this ) ; if ( ! ( "embed" === this . tagName . toLowerCase ( ) && b . parent ( "object" ) . length || b . parent ( ".fluid-width-video-wrapper" ) . length ) ) { var c = "object" === this . tagName . toLowerCase ( ) || b . attr ( "height" ) && ! isNaN ( parseInt ( b . attr ( "height" ) , 10 ) ) ? parseInt ( b . attr ( "height" ) , 10 ) : b . height ( ) , d = isNaN ( parseInt ( b . attr ( "width" ) , 10 ) ) ? b . width ( ) : parseInt ( b . attr ( "width" ) , 10 ) , e = c / d ; if ( ! b . attr ( "id" ) ) { var f = "fitvid" + Math . floor ( 999999 * Math . random ( ) ) ; b . attr ( "id" , f ) } b . wrap ( '<div class="fluid-width-video-wrapper"></div>' ) . parent ( ".fluid-width-video-wrapper" ) . css ( "padding-top" , 100 * e + "%" ) , b . removeAttr ( "height" ) . removeAttr ( "width" ) } } ) } ) } } ( window . jQuery || window . Zepto ) , function ( a ) { var b , c , d , e , f , g , h , i = "Close" , j = "BeforeClose" , k = "AfterClose" , l = "BeforeAppend" , m = "MarkupParse" , n = "Open" , o = "Change" , p = "mfp" , q = "." + p , r = "mfp-ready" , s = "mfp-removing" , t = "mfp-prevent-close" , u = function ( ) { } , v = ! ! window . jQuery , w = a ( window ) , x = function ( a , c ) { b . ev . on ( p + a + q , c ) } , y = function ( b , c , d , e ) { var f = document . createElement ( "div" ) ; return f . className = "mfp-" + b , d && ( f . innerHTML = d ) , e ? c && c . appendChild ( f ) : ( f = a ( f ) , c && f . appendTo ( c ) ) , f } , z = function ( c , d ) { b . ev . triggerHandler ( p + c , d ) , b . st . callbacks && ( c = c . charAt ( 0 ) . toLowerCase ( ) + c . slice ( 1 ) , b . st . callbacks [ c ] && b . st . callbacks [ c ] . apply ( b , a . isArray ( d ) ? d : [ d ] ) ) } , A = function ( c ) { return c === h && b . currTemplate . closeBtn || ( b . currTemplate . closeBtn = a ( b . st . closeMarkup . replace ( "%title%" , b . st . tClose ) ) , h = c ) , b . currTemplate . closeBtn } , B = function ( ) { a . magnificPopup . instance || ( b = new u , b . init ( ) , a . magnificPopup . instance = b ) } , C = function ( ) { var a = document . createElement ( "p" ) . style , b = [ "ms" , "O" , "Moz" , "Webkit" ] ; if ( void 0 !== a . transition ) return ! 0 ; for ( ; b . length ; ) if ( b . pop ( ) + "Transition" in a ) return ! 0 ; return ! 1 } ; u . prototype = { constructor : u , init : function ( ) { var c = navigator . appVersion ; b . isIE7 = - 1 !== c . indexOf ( "MSIE 7." ) , b . isIE8 = - 1 !== c . indexOf ( "MSIE 8." ) , b . isLowIE = b . isIE7 || b . isIE8 , b . isAndroid = /android/gi . test ( c ) , b . isIOS = /iphone|ipad|ipod/gi . test ( c ) , b . supportsTransition = C ( ) , b . probablyMobile = b . isAndroid || b . isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i . test ( navigator . userAgent ) , e = a ( document ) , b . popupsCache = { } } , open : function ( c ) { d || ( d = a ( document . body ) ) ; var f ; if ( c . isObj === ! 1 ) { b . items = c . items . toArray ( ) , b . index = 0 ; var h , i = c . items ; for ( f = 0 ; f < i . length ; f ++ ) if ( h = i [ f ] , h . parsed && ( h = h . el [ 0 ] ) , h === c . el [ 0 ] ) { b . index = f ; break } } else b . items = a . isArray ( c . items ) ? c . items : [ c . items ] , b . index = c . index || 0 ; if ( b . isOpen ) return b . updateItemHTML ( ) , void 0 ; b . types = [ ] , g = "" , b . ev = c . mainEl && c . mainEl . length ? c . mainEl . eq ( 0 ) : e , c . key ? ( b . popupsCache [ c . key ] || ( b . popupsCache [ c . key ] = { } ) , b . currTemplate = b . popupsCache [ c . key ] ) : b . currTemplate = { } , b . st = a . extend ( ! 0 , { } , a . magnificPopup . defaults , c ) , b . fixedContentPos = "auto" === b . st . fixedContentPos ? ! b . probablyMobile : b . st . fixedContentPos , b . st . modal && ( b . st . closeOnContentClick = ! 1 , b . st . closeOnBgClick = ! 1 , b . st . showCloseBtn = ! 1 , b . st . enableEscapeKey = ! 1 ) , b . bgOverlay || ( b . bgOverlay = y ( "bg" ) . on ( "click" + q , function ( ) { b . close ( ) } ) , b . wrap = y ( "wrap" ) . attr ( "tabindex" , - 1 ) . on ( "click" + q , function ( a ) { b . _checkIfClose ( a . target ) && b . close ( ) } ) , b . container = y ( "container" , b . wrap ) ) , b . contentContainer = y ( "content" ) , b . st . preloader && ( b . preloader = y ( "preloader" , b . container , b . st . tLoading ) ) ; var j = a
2014-08-27 14:35:27 +00:00
g . jsonFile . length && j . length && a . ajax ( { type : "GET" , url : g . jsonFile , dataType : "json" , success : function ( a ) { h = a , c ( ) } , error : function ( a , b , c ) { console . log ( "***ERROR in jekyllSearch.js***" ) , console . log ( a ) , console . log ( b ) , console . log ( c ) } } ) } } ( jQuery ) ; var navigation = responsiveNav ( "#site-nav" , { animate : ! 0 , transition : 400 , label : "<i class='fa fa-bars'></i> Menu" , insert : "before" , customToggle : "" , openPos : "relative" , jsClass : "js" , init : function ( ) { } , open : function ( ) { } , close : function ( ) { } } ) ; $ ( "html" ) . click ( function ( ) { $ ( navigation . wrapper ) . hasClass ( "opened" ) && navigation . toggle ( ) } ) , $ ( "#site-nav" ) . click ( function ( a ) { a . stopPropagation ( ) } ) , $ ( function ( ) { $ ( "article" ) . fitVids ( ) } ) , $ ( "a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']" ) . addClass ( "image-popup" ) , $ ( document ) . ready ( function ( ) { $ ( ".image-popup" ) . magnificPopup ( { type : "image" , tLoading : "Loading image #%curr%..." , gallery : { enabled : ! 0 , navigateByImgClick : ! 0 , preload : [ 0 , 1 ] } , image : { tError : '<a href="%url%">Image #%curr%</a> could not be loaded.' } , removalDelay : 300 , mainClass : "mfp-fade" } ) } ) ;