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.
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
$('.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);
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
});
|