Mint: A Fresh Look at your Site Minted
  1. 1 !function(a){function e(e){var t=a("<button />",{class:"dropdown-toggle","aria-expanded":!1}).append(screenReaderText.icon).append(a("<span />",{class:"screen-reader-text",text:screenReaderText.expand}));e.find(".menu-item-has-children > a, .page_item_has_children > a").after(t),e.find(".current-menu-ancestor > button").addClass("toggled-on").attr("aria-expanded","true").find(".screen-reader-text").text(screenReaderText.collapse),e.find(".current-menu-ancestor > .sub-menu").addClass("toggled-on"),e.find(".menu-item-has-children").attr("aria-haspopup","true"),e.find(".dropdown-toggle").on("click",function(e){var t=a(this),n=t.find(".screen-reader-text");e.preventDefault(),t.toggleClass("toggled-on"),t.next(".children, .sub-menu").toggleClass("toggled-on"),t.attr("aria-expanded","false"===t.attr("aria-expanded")?"true":"false"),n.text(n.text()===screenReaderText.expand?screenReaderText.collapse:screenReaderText.expand)})}function t(){1024<=window.innerWidth?(a(document.body).on("touchstart",function(e){a(e.target).closest(".main-navigation li").length||a(".main-navigation li").removeClass("focus")}),siteNavigationSecondary.find(".menu-item-has-children > a").on("touchstart",function(e){var t=a(this).parent("li");t.hasClass("focus")||(e.preventDefault(),t.toggleClass("focus"),t.siblings(".focus").removeClass("focus"))})):siteNavigationSecondary.find(".menu-item-has-children > a").unbind("touchstart")}"function"==typeof jQuery.fn.fitVids&&jQuery(".hentry, .widget").fitVids(),a(document).on("wp-custom-header-video-loaded",function(){a("body").addClass("has-header-video"),a(document).ready(function(){let e=document.querySelector("video");e.setAttribute("data-keepplaying","")})}),a(function(){a(document).ready(function(){a(".featured-content-wrapper .entry-container, .team-content-wrapper .hentry-inner").matchHeight()})}),a(function(){a(document).ready(function(){var e;!0==((e=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI))&&(document.documentElement.className=document.documentElement.className.replace(/(\s*)no-svg(\s*)/,"$1svg$2"))})}),menuToggleSecondary=a("#menu-toggle-primary"),siteSecondaryMenu=a("#site-primary-menu"),e(siteNavigationSecondary=a("#site-primary-navigation")),menuToggleSecondary.length&&(menuToggleSecondary.add(siteNavigationSecondary).attr("aria-expanded","false"),menuToggleSecondary.on("click",function(){a(this).add(siteSecondaryMenu).toggleClass("toggled-on"),a("body").toggleClass("menu-is-open"),a(this).add(siteNavigationSecondary).attr("aria-expanded","false"===a(this).add(siteNavigationSecondary).attr("aria-expanded")?"true":"false")})),siteNavigationSecondary.length&&siteNavigationSecondary.children().length&&("ontouchstart"in window&&(a(window).on("resize",t),t()),siteNavigationSecondary.find("a").on("focus blur",function(){a(this).parents(".menu-item").toggleClass("focus")})),a(document).on("click",function(){a("body").removeClass("menu-is-open"),a(".menu-toggle, .menu-search-toggle").removeClass("toggled-on"),a(".site-primary-menu").removeClass("toggled-on"),a(".search-social-container").removeClass("displayblock"),a(".search-social-container").addClass("displaynone")}),a(".primary-menu a").on("click",function(){a("body").removeClass("menu-is-open"),a(".menu-toggle, .menu-search-toggle").removeClass("toggled-on"),a(".site-primary-menu").removeClass("toggled-on"),o()}),a(".menu-toggle, .dropdown-toggle, .search-social-container, .site-primary-menu").on("click",function(e){e.stopPropagation()}),menuToggleFooter=a("#menu-toggle-footer"),siteFooterMenu=a("#footer-menu-wrapper"),e(siteNavigationFooter=a("#site-footer-navigation")),menuToggleFooter.length&&(menuToggleFooter.add(siteNavigationFooter).attr("aria-expanded","false"),menuToggleFooter.on("click",function(){a(this).add(siteFooterMenu).toggleClass("toggled-on"),a(this).add(siteNavigationFooter).attr("aria-expanded","false"===a(this).add(siteNavigationFooter).attr("aria-expanded")?"true":"false")})),a(".search-toggle").on("click",function(){a(this).toggleClass("toggled-on"),a("body").toggleClass("menu-is-open");var e=a(this).siblings(".search-social-container");e.hasClass("displaynone")?e.removeClass("displaynone").addClass("displayblock"):e.removeClass("displayblock").addClass("displaynone")}),a(".header-media").length||a("#feature-slider-section").length||a("body").addClass("header-top-disabled"),a(".header-media").length||a("body").addClass("header-media-disabled");var n=a("#header-content"),o=(scrolledNav="main-nav-scrolled",setTimeout(function(){a("#fullpage .section").each(function(e,t){a(this).height(a(window).height()),a(this).children("div.fp-tableCell").height(a(window).height())})},200),navOffset=a("#header-content").offset().top,navHeight=a("#header-content").height(),navOffsetHeight=navOffset+navHeight,function(){a(this).scrollTop()>=navOffsetHeight-100?(n.addClass(scrolledNav),a("body:not(.header-media-disabled).header-top-disabled #header-content.main-nav-scrolled").parents("#masthead").next().css("margin-top",navHeight),a("body").not(".home").find("#masthead").next().css("margin-top",navHeight),a(".remove-sticky-menu.header-top-disabled #header-content.main-nav-scrolled").parents("#masthead").next().css("margin-top",0),a("body.remove-sticky-menu").not(".home").find("#masthead").next().css("margin-top",0),a("body.home.page.remove-sticky-menu").find("#masthead").next().css("margin-top",0)):a(this).scrollTop()<=navOffset&&(n.removeClass(scrolledNav),a("body:not(.header-media-disabled).header-top-disabled #header-content").parent().next().removeAttr("style"),a("body").not(".home").find("#masthead").next().removeAttr("style"))}),i=(o(),a(window).on("scroll resize",function(){o()}),a(".section").each(function(){-1!=(a(this).attr("id")+":"+a(this).css("background-image")).indexOf("url")&&a(this).addClass("has-section-background-image")}),a(window).on("load resize",function(){var e,t=32;a(window).width()<783&&(t=46),1024<=a(window).width()?a(".site-primary-menu").css("height","unset"):(e=a("#header-content").outerHeight(),e=parseInt(e+t),a(".site-primary-menu").css("height","calc(100vh - "+e+"px)"))}),a(window).height());a("#feature-slider-section .wrapper, #feature-slider-section .hentry").css("height",i),a(window).on("load resize",function(){var e=a(window).height();a("#feature-slider-section .wrapper, #feature-slider-section .hentry").css("height",e)})}(jQuery);
Bookmark: javascript:location='http://shauninman.com/vs/?url='+escape(location)