text: !function(t){"use strict";var a=t(".navbar-header").innerHeight();function o(e){e=(e=void 0===e||"object"==typeof e?window.location.hash:e).replace(/:/g,"\\:"),t(e).length&&(t("body").addClass("scrolling"),t("html, body").animate({scrollTop:t(e).offset().top-a},600,function(){t("body").removeClass("scrolling")}))}function s(){var e=t("body"),o=e.data("bs.scrollspy");o&&(o.options.offset=a,e.data("bs.scrollspy",o),e.scrollspy("refresh"))}window.addEventListener("hashchange",o),t("#navbar-main li.nav-item a").on("click",function(e){var o=this.hash;o&&t(o).length&&0<t("#homepage").length&&(e.preventDefault(),t("html, body").animate({scrollTop:t(o).offset().top-a},800))}),t("#back_to_top").on("click",function(e){e.preventDefault(),t("html, body").animate({scrollTop:0},800,function(){window.location.hash=""})}),t(document).on("click",".navbar-collapse.in",function(e){var o=t(e.target).is("a")?t(e.target):t(e.target).parent();o.is("a")&&"dropdown-toggle"!=o.attr("class")&&t(this).collapse("hide")});var n=t("#container-projects");n.imagesLoaded(function(){n.isotope({itemSelector:".isotope-item",layoutMode:"masonry"}),t("#filters a").click(function(){var e=t(this).attr("data-filter");return n.isotope({filter:e}),t(this).removeClass("active").addClass("active").siblings().removeClass("active all"),!1})}),t(window).on("load",function(){var e;window.location.hash&&("#top"==window.location.hash?window.location.hash="":o()),t("body").scrollspy({offset:a}),t(window).resize(function(){clearTimeout(e),e=setTimeout(s,200)})}),t("#theme-change").click(function(e){e.preventDefault(),t(this).children(0).hasClass("fa-sun-o")?(t(this).children(0).removeClass("fa-moon-o").removeClass("fa-sun-o").addClass("fa-moon-o"),t("#theme").attr("href","/css/light-theme.min.css"),t("#theme-color").attr("content","#FFFFFF"),t.cookie("theme",0,{expires:60,path:"/"})):(t(this).children(0).removeClass("fa-moon-o").removeClass("fa-sun-o").addClass("fa-sun-o"),t("#theme").attr("href","/css/dark-theme.min.css"),t("#theme-color").attr("content","#000000"),t.cookie("theme",1,{expires:60,path:"/"}))}),null==t.cookie("theme")||0==t.cookie("theme")?(t("#theme").attr("href","/css/light-theme.min.css"),t("#theme-color").attr("content","#FFFFFF"),t("#theme-change").children(0).removeClass("fa-moon-o").removeClass("fa-sun-o").addClass("fa-moon-o")):(t("#theme").attr("href","/css/dark-theme.min.css"),t("#theme-color").attr("content","#000000"),t("#theme-change").children(0).removeClass("fa-moon-o").removeClass("fa-sun-o").addClass("fa-sun-o"))}(jQuery);