x
';head.appendChild(div.childNodes[1]);}if(options){$.extend(settings,options);}return this.each(function(){var selectors=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]','object','embed'];if(settings.customSelector){selectors.push(settings.customSelector);}var ignoreList='.fitvidsignore';if(settings.ignore){ignoreList=ignoreList+', '+settings.ignore;}var $allVideos=$(this).find(selectors.join(','));$allVideos=$allVideos.not('object object');$allVideos=$allVideos.not(ignoreList);$allVideos.each(function(count){var $this=$(this);if($this.parents(ignoreList).length>0){return;}if(this.tagName.toLowerCase()==='embed'&&$this.parent('object').length||$this.parent('.fluid-width-video-wrapper').length){return;}if((!$this.css('height')&&!$this.css('width'))&&(isNaN($this.attr('height'))||isNaN($this.attr('width')))){$this.attr('height',9);$this.attr('width',16);}var height=(this.tagName.toLowerCase()==='object'||($this.attr('height')&&!isNaN(parseInt($this.attr('height'),10))))?parseInt($this.attr('height'),10):$this.height(),width=!isNaN(parseInt($this.attr('width'),10))?parseInt($this.attr('width'),10):$this.width(),aspectRatio=height/width;if(!$this.attr('id')){var videoID='fitvid'+count;$this.attr('id',videoID);}$this.wrap('').parent('.fluid-width-video-wrapper').css('padding-top',(aspectRatio*100)+'%');$this.removeAttr('height').removeAttr('width');});});};})(window.jQuery||window.Zepto);var pwdLocalize={"mobileSiteMenuLabel":"<\/span>"};(function($){'use strict';var wpexFunctions={cache:{},init:function(){this.cacheElements();this.bindEvents();},cacheElements:function(){this.cache={$window:$(window),$document:$(document),$body:$('body'),$isMobile:false,$isRTL:false,};},bindEvents:function(){var self=this;if(self.cache.$body.hasClass('rtl')){self.cache.$isRTL=true;}self.cache.$isTouch=(('ontouchstart'in window)||(navigator.msMaxTouchPoints>0));self.cache.$document.on('ready',function(){self.mobileCheck();self.headerSearch();self.responsiveEmbeds();self.commentScrollTo();self.commentLastClass();self.scrollTop();self.mobileMenu();});self.cache.$window.on('load',function(){self.cache.$body.addClass('pwd-site-loaded');self.masonry();});},mobileCheck:function(){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){this.cache.$body.addClass('pwd-is-mobile-device');this.cache.$isMobile=true;return true;}},headerSearch:function(){var $headerSearch=$('.pwd-site-header-search'),$headerSearchToggle=$('.pwd-search-toggle');$headerSearchToggle.click(function(){$headerSearch.toggleClass('pwd-active');return false;});this.cache.$document.on('click',function(event){if(!$(event.target).closest($headerSearch).length){$headerSearch.removeClass('pwd-active');}});},masonry:function(){if(typeof($.fn.masonry)!=='undefined'){var self=this,$grid=$('.pwd-entries'),$settings=$grid.data('settings');if($settings){$grid.imagesLoaded(function(){$grid.isotope($settings);});}}},responsiveEmbeds:function(){$('.pwd-responsive-embed').fitVids({ignore:'.pwd-fitvids-ignore'});$('.pwd-responsive-embed').addClass('pwd-show');},commentScrollTo:function(){$('.single .comments-link').click(function(){var $target=$('#comments');var $offset=30;if($target.length){$('html,body').animate({scrollTop:$target.offset().top-$offset},1000);return false;}});},commentLastClass:function(){$(".commentlist li.pingback").last().addClass('last');},mobileMenu:function(){var $closedSymbol=this.cache.$isRTL?'◄':'►';if($.fn.slicknav!=undefined){var $mobileMenuAlt=$('.pwd-mobile-menu-alt ul');var $menu=$mobileMenuAlt.length?$mobileMenuAlt:$('.pwd-site-nav-container .pwd-dropdown-menu');if($menu.length){$menu.slicknav({appendTo:'.pwd-site-header',label:pwdLocalize.mobileSiteMenuLabel,allowParentLinks:true,closedSymbol:$closedSymbol});}}},scrollTop:function(){var $scrollTopLink=$('a.pwd-site-scroll-top');this.cache.$window.scroll(function(){if($(this).scrollTop()>100){$scrollTopLink.addClass('pwd-show');}else{$scrollTopLink.removeClass('pwd-show');}});$scrollTopLink.on('click',function(){$('html, body').animate({scrollTop:0},400);return false;});},};wpexFunctions.init();})(jQuery);!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c"+e.message+"
"),e.urls)for(var c=0,f=e.urls.length;c-1?e:parseFloat(e)+"px",t=(0,m.isString)(t)&&t.indexOf("%")>-1?t:parseFloat(t)+"px",n.getElement(n.container).style.width=e,n.getElement(n.container).style.height=t;for(var o=n.getElement(n.layers).children,i=0,r=o.length;i