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.
 
 
 
 

63 lines
1.7 KiB

$(document).ready(function(){
$('.cboxElement').colorbox({height: '80%',transition: 'elastic', close: ''});
$('#contact-form, #register-form, #reset-form').on('submit', function(event) {
$.colorbox({width:"60%", height:"60%",transition: 'elastic', close: '', iframe: true, href:$(this).attr('action')+"?" + $(this).serialize()});
event.preventDefault();
});
var isHome = $('body').hasClass('is-home');
if($(window).width() < 1024 && $(window).width() >= 768){
$('#menuRight .banner').clone().appendTo('#menuLeft');
$('#menuRight').empty();
}
if($(window).width() < 1024){
if(!isHome){
$('html, body').animate({scrollTop: $('#MainContainer').offset().top - 74});
}
}
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);
}
});
$('#news-find').on('submit', function(e){
e.preventDefault();
window.location = "/news/0/find/" + $('#news-find').find('.q').val();
});
});