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.

44 lines
1.1 KiB

$(document).ready(function(){
if($(window).width() < 1024 && $(window).width() >= 768){
$('#menuRight .banner').clone().appendTo('#menuLeft');
$('#menuRight').empty();
}
if($(window).width() < 1024){
if(!$('#MainContainer').hasClass('is-home')){
$('html, body').animate({scrollTop: $('#MainContainer').offset().top - 74});
}
}
$('.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')){
$('html, body').animate({
scrollTop: $(this).parent().offset().top
},500);
}
});
});