PageSourceSearch

https://analytics4innovation.de/wp-content/themes/karuna/assets/js/functions.js?ver=20160531

js analytics4innovation.de collected 2026-10-07 20:47:32 UTC 1,017 bytes, 41 lines download raw bytes

1/**
2 * Handles sticky header
3 */
4
5( function( $ ) {
6
7	var stickyHeader       = $( '.sticky-wrapper' );
8	var topBar             = $( '.top-bar' );
9	var stickyHeaderOffset = topBar.outerHeight();
10	var body               = $( 'body' );
11	var windowWidth;
12
13	var stickyTime = function( width ) {
14		if( window.pageYOffset >= ( stickyHeaderOffset ) && width >= 1100 ) {
15			stickyHeader.addClass( 'sticking' );
16
17			var stuckHeader        = $( '.sticky-wrapper.sticking' );
18			var stickyHeaderHeight = stuckHeader.outerHeight();
19
20			body.css( 'padding-top', stickyHeaderHeight );
21			topBar.css( 'visibility', 'hidden' );
22		} else {
23			stickyHeader.removeClass( 'sticking' );
24			body.removeAttr( 'style' );
25			topBar.removeAttr( 'style' );
26		}
27	}
28
29	// Functions to fire on window load
30	$( window ).load( function() {
31		windowWidth = $( this ).width();
32		stickyTime( windowWidth );
33	} );
34
35	// After scrolling
36	$( window ).scroll( function() {
37		windowWidth = $( this ).width();
38		stickyTime( windowWidth );
39	} );
40
41} )( 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.