window.matchMedia=window.matchMedia||function(doc){var bool,docElem=doc.documentElement,refNode=docElem.firstElementChild||docElem.firstChild,fakeBody=doc.createElement("body"),div=doc.createElement("div");return div.id="mq-test-1",div.style.cssText="position:absolute;top:-100em",fakeBody.style.background="none",fakeBody.appendChild(div),function(q){return div.innerHTML='',docElem.insertBefore(fakeBody,refNode),bool=42==div.offsetWidth,docElem.removeChild(fakeBody),{matches:bool,media:q}}}(document),function(win){function callMedia(){applyMedia(!0)}if(win.respond={},respond.update=function(){},respond.mediaQueriesSupported=win.matchMedia&&win.matchMedia("only all").matches,!respond.mediaQueriesSupported){var lastCall,resizeDefer,eminpx,doc=win.document,docElem=doc.documentElement,mediastyles=[],rules=[],appendedEls=[],parsedSheets={},resizeThrottle=30,head=doc.getElementsByTagName("head")[0]||docElem,base=doc.getElementsByTagName("base")[0],links=head.getElementsByTagName("link"),requestQueue=[],ripCSS=function(){for(var sheet,href,media,isCSS,sheets=links,sl=sheets.length,i=0;sl>i;i++)sheet=sheets[i],href=sheet.href,media=sheet.media,isCSS=sheet.rel&&"stylesheet"===sheet.rel.toLowerCase(),href&&isCSS&&!parsedSheets[href]&&(sheet.styleSheet&&sheet.styleSheet.rawCssText?(translate(sheet.styleSheet.rawCssText,href,media),parsedSheets[href]=!0):(!/^([a-zA-Z:]*\/\/)/.test(href)&&!base||href.replace(RegExp.$1,"").split("/")[0]===win.location.host)&&requestQueue.push({href:href,media:media}));makeRequests()},makeRequests=function(){if(requestQueue.length){var thisRequest=requestQueue.shift();ajax(thisRequest.href,function(styles){translate(styles,thisRequest.href,thisRequest.media),parsedSheets[thisRequest.href]=!0,makeRequests()})}},translate=function(styles,href,media){var j,fullq,thisq,eachq,eql,qs=styles.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),ql=qs&&qs.length||0,href=href.substring(0,href.lastIndexOf("/")),repUrls=function(css){return css.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+href+"$2$3")},useMedia=!ql&&media,i=0;for(href.length&&(href+="/"),useMedia&&(ql=1);ql>i;i++)for(j=0,useMedia?(fullq=media,rules.push(repUrls(styles))):(fullq=qs[i].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,rules.push(RegExp.$2&&repUrls(RegExp.$2))),eachq=fullq.split(","),eql=eachq.length;eql>j;j++)thisq=eachq[j],mediastyles.push({media:thisq.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:rules.length-1,hasquery:thisq.indexOf("(")>-1,minw:thisq.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:thisq.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});applyMedia()},getEmValue=function(){var ret,div=doc.createElement("div"),body=doc.body,fakeUsed=!1;return div.style.cssText="position:absolute;font-size:1em;width:1em",body||(body=fakeUsed=doc.createElement("body"),body.style.background="none"),body.appendChild(div),docElem.insertBefore(body,docElem.firstChild),ret=div.offsetWidth,fakeUsed?docElem.removeChild(body):body.removeChild(div),ret=eminpx=parseFloat(ret)},applyMedia=function(fromResize){var name="clientWidth",docElemProp=docElem[name],currWidth="CSS1Compat"===doc.compatMode&&docElemProp||doc.body[name]||docElemProp,styleBlocks={},lastLink=links[links.length-1],now=(new Date).getTime();if(fromResize&&lastCall&&resizeThrottle>now-lastCall)return clearTimeout(resizeDefer),void(resizeDefer=setTimeout(applyMedia,resizeThrottle));lastCall=now;for(var i in mediastyles){var thisstyle=mediastyles[i],min=thisstyle.minw,max=thisstyle.maxw,minnull=null===min,maxnull=null===max,em="em";min&&(min=parseFloat(min)*(min.indexOf(em)>-1?eminpx||getEmValue():1)),max&&(max=parseFloat(max)*(max.indexOf(em)>-1?eminpx||getEmValue():1)),thisstyle.hasquery&&(minnull&&maxnull||!(minnull||currWidth>=min)||!(maxnull||max>=currWidth))||(styleBlocks[thisstyle.media]||(styleBlocks[thisstyle.media]=[]),styleBlocks[thisstyle.media].push(rules[thisstyle.rules]))}for(var i in appendedEls)appendedEls[i]&&appendedEls[i].parentNode===head&&head.removeChild(appendedEls[i]);for(var i in styleBlocks){var ss=doc.createElement("style"),css=styleBlocks[i].join("\n");ss.type="text/css",ss.media=i,head.insertBefore(ss,lastLink.nextSibling),ss.styleSheet?ss.styleSheet.cssText=css:ss.appendChild(doc.createTextNode(css)),appendedEls.push(ss)}},ajax=function(url,callback){var req=xmlHttp();req&&(req.open("GET",url,!0),req.onreadystatechange=function(){4!=req.readyState||200!=req.status&&304!=req.status||callback(req.responseText)},4!=req.readyState&&req.send(null))},xmlHttp=function(){var xmlhttpmethod=!1;try{xmlhttpmethod=new XMLHttpRequest}catch(e){xmlhttpmethod=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return xmlhttpmethod}}();ripCSS(),respond.update=ripCSS,win.addEventListener?win.addEventListener("resize",callMedia,!1):win.attachEvent&&win.attachEvent("onresize",callMedia)}}(this),function($){"use strict";$.fn.fitVids=function(options){var settings={customSelector:null},div=document.createElement("div"),ref=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return div.className="fit-vids-style",div.innerHTML="",ref.parentNode.insertBefore(div,ref),options&&$.extend(settings,options),this.each(function(){var selectors=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.youtube-nocookie.com']","iframe[src*='fast.wistia.com']","embed"];settings.customSelector&&selectors.push(settings.customSelector);var $allVideos=$(this).find(selectors.join(","));$allVideos.each(function(){var $this=$(this);if(!("embed"===this.tagName.toLowerCase()&&$this.parent("object").length||$this.parent(".fluid-width-video-wrapper").length)){var height="object"===this.tagName.toLowerCase()||$this.attr("height")&&!isNaN(parseInt($this.attr("height"),10))?parseInt($this.attr("height"),10):$this.height(),width=isNaN(parseInt($this.attr("width"),10))?$this.width():parseInt($this.attr("width"),10),aspectRatio=height/width;if(!$this.attr("id")){var videoID="fitvid"+Math.floor(999999*Math.random());$this.attr("id",videoID)}$this.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*aspectRatio+"%"),$this.removeAttr("height").removeAttr("width")}})})}}(jQuery),function($){var current=$(".main-nav li.current-menu-item a").html();current=$(".main-nav li.current_page_item a").html(),$("span").hasClass("custom-mobile-menu-title")?current=$("span.custom-mobile-menu-title").html():("undefined"==typeof current||null===current)&&(current=$("body").hasClass("home")?$("#logo span").hasClass("site-name")?$("#logo .site-name a").html():$("#logo img").attr("alt"):$("body").hasClass("woocommerce")&&$("h1").hasClass("page-title")?$("h1.page-title").html():$("body").hasClass("woocommerce")&&$("h1").hasClass("entry-title")?$("h1.entry-title").html():$("body").hasClass("archive")&&$("h6").hasClass("title-archive")?$("h6.title-archive").html():$("body").hasClass("search-results")&&$("h6").hasClass("title-search-results")?$("h6.title-search-results").html():$("body").hasClass("page-template-blog-excerpt-php")&&$("li").hasClass("current_page_item")?$("li.current_page_item").text():$("body").hasClass("page-template-blog-php")&&$("li").hasClass("current_page_item")?$("li.current_page_item").text():$("h1").hasClass("post-title")?$("h1.post-title").html():" "),$(".main-nav").append(''),$(".main-nav").prepend(' "),$("a#responsive_menu_button, #responsive_current_menu_item").click(function(){$(".js .main-nav .menu").slideToggle(function(){$(this).is(":visible")?$("a#responsive_menu_button").addClass("responsive-toggle-open"):($("a#responsive_menu_button").removeClass("responsive-toggle-open"),$(".js .main-nav .menu").removeAttr("style"))})})}(jQuery),function($){$("html").click(function(){$("a#responsive_menu_button").hasClass("responsive-toggle-open")&&$(".js .main-nav .menu").slideToggle(function(){$("a#responsive_menu_button").removeClass("responsive-toggle-open"),$(".js .main-nav .menu").removeAttr("style")})})}(jQuery),jQuery(".main-nav").click(function(event){var pathname=window.location.pathname;"/wp-admin/customize.php"!=pathname&&event.stopPropagation()}),jQuery(function(){jQuery("input[placeholder], textarea[placeholder]").placeholder()}),jQuery(document).ready(function(){jQuery(".container").fitVids()}),function(){var is_webkit=navigator.userAgent.toLowerCase().indexOf("webkit")>-1,is_opera=navigator.userAgent.toLowerCase().indexOf("opera")>-1,is_ie=navigator.userAgent.toLowerCase().indexOf("msie")>-1;if((is_webkit||is_opera||is_ie)&&"undefined"!=typeof document.getElementById){var eventMethod=window.addEventListener?"addEventListener":"attachEvent";window[eventMethod]("hashchange",function(){var element=document.getElementById(location.hash.substring(1));element&&(/^(?:a|select|input|button|textarea)$/i.test(element.tagName)||(element.tabIndex=-1),element.focus())},!1)}}(); function ladder_widget_change (panel){ jQuery( ".ladder_widget_content" ).each(function( index ) { if (index == panel){ jQuery( this ).show(); } else { jQuery( this ).hide(); } }); } var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent"; var eventer = window[eventMethod]; var messageEvent = eventMethod == "attachEvent" ? "onmessage" : "message"; var startPath = ""; // Listen to message from child window eventer(messageEvent,function(e) { document.getElementById("iframeDiv").style.display = "none"; var key = e.message ? "message" : "data"; var data = e[key]; //run function// var obj = jQuery.parseJSON( data ); var realHeight = obj.height;// - obj.top; if (location.hash != ""){ if (location.hash != "#" + startPath){ var hashPath = "http://www.foxsportspulse.com/"+ location.hash.substring(1) +"&cpath="+ cpath +"&v=" + cv; document.getElementById("externalFrame").src = hashPath; } } if (obj.height > 0){ document.getElementById("iframeDiv").style.display = "block"; document.getElementById("iframeDiv").height= (obj.height) + "px"; document.getElementById("iframeDiv").width= ((obj.width)) + "px"; document.getElementById("externalFrame").style.marginTop= "-" + (obj.top) + "px"; document.getElementById("externalFrame").height= (obj.height) + "px"; document.getElementById("externalFrame").width= ((obj.width)-3) + "px"; if (startPath != obj.path){ location.hash = obj.path; startPath = obj.path; } } else { document.getElementById("iframeDiv").style.display = "none"; } },false); // jQuery('.widget_match_center').on("click", "#sp-comp-links a", function(event) { // event.preventDefault() // var origPath = jQuery( this ).attr("href"); // var newPath = origPath.split(".com/"); // location.href = fixturePage + "#" + newPath[1]; // });