/*$("a").on("click", function(event){ //check the value of this.hash if(this.hash !== ""){ event.preventDefault(); $("html, body").animate({scrollTop:$(this.hash).offset().top-55}, 900); //add hash to the current scroll position window.location.hash = this.hash; } }); */ jQuery(document).ready(function() { var offset = 220; var duration = 500; jQuery(window).scroll(function() { if (jQuery(this).scrollTop() > offset) { jQuery('.back-to-top').fadeIn(duration); } else { jQuery('.back-to-top').fadeOut(duration); } }); jQuery('.back-to-top').click(function(event) { event.preventDefault(); jQuery('html, body').animate({scrollTop: 0}, duration); return false; }) }); $(function() { $("#baner").bgSlideShow({ current : 0, randomize : false, images : [ "2.webp?i=1", "3.webp" ], initialBackground : 'uvod.webp', transitionDelay:2700 }); }); $(function() { $("#baner2").bgSlideShow({ current : 0, randomize : false, images : [ "2.webp?i=1", "3.webp" ], initialBackground : 'uvod.webp', transitionDelay:2700 }); }); $(document).ready(function(){ $('#nav').slicknav({ allowParentLinks:"true" }); }); jQuery(document).ready(function() { var offset = 220; var duration = 500; jQuery(window).scroll(function() { if (jQuery(this).scrollTop() > offset) { jQuery('.back-to-top').fadeIn(duration); } else { jQuery('.back-to-top').fadeOut(duration); } }); jQuery('.back-to-top').click(function(event) { event.preventDefault(); jQuery('html, body').animate({scrollTop: 0}, duration); return false; }) }); $(function() { $("#baner").bgSlideShow({ current : 0, randomize : false, images : [ "2.webp?i=1", "3.webp" ], initialBackground : 'uvod.webp', transitionDelay:2700 }); });