HEX
Server: Apache
System: Linux server-674799.igrow.ws 5.14.0-611.27.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 4 04:40:11 EST 2026 x86_64
User: elrashedytravel (1025)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/elrashedytravel/public_html/wp-content/themes/morenews/assets/fixed-header-script.js
jQuery(document).ready(function ($) {
    var header = document.getElementById("main-navigation-bar");
    var masthead = document.getElementById("masthead");

    if (!header || !masthead) return;

    var stickyHeight = header.offsetHeight;
    var sticky = header.offsetTop + stickyHeight;
    var isStickyActive = false;

    function applyStickyHeader() {
        if (window.pageYOffset > sticky) {
            if (!isStickyActive) {
                header.classList.add("aft-sticky-navigation");
                masthead.style.paddingBottom = stickyHeight + "px";
                isStickyActive = true;
            }
        } else {
            if (isStickyActive) {
                header.classList.remove("aft-sticky-navigation");
                masthead.style.paddingBottom = "0px";
                isStickyActive = false;
            }
        }
    }

    $(window).on('scroll', applyStickyHeader);
    applyStickyHeader(); // Run on load
});