!function(o){"use strict";o.fn.fitVids=function(e){var t,i,a={customSelector:null,ignore:null};return document.getElementById("fit-vids-style")||(t=document.head||document.getElementsByTagName("head")[0],(i=document.createElement("div")).innerHTML='

x

',t.appendChild(i.childNodes[1])),e&&o.extend(a,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];a.customSelector&&e.push(a.customSelector);var n=".fitvidsignore";a.ignore&&(n=n+", "+a.ignore);e=o(this).find(e.join(","));(e=(e=e.not("object object")).not(n)).each(function(){var e,t,i=o(this);0').parent(".fluid-width-video-wrapper").css("padding-top",100*e+"%"),i.removeAttr("height").removeAttr("width"))})})},o.fn.fitVids._count=0}(window.jQuery||window.Zepto);var LaunchPad=window.LaunchPad||{};!function(a){"use strict";window.launchpad=window.launchpad||{},window.launchpad.ajaxurl=launchpad_vars.ajax_url,LaunchPad.Ajax={url:window.ajaxurl||window.launchpad.ajaxurl,type:"post",data:[],cache:!1,dataType:"json",async:!0,response:[],init:function(e){if(null===e||"object"!=typeof e)return!1;e.url=this.url,e.type=("type"in e?e:this).type,e.data=("data"in e?e:this).data,e.cache=("cache"in e?e:this).cache,e.dataType=("dataType"in e?e:this).dataType,e.async=("async"in e?e:this).async,e.data._ajax_nonce=launchpad_vars.nonce;var t=LaunchPad.Rest.get_query_vars();return e.data.post_id="post"in t?t.post:null,e},call:function(e){e=this.init(e);return!!e&&(this.request(e),this)},request:function(e){return a.ajax(e),this}},LaunchPad.Customizer={init:function(){this.bind()},bind:function(){}},LaunchPad.Nav={init:function(){this.bind()},bind:function(){a(document).ready(function(){a("#nav-mobile").html(a("#responsive-menu").html()),a("#responsive-menu-toggle").click(function(){console.log("I am here"),a("#nav-mobile").hasClass("expanded")?(a("#nav-mobile.expanded").removeClass("expanded").slideUp(250),a(this).removeClass("open")):(a("#nav-mobile").addClass("expanded").slideDown(250),a(this).addClass("open"))})})}},LaunchPad.Rest={init:function(){console.log("Initializing Rest Methods "),this.bind()},bind:function(){console.log("Rest Methods Bound")},is_path:function(e){for(var t=!1,i=window.location.href,n=0;n'),e=a('');t.attr("placeholder","Paste your saved LaunchPad settings here"),a(this).closest(".forminp").append(t,e),a(this).remove(),e.on("click",function(e){e.preventDefault(),window.confirm("Click OK to import the supplied settings. All settings will be replaced with the submitted settings!")&&i.import_settings()})}),this.hide_sub_sections()},import_settings:function(){LaunchPad.Ajax.call({data:{action:"import_settings",settings:a("#settings").val()},beforeSend:function(){},success:function(e){console.log(e);var t=e.data.success?"success":"danger";a(".launchpad-notice").addClass(t).text(e.data.message),location.reload()},error:function(e){a(".launchpad-notice").addClass("danger").text("There was an error importing the settings. Please reload the page and try again.")}})},reset_default_settings:function(){LaunchPad.Ajax.call({data:{action:"reset_settings"},beforeSend:function(){},success:function(e){a(".launchpad-notice").addClass("success").text(e.data),location.reload()},error:function(e){a(".launchpad-notice").addClass("danger").text("There was an error resetting the settings. Please reload the page and try again.")}})},generate_export:function(n){LaunchPad.Ajax.call({data:{action:"export_settings"},beforeSend:function(){},success:function(e){var t,i;e.data&&e.data.export&&(t=n.closest(".forminp"),(i=a('