[6b894f]: / Web / static / js / custom.js

Download this file

42 lines (36 with data), 849 Bytes

 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
(function ($) {
"use strict";
$(document).ready(function() {
$('select').niceSelect();
});
// menu fixed js code
$(window).scroll(function () {
var window_top = $(window).scrollTop() + 1;
if (window_top > 50) {
$('.main_menu').addClass('menu_fixed animated fadeInDown');
} else {
$('.main_menu').removeClass('menu_fixed animated fadeInDown');
}
});
$(document).ready(function() {
$('select').niceSelect();
});
var review = $('.client_review_part');
if (review.length) {
review.owlCarousel({
items: 1,
loop: true,
dots: true,
autoplay: true,
autoplayHoverPause: true,
autoplayTimeout: 5000,
nav: false,
smartSpeed: 2000,
});
}
//------- Mailchimp js --------//
function mailChimp() {
$('#mc_embed_signup').find('form').ajaxChimp();
}
mailChimp();
}(jQuery));