Move web content to dedicated content directory

This commit is contained in:
2022-11-15 10:32:02 -05:00
parent 4158a5991b
commit dd3e3792f2
446 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
(function ($) {
// Init Wow
wow = new WOW( {
animateClass: 'animated',
offset: 100
});
wow.init();
// Navigation scrolls
$('.navbar-nav li a').bind('click', function(event) {
$('.navbar-nav li').removeClass('active');
$(this).closest('li').addClass('active');
var $anchor = $(this);
var nav = $($anchor.attr('href'));
if (nav.length) {
$('html, body').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top
}, 1500, 'easeInOutExpo');
event.preventDefault();
}
});
// About section scroll
$(".overlay-detail a").on('click', function(event) {
event.preventDefault();
var hash = this.hash;
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 900, function(){
window.location.hash = hash;
});
});
//jQuery to collapse the navbar on scroll
$(window).scroll(function() {
if ($(".navbar-default").offset().top > 50) {
$(".navbar-fixed-top").addClass("top-nav-collapse");
} else {
$(".navbar-fixed-top").removeClass("top-nav-collapse");
}
});
// Testimonials Slider
$('.bxslider').bxSlider({
adaptiveHeight: true,
mode: 'fade'
});
})(jQuery);