You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

$(document).ready(function(){
8 years ago
$('.cboxElement').colorbox({height: '80%',transition: 'elastic'});
8 years ago
var isHome = $('body').hasClass('is-home');
if($(window).width() < 1024 && $(window).width() >= 768){
$('#menuRight .banner').clone().appendTo('#menuLeft');
$('#menuRight').empty();
}
if($(window).width() < 1024){
8 years ago
if(!isHome){
$('html, body').animate({scrollTop: $('#MainContainer').offset().top - 74});
}
}
8 years ago
if($(window).width() >= 768){
$('#menuLeft .dropdown:first-child').addClass('active');
}
$('.hamburger').on('click', function(){
$(this).toggleClass('is-active');
if($(this).hasClass('is-active')){
$('.topmenu').fadeIn();
$('html, body').css({overflow: 'hidden'});
}else{
$('.topmenu').fadeOut();
$('html, body').css({overflow: 'auto'});
}
});
$('.dropdown .title').on('click', function(){
$(this).parent().toggleClass('active');
if($(this).parent().hasClass('active') && !$(this).parent().hasClass('static')){
$('html, body').animate({
scrollTop: $(this).parent().offset().top
},500);
}
});
});