PageSourceSearch

https://www.tagapplication.it/wp-content/themes/pathsoft/assets/js/header-fixed.js?ver=1758897433

js tagapplication.it collected 2026-10-02 01:59:10 UTC 1,554 bytes, 58 lines download raw bytes

1(function() {
2
3	"use strict";
4  
5	var app = {
6		
7		init: function() {
8
9			if( jQuery('.header-fixed').length ) {
10
11				$(window).on("load resize scroll", app.handler);
12
13			}
14			
15		},
16
17        IS_FIXED: false,
18
19        handler: function() {
20
21            var header = jQuery('.header-fixed');
22            var height = header.outerHeight();
23            var offsetTop = header.offset().top;
24            var scrollTop = $(this).scrollTop();
25
26            var wpadminbar = jQuery('#wpadminbar');
27            var wpadminbarHeight = wpadminbar.outerHeight();
28
29            var headerStatic = jQuery(".header-fixed-static");
30            if(headerStatic.length) { 
31                offsetTop = headerStatic.offset().top;
32                headerStatic.css("height", height);
33                if(wpadminbar.length) { offsetTop = offsetTop - wpadminbarHeight; }
34            }
35
36            if(scrollTop >= offsetTop) {
37                if(!app.IS_FIXED) {
38                    header.addClass("fixed");
39                    header.after('<div class="header-fixed-static" style="height:' + height + 'px"></div>');
40                    if(wpadminbar.length) { header.css('top', wpadminbarHeight); }
41                }
42                app.IS_FIXED = true;
43            } else {
44                if(app.IS_FIXED) {
45                    header.removeClass("fixed");
46                    headerStatic.remove();
47                    if(wpadminbar.length) { header.css('top', '0'); }
48                }
49                app.IS_FIXED = false;
50            }
51
52        }
53		
54	}
55
56	app.init();
57 
58}());

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.