include js

This commit is contained in:
2019-02-04 14:35:14 +01:00
parent 13e2b28ef0
commit a9ece64292
53 changed files with 14632 additions and 201 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -1,31 +1,26 @@
function jcarousel() {
$('.owl-carousel').owlCarousel({
margin:20,
margin:40,
loop:true,
autoWidth:true,
items:8,
nav: true
});
}
function scrollHeader() {
$(function() {
var $Header = $('header .title');
var header = $(".header");
$(window).scroll(function() {
var scroll = $(window).scrollTop();
$(window).scroll(function() {
var scroll = $(window).scrollTop();
if (scroll >= 500) {
header.removeClass('header').addClass("darkHeader");
} else {
header.removeClass("darkHeader").addClass('header');
}
});
if (scroll >= 500) {
$Header.addClass("Hc");
} else {
$Header.removeClass("Hc");
}
});
}
function open() {
@@ -33,7 +28,6 @@ function open() {
var $answer = $('.why_lsdo ');
$pk.click(function() {
// $answer.toggleClass('close');
if ($('.why_lsdo').hasClass('open')){
$('.why_lsdo').removeClass('open');
$('.why_lsdo').addClass('close');
@@ -41,13 +35,56 @@ function open() {
$('.why_lsdo').removeClass('close');
$('.why_lsdo').addClass('open');
}
});
}
function scrollbar() {
$(window).on("load",function(){
$(".col-12").mCustomScrollbar();
});
}
function scrollNav() {
$('.navbar a').click(function(){
//Toggle Class
$(".active").removeClass("active");
$(this).closest('li').addClass("active");
var theClass = $(this).attr("class");
// $('.'+theClass).parent('li').addClass('active');
//Animate
$('html, body').stop().animate({
scrollTop: $( $(this).attr('href') ).offset().top - 140
}, 400);
return false;
});
$('.scrollTop a').scrollTop();
}
function navFooter() {
var $Fs = $('footer section');
$Fs.hide();
$('footer a[href^="#"]').on('click', function(event) {
var target = $(this.getAttribute('href'));
if( target.length ) {
event.preventDefault();
target.slideToggle();
$('html, body').stop().animate({
scrollTop: target.offset().top
}, 1000);
}
});
}
jQuery(document).ready(function($){
jcarousel();
scrollNav();
scrollHeader();
jcarousel();
open();
scrollbar();
navFooter();
});