403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/hkosl.com/alphastep/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hkosl.com/alphastep/assets/js/custom.js
// Hide Header on on scroll down
var didScroll;
var lastScrollTop = 0;
var delta = 5;
var navbarHeight = $(".nav").outerHeight();


$(window).scroll(function(event) {
    didScroll = true;
});

setInterval(function() {
    if (didScroll) {
        hasScrolled();
        didScroll = false;
    }
}, 250);




$(document).on("click", ".mobileFilterBtn", function () {
    $( ".filterItem" ).toggle( "slow" );
    $( this ).toggleClass( "rotate" );
});

// $(document).ready(function() {
//     $('.form_date').datepicker({
//         format: 'M dd yyyy',
//         orientation: 'bottom'
//     });
    
// });



function hasScrolled() {
    var st = $(this).scrollTop();

    // Make sure they scroll more than delta
    if (Math.abs(lastScrollTop - st) <= delta) return;

    // If they scrolled down and are past the navbar, add class .nav-up.
    // This is necessary so you never see what is "behind" the navbar.
    if (st > lastScrollTop && st > navbarHeight) {
        // Scroll Down
        $(".nav").addClass("nav-up");

    } else {
        // Scroll Up
        if (st + $(window).height() < $(document).height()) {
            $(".nav").removeClass("nav-up");

        }
    }




    lastScrollTop = st;
}




$(".scrollTop").click(function() {
    // When arrow is clicked
    $("html").animate({
            scrollTop: 0, // Scroll to top of body
        },
        500
    );
});

Youez - 2016 - github.com/yon3zu
LinuXploit