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

$(document).ready(function () {
        $("#header").load("header.html");
        $("#footer").load("footer.html");
        $("#contact").load("contact.html");

        $(".close-menu").click(function(){
            $(".fixed-popup-sec").toggle();
            $(".fixed-overlay").hide();
          });
    });

// scroll-link

$(document).ready(function() {
    $("a.scrollLink").click(function(event) {
        event.preventDefault();
        $("html, body").animate(
            { scrollTop: $($(this).attr("href")).offset().top },
            500
        );
    });
});

/* typed letter */
if ($("#typed").length) {
    var typed = new Typed("#typed", {
        stringsElement: "#typed-strings",
        loop: true,
        loopCount: Infinity,
        fadeOut: false,
        backSpeed: 200,
        smartBackspace: true,
        showCursor: true,
        cursorChar: "|",
        typeSpeed: 100
    });
}




Back to Directory File Manager