e4a90646de
This reverts commit 59c3bae5b2.
112 lines
3.0 KiB
JavaScript
112 lines
3.0 KiB
JavaScript
jQuery(function ($) {
|
|
|
|
'use strict';
|
|
|
|
// -------------------------------------------------------------
|
|
// Preloader
|
|
// -------------------------------------------------------------
|
|
(function () {
|
|
$('#status').fadeOut();
|
|
$('#preloader').delay(200).fadeOut('slow');
|
|
}());
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------
|
|
// sticky menu
|
|
// ------------------------------------------------------------------
|
|
$(window).scroll(function() {
|
|
if ($(".navbar").offset().top > 50) {
|
|
$(".navbar-fixed-top").addClass("sticky-nav");
|
|
} else {
|
|
$(".navbar-fixed-top").removeClass("sticky-nav");
|
|
}
|
|
});
|
|
|
|
|
|
|
|
// -------------------------------------------------------------
|
|
// mobile menu
|
|
// -------------------------------------------------------------
|
|
(function () {
|
|
$('button.navbar-toggle').ucOffCanvasMenu({
|
|
documentWrapper: '#main-wrapper',
|
|
contentWrapper : '.content-wrapper',
|
|
position : 'uc-offcanvas-left', // class name
|
|
// opener : 'st-menu-open', // class name
|
|
effect : 'slide-along', // class name
|
|
closeButton : '#uc-mobile-menu-close-btn',
|
|
menuWrapper : '.uc-mobile-menu', // class name below-pusher
|
|
documentPusher : '.uc-mobile-menu-pusher'
|
|
});
|
|
}());
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------
|
|
// tooltip
|
|
// -------------------------------------------------------------
|
|
|
|
(function () {
|
|
|
|
$('[data-toggle="tooltip"]').tooltip()
|
|
|
|
}());
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------
|
|
// jQuery for back to Top
|
|
// ------------------------------------------------------------------
|
|
(function(){
|
|
|
|
$('body').append('<div id="toTop"><i class="fa fa-angle-up"></i></div>');
|
|
|
|
$(window).scroll(function () {
|
|
if ($(this).scrollTop() != 0) {
|
|
$('#toTop').fadeIn();
|
|
} else {
|
|
$('#toTop').fadeOut();
|
|
}
|
|
});
|
|
|
|
$('#toTop').on('click',function(){
|
|
$("html, body").animate({ scrollTop: 0 }, 600);
|
|
return false;
|
|
});
|
|
|
|
}());
|
|
|
|
|
|
// -------------------------------------------------------------
|
|
// testimonialSlider
|
|
// -------------------------------------------------------------
|
|
(function () {
|
|
|
|
$('.testimonialSlider').flexslider({
|
|
animation: "slide",
|
|
controlNav: "thumbnails",
|
|
directionNav: false
|
|
})
|
|
|
|
// Navigation
|
|
$('.prev').on('click', function(){
|
|
$('.testimonialSlider').flexslider('prev')
|
|
return false;
|
|
})
|
|
|
|
$('.next').on('click', function(){
|
|
$('.testimonialSlider').flexslider('next')
|
|
return false;
|
|
})
|
|
}());
|
|
|
|
}); // JQuery end
|
|
|
|
|
|
$(document).on('click', '.m-menu .dropdown-menu', function(e) {
|
|
e.stopPropagation()
|
|
})
|