Viewing File: /home/ubuntu/ai-landing-ui/assets/js/script.js
$(document).ready(function() {
var slider = tns({
container: '.client-slider',
loop: true,
items: 4,
controlsContainer: "#customize-controls",
responsive: {
1200: {
items: 3,
loop: true,
},
900: {
items: 2,
loop: true,
},
700: {
gutter: 30,
items: 2
},
640: {
edgePadding: 20,
gutter: 20,
items: 1
},
360: {
items: 1
},
}
});
});
// scroll responsive top nav
$(document).ready(function() {
$(window).scroll(function() {
if ($(document).scrollTop() > 50) {
$(".header-nav-center").addClass("header-fixed");
} else {
$(".header-nav-center").removeClass("header-fixed");
}
});
});
/*------------- Smooth Click Scroll -------------*/
$('a.smooth[href^="#"]').on('click', function(event) {
var target = $(this.getAttribute('href'));
if (target.length) {
event.preventDefault();
$('html, body').stop().animate({
scrollTop: target.offset().top
}, 1000);
}
});
$(document).ready(function () {
$("#header").load("header.html");
$("#footer").load("footer.html");
$("#contact").load("contact.html");
});
Back to Directory
File Manager