Skip to content

Instantly share code, notes, and snippets.

View maciej-szlosarczyk's full-sized avatar

Maciej Szlosarczyk maciej-szlosarczyk

  • Tallinn, Estonia
View GitHub Profile

Keybase proof

I hereby claim:

  • I am maciej-szlosarczyk on github.
  • I am icejam_ (https://keybase.io/icejam_) on keybase.
  • I have a public key ASBmuwaXM1sLi9tYYNtfahzUh8TehJvFGS7x0i7hPJWwWAo

To claim this, I am signing this object:

function responsive() {
function initResponsive() {}
$(window).scroll(function () {
if (window.matchMedia("(max-width: 1024px)").matches && $(document).scrollTop() > 0) {
$('.main-header').addClass('u-fixed');
} else {
$('.main-header').removeClass('u-fixed');
}
});
$(window).resize(function () {