rebuild index page

This commit is contained in:
SowinskiBraeden committed 2022-04-12 21:58:15 -07:00
1 parent e87d252934
commit eaa2febbf2
74 files changed
+16743 -38068

No files matched your search

+78
View File
@@ -0,0 +1,78 @@
$(document).ready(function(){
// wow initiation
new WOW().init();
// navigation bar toggle
$('#navbar-toggler').click(function(){
$('.navbar-collapse').slideToggle(400);
});
// navbar bg change on scroll
$(window).scroll(function(){
let pos = $(window).scrollTop();
if(pos >= 100){
$('.navbar').addClass('cng-navbar');
} else {
$('.navbar').removeClass('cng-navbar');
}
});
// sample video popup
$(document).ready(function() {
$('.popup-youtube').magnificPopup({
disableOn: 700,
type: 'iframe',
mainClass: 'mfp-fade',
removalDelay: 160,
preloader: false,
fixedContentPos: false
});
});
// team carousel
$('.team .owl-carousel').owlCarousel({
loop: true,
margin: 10,
autoplay: true,
dots: true,
nav: false,
responsiveClass: true,
responsive:{
0:{
items: 1
},
600:{
items: 2
},
1000:{
items: 3
}
}
});
// faq accordion
$('.faq-head').each(function(){
$(this).click(function(){
$(this).next().toggleClass('show-faq-content');
let icon = $(this).children('span').children("i").attr('class');
if(icon == "fas fa-plus"){
$(this).children('span').html('<i class = "fas fa-minus"></i>');
} else {
$(this).children('span').html('<i class = "fas fa-plus"></i>');
}
});
});
// testimonial carousel
$('.testimonial .owl-carousel').owlCarousel({
loop: true,
autoplay: true,
dots: true,
nav: false,
items: 1
});
});