-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproj.js
More file actions
78 lines (68 loc) · 1.91 KB
/
proj.js
File metadata and controls
78 lines (68 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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
});
});