Viewing File: /home/ubuntu/bytecollar-landing-ui/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();
});
});
document.addEventListener('click',function(e){
// Hamburger menu
if(e.target.classList.contains('hamburger-toggle')){
e.target.children[0].classList.toggle('active');
}
})
// const handleScroll = () => {
// const scrollTop = window.scrollY;
// if (scrollTop > 1000) {
// $(".arrow-up").removeClass("hidden");
// } else {
// $(".arrow-up").addClass("hidden");
// }
// };
// const ScrollTop = () => {
// window.addEventListener("scroll", handleScroll);
// $("html, body").animate({ scrollTop: 0 }, 1000);
// return false;
// };
// ScrollTop();
/* 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