-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathactive.js
executable file
·148 lines (133 loc) · 3.84 KB
/
active.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
(function ($) {
'use strict';
// [ JS Active Code Index ]
// :: 1.0 Owl Carousel Active Code
// :: 2.0 Slick Active Code
// :: 3.0 Footer Reveal Active Code
// :: 4.0 ScrollUp Active Code
// :: 5.0 CounterUp Active Code
// :: 6.0 onePageNav Active Code
// :: 7.0 Magnific-popup Video Active Code
// :: 8.0 Sticky Active Code
// :: 9.0 Preloader Active code
// :: 1.0 Owl Carousel Active Code
if ($.fn.owlCarousel) {
$(".welcome_slides").owlCarousel({
items: 1,
loop: true,
autoplay: true,
smartSpeed: 1500,
nav: true,
navText: ["<i class='pe-7s-angle-left'</i>", "<i class='pe-7s-angle-right'</i>"]
});
$(".app_screenshots_slides").owlCarousel({
items: 1,
loop: true,
autoplay: true,
smartSpeed: 800,
margin: 30,
center: true,
dots: true,
responsive: {
0: {
items: 1
},
480: {
items: 3
},
992: {
items: 5
}
}
});
}
// :: 2.0 Slick Active Code
if ($.fn.slick) {
$('.slider-for').slick({
slidesToShow: 1,
slidesToScroll: 1,
speed: 500,
arrows: false,
fade: true,
asNavFor: '.slider-nav'
});
$('.slider-nav').slick({
slidesToShow: 3,
slidesToScroll: 1,
speed: 500,
asNavFor: '.slider-for',
dots: true,
centerMode: true,
focusOnSelect: true,
slide: 'div',
autoplay: true,
centerMode: true,
centerPadding: '30px',
mobileFirst: true,
prevArrow: '<i class="fa fa-angle-left"></i>',
nextArrow: '<i class="fa fa-angle-right"></i>'
});
}
// :: 3.0 Footer Reveal Active Code
if ($.fn.footerReveal) {
$('footer').footerReveal({
shadow: true,
shadowOpacity: 0.3,
zIndex: -101
});
}
// :: 4.0 ScrollUp Active Code
// if ($.fn.scrollUp) {
// $.scrollUp({
// scrollSpeed: 1500,
// scrollText: '<i class="fa fa-angle-up"></i>'
// });
// }
// :: 5.0 CounterUp Active Code
if ($.fn.counterUp) {
$('.counter').counterUp({
delay: 10,
time: 2000
});
}
// :: 6.0 onePageNav Active Code
if ($.fn.onePageNav) {
$('#nav').onePageNav({
currentClass: 'active',
scrollSpeed: 2000,
easing: 'easeOutQuad'
});
}
// :: 7.0 Magnific-popup Video Active Code
if ($.fn.magnificPopup) {
$('.video_btn').magnificPopup({
disableOn: 0,
type: 'iframe',
mainClass: 'mfp-fade',
removalDelay: 160,
preloader: true,
fixedContentPos: false
});
}
$('a[href="#"]').click(function ($) {
$.preventDefault()
});
var $window = $(window);
if ($window.width() > 767) {
new WOW().init();
}
// :: 8.0 Sticky Active Code
$window.on('scroll', function () {
if ($window.scrollTop() > 48) {
$('.header_area').addClass('sticky slideInDown');
} else {
$('.header_area').removeClass('sticky slideInDown');
}
});
// :: 9.0 Preloader Active code
$window.on('load', function () {
$('#preloader').fadeOut('slow', function () {
$(this).remove();
});
});
})(jQuery);