PageSourceSearch

https://www.apexdesignbuild.net/wp-content/themes/bb-theme-child/js/different-header.js?ver=1.6.1

js apexdesignbuild.net collected 2026-10-07 23:50:12 UTC 1,223 bytes, 50 lines download raw bytes

1(function($){
2
3	DifferentHeader = {
4		_doScroll: function()
5		{
6			var slmHD 	= $('.slim-header');
7			var bigHD 	= $('header.fl-builder-content .big-header');
8			var headerH = 0;
9
10			$('header.fl-builder-content .fl-row').each(function(key,val){
11				headerH = headerH + $(this).height();
12			});
13
14			$(window).on('scroll', function(event){
15				var st = $(this).scrollTop();
16				if (st > headerH){
17					slmHD.addClass('fl-do-scroll');
18					bigHD.addClass('fl-do-scroll');
19
20					if ( $('body').hasClass('admin-bar') )
21					{
22						$('.slim-header').css({'top' : $('#wpadminbar').height() });
23					}
24				} else {
25					slmHD.removeClass('fl-do-scroll');
26					bigHD.removeClass('fl-do-scroll');
27
28					if ( $('body').hasClass('admin-bar') )
29					{
30						$('.slim-header').css({'top' : '0' });
31					}
32				}
33			});
34		}
35	};
36
37	$(function(){
38		if( $('header.fl-builder-content .big-header').length > 0 )
39		{
40			if( $(window).width() >= FLBuilderLayoutConfig.breakpoints.small )
41				DifferentHeader._doScroll();
42
43			$(window).on( 'resize', function(){
44				if( $(window).width() >= FLBuilderLayoutConfig.breakpoints.small )
45					DifferentHeader._doScroll();
46			});
47		}
48	});
49
50})(jQuery);

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.