Initialize project and port basics

This commit is contained in:
Kevin Kandlbinder 2020-12-21 18:23:28 +01:00
commit ebb4f4d515
31 changed files with 20401 additions and 0 deletions

21
gatsby-browser.js Normal file
View file

@ -0,0 +1,21 @@
let $ = require("jquery");
$(function() {
$(window).on("scroll", function() {
performUpdate();
});
$(window).on("navigate", function() {
performUpdate();
});
window.setInterval(performUpdate, 500);
});
function performUpdate() {
if(window.scrollY < 15) {
$(".topBar").addClass("homeBarTransparent");
} else {
$(".topBar").removeClass("homeBarTransparent");
}
}