m |
m |
||
Line 153: | Line 153: | ||
if (window.matchMedia("(min-width: 768px)").matches) { | if (window.matchMedia("(min-width: 768px)").matches) { | ||
/* the viewport is at least 768pixels wide */ | /* the viewport is at least 768pixels wide */ | ||
− | if (document.body.scrollTop > | + | if (document.body.scrollTop > 150|| document.documentElement.scrollTop > 150) { |
navigationBar.classList.add("opaque-nav"); | navigationBar.classList.add("opaque-nav"); | ||
} else { | } else { |
Revision as of 12:01, 7 October 2016