$(document).ready(function () { $(".countdown").TimeCircles({ circle_bg_color: "#ccc", fg_width: 0.03, time: { Days: { color: "#9e9e9e", text: "dní" }, Hours: { color: "#9e9e9e", text: "hodín" }, Minutes: { color: "#9e9e9e", text: "minút" }, Seconds: { color: "#9e9e9e", text: "sekúnd" } } }); $('.countdownContainer').height($('.time_circles').height()/2+40); $( window ).resize(function() { $(".countdown").TimeCircles().rebuild(); $('.countdownContainer').height($('.time_circles').height()/2+40); }); $('.faq .col').hover(function() { $(this).children('p').show(); $(this).css('overflow','show'); $(this).css('height','auto'); },function() { $(this).children('p').hide(); $(this).css('overflow','hide'); $(this).css('height','100px'); }); $('.swipebox').swipebox(); $('.basicForm').submit(function() { if($('#f_name').val()=='') { alert('Zadaj prosím meno'); return false; } if($('#f_email').val()=='') { alert('Zadaj prosím email'); return false; } return true; }); }); // @smooth scroll $(function() { $('a[href*="#"]:not([href="#"])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html, body').animate({ scrollTop: target.offset().top }, 1000); return false; } } }); });