1/** 2 * This script takes care of the fixed ad bar and related animations. 3 * 4 * @author Landau Forte Charitable Trust 5 * @license GPL-2.0+ 6 * @link https://lfct.org.uk/ 7 */ 8var wpAdminBarActive=jQuery("body").hasClass("admin-bar"),fixedAd=jQuery(".fixed-ad"),siteHeader=jQuery(".site-header"),siteContent=jQuery(".site-container"),navPositionValue=jQuery(".site-header").css("position");if("fixed"==navPositionValue){var wpAdminBarHeight=wpAdminBarActive?32:0,fixedAdHeight=fixedAd.length?fixedAd.outerHeight():0,scrollLimit=750;fixedAdHeight>0&&siteContent.length&&(siteHeader.css("top",fixedAdHeight),siteContent.css("margin-top",fixedAdHeight)),jQuery(window).scroll(function(){var e=jQuery(".fixed-ad"),i=e.length?e.outerHeight():0;jQuery(this).scrollTop()>scrollLimit?(e.css("top",-(i+wpAdminBarHeight)),siteHeader.css("top",0+wpAdminBarHeight)):(e.css("top",0+wpAdminBarHeight),siteHeader.css("top",i+wpAdminBarHeight))})}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.