$(document).ready(function(){var o=$("#alert-tmp").outerHeight();$(".background-img").css("top",o+"px"),$("#close-banner").on("click",function(){$(".background-img").css("top","0px")});$(window).scrollTop();var s=$("#about").offset().top,a=$("#whoIsThis").offset().top,t=$("#partners").offset().top,e=$("#usefulLinks").offset().top;$("#aboutThis").on("click",function(){$("html, body").animate({scrollTop:$("#about").offset().top-50},1e3)}),$("#who").on("click",function(){$("html, body").animate({scrollTop:$("#whoIsThis").offset().top-50},1e3)}),$("#projPartners").on("click",function(){$("html, body").animate({scrollTop:$("#partners").offset().top-50},1e3)}),$("#usefulLinksSection").on("click",function(){$("html, body").animate({scrollTop:$("#usefulLinks").offset().top-50},1e3)}),$("#goTo").on("click",function(){$("html, body").animate({scrollTop:$(".tools").offset().top-80},1e3)}),$(".scrollUp").on("click",function(){$("html, body").animate({scrollTop:0},1e3)}),$(window).scroll(function(){var o=$(window).scrollTop();o>s-60?$("#aboutThis").addClass("active"):$("#aboutThis").removeClass("active"),o>a-60?($(".nav-link").removeClass("active"),$("#who").addClass("active")):$("#who").removeClass("active"),o>t-60?($(".nav-link").removeClass("active"),$("#projPartners").addClass("active")):$("#projPartners").removeClass("active"),o>e-60||o>$(document).height()-window.innerHeight-60?($(".nav-link").removeClass("active"),$("#usefulLinksSection").addClass("active")):$("#usefulLinksSection").removeClass("active")}),$(".navbar-toggler").click(function(){var o=$(".navbar-light"),s=o[0].classList;this.classList;"false"==$(this).attr("aria-expanded")?"bg-faded-trans"==s[3]&&($(o).removeClass("bg-faded-trans"),$(o).addClass("bg-faded-semi-trans")):"bg-faded"!==s[3]&&($(o).removeClass("bg-faded-semi-trans"),$(o).addClass("bg-faded-trans"))})});