-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcustom.js
84 lines (68 loc) · 2.11 KB
/
custom.js
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
79
80
81
82
83
/* jQuery Pre loader
-----------------------------------------------*/
$(window).load(function(){
$('.preloader').fadeOut(1000); // set duration in brackets
});
$(document).ready(function() {
/* Hide mobile menu after clicking on a link
-----------------------------------------------*/
$('.navbar-collapse a').click(function(){
$(".navbar-collapse").collapse('hide');
});
/* Smoothscroll js
-----------------------------------------------*/
$(function() {
$('.navbar-default a').bind('click', function(event) {
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top - 49
}, 1000);
event.preventDefault();
});
});
/* Home Slideshow Vegas
-----------------------------------------------*/
$(function() {
$('body').vegas({
slides: [
{ src: 'images/slide-img1.jpg' },
{ src: 'images/slide-img2.jpg' },
{ src: 'images/slide-img3.jpg' }
],
timer: false,
transition: [ 'zoomIn', ],
animation: ['kenburns']
});
});
/* Team carousel
-----------------------------------------------*/
$(document).ready(function() {
$("#team-carousel").owlCarousel({
items : 3,
itemsDesktop : [1199,3],
itemsDesktopSmall : [979,3],
slideSpeed: 300,
itemsDesktop : [1199,2],
itemsTablet: [768,1],
itemsTabletSmall: [985,2],
itemsMobile : [479,1],
});
});
/* Back to Top
-----------------------------------------------*/
$(window).scroll(function() {
if ($(this).scrollTop() > 200) {
$('.go-top').fadeIn(200);
} else {
$('.go-top').fadeOut(200);
}
});
// Animate the scroll to top
$('.go-top').click(function(event) {
event.preventDefault();
$('html, body').animate({scrollTop: 0}, 300);
});
/* wow
-------------------------------*/
new WOW({ mobile: false }).init();
});