PageSourceSearch

https://uswaltzing.be/themes/premium_predators/js/theme.js?20260926+2021

js uswaltzing.be collected 2026-09-25 12:38:59 UTC 1,530 bytes, 56 lines download raw bytes

1var init_headerContainer_top;
2var init_menuContainer_top;
3
4$(document).ready(function() {
5    init_headerContainer_top = parseInt( $("#header-container").css("top") );
6    init_menuContainer_top = parseInt( $("#menu-container-desktop").css("top") );
7
8    resizeWebsiteContainer();
9});
10
11$(window).scroll(function() {
12    resizeWebsiteContainer();
13});
14
15$(window).resize(function() {
16    resizeWebsiteContainer();
17});
18
19function resizeWebsiteContainer(){
20
21    if( $("#website-container").hasClass('hasTopBar') ){
22        var scrollTop = $(this).scrollTop();
23        var topBar_height = $(".topBar").outerHeight();
24
25        var headerContainer_position = $("#header-container").css("position");
26
27        if(scrollTop > topBar_height) topBar_height = 0;
28
29        if(headerContainer_position == "fixed"){
30            var headerContainer_top = init_headerContainer_top + topBar_height;
31            $("#header-container").css("top", headerContainer_top);
32        }else{
33            $("#header-container").css("top", 0);
34        }
35
36        var menuContainer_top = init_menuContainer_top + topBar_height;
37        $("#menu-container-desktop").css("top", menuContainer_top);
38    }
39    
40}
41
42/* SCROLL TO TOP */
43
44var id_scrollToTop = "#scroll-to-top";
45
46$(window).scroll(function () {
47    if ($(window).scrollTop() >= 600) {
48        $(id_scrollToTop).css("display", "block");
49    } else {
50        $(id_scrollToTop).css("display", "none");
51    }
52});
53
54$(id_scrollToTop).click(function (e) {
55    $('html, body').animate({ scrollTop: 0 }, 'slow');
56});

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.