Created
June 27, 2019 18:25
-
-
Save robertcedwards/3d6a3f2ec7c9dc8524d7b2c2f408ea87 to your computer and use it in GitHub Desktop.
Another method for onpage load
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var shiftWindow = function() { scrollBy(0, -50) }; | |
if (location.hash) shiftWindow(); | |
window.addEventListener("hashchange", shiftWindow); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment