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.

35 lines
822 B

$(document).ready(function(){
if($(window).width() < 1024 && $(window).width() >= 768){
$('#menuRight .banner').clone().appendTo('#menuLeft');
$('#menuRight').empty();
}
$('.hamburger').on('click', function(){
$(this).toggleClass('is-active');
if($(this).hasClass('is-active')){
$('.topmenu').fadeIn();
}else{
$('.topmenu').fadeOut();
}
});
$('.dropdown .title').on('click', function(){
// $('.dropdown').removeClass('active');
$(this).parent().toggleClass('active');
if($(this).parent().hasClass('active')){
$('html, body').animate({
scrollTop: $(this).parent().offset().top
},500);
}
});
});