Viewing File: /home/ubuntu/chaintechsource-landing/assets/js/main.js

$(document).ready(function () {
    $(window).scroll(function() {
        if ($(document).scrollTop() > 50) {
            $(".header-nav-center").addClass("header-fixed");
        } else {
            $(".header-nav-center").removeClass("header-fixed");
        }
    });
    $("#header").load("header.html");
    $("#footer").load("footer.html");
    $("#contact").load("contact.html");
    $(".close-menu").click(function(){
        $(".fixed-popup-sec").toggle();
        $(".fixed-overlay").hide();
    });

    $(".sticky-floating-close-btn").click(function(){
        $(".sticky-floating-sidebar").hide();
    });
});

$(document).ready(function() {
    
    var url = $("#video1").attr('src');
    
    $("#exampleModal").on('hide.bs.modal', function() {
        $("#video1").attr('src', '');
    });

    $("#exampleModal").on('show.bs.modal', function() {
        $("#video1").attr('src', url);
    });
    
    setTimeout(function(){

        // console.log("page_url", window.location.href);

        $("#page_url").val(window.location.href);

        // console.log("page_url", $("#page_url").val());
        
    }, 5000);
});


Back to Directory File Manager